PrepShorts · Study sheet · Class 7 Mathematics · Chapter 6, Number PlayPrepShorts

Chapter 6 · Number Play

Using row and column sums to prove a grid cannot be filled

यह वीडियो हिंदी में भी · Watch in Hindi

Grids and magic squares10 min

This video could not be loaded. Reload the page to try again.

Sign in with Google

10 min.

Also recorded in Hindi.Englishहिन्दी

A three by three grid holding one to nine, with six numbers ringed round the outside and nobody saying what they are.

The idea

The six numbers ringed around a 3 × 3 grid are not six independent facts. The three rows and the three columns are two different ways of cutting up the very same nine numbers, so each triple has to total 45 no matter how the grid is filled — that total is beyond the puzzle-setter's control. And no single row or column can be smaller than 6 or larger than 24, because those are the totals of the three smallest and the three largest numbers available. One quantity that cannot move, plus a range that cannot be escaped, is enough to turn "I could not find a filling" into "there is none", without trying a single arrangement.

What you should be able to do

  • Read a grid whose row totals and column totals are printed around its edge, and say which cells each circled number controls
  • Fill a partly-given 3 × 3 grid from 1 to 9 using its row and column totals, choosing the tightest constraint to start from
  • State the smallest and the largest value a row or column total can take, and justify both
  • Show that the three row totals must add to 45, and that the three column totals must too, whatever the arrangement is
  • Use those two facts to decide that a proposed set of totals is unachievable, and name which fact it violates
  • Distinguish "I did not find a solution" from "no solution exists", and say what is needed to earn the second
  • Recognise when a set of totals admits more than one filling

Words to know

TermDefinition in one lineFirst introduced
grida square array of cells, here 3 by 3, to be filled with numbersprinted throughout §6.3, pp.133–134
rowa horizontal line of three cellsprinted in §6.3, p.133
columna vertical line of three cellsprinted in §6.3, p.133
sumthe total of the three entries of a row or a columnprinted in §6.3, p.133
without repeatingthe condition that each of 1 to 9 is used exactly onceprinted in §6.3, p.133
impossiblethe verdict when no filling whatever can meet the stated totalsprinted in §6.3, p.134
running totalthe explanation's phrase for the 45 that every set of three row totals must reachthe explanation's phrasing; not printed in this chapter
circled numbera row total or column total printed in a ring outside the gridprinted in §6.3, p.133

Where people slip up

  • "The setter can choose any six totals they like." They cannot choose even five of them freely. Both triples are pinned to 45, so once two row totals and two column totals are chosen, the third row and the third column are forced — at most four of the six are free. Any puzzle whose six numbers do not respect that was never solvable.
  • "I tried for a long time and could not do it, so it is impossible." That is a report about the solver, not about the puzzle. The chapter's argument is what upgrades it: an unreachable total is unreachable for everyone, including the people who have not tried yet.
  • "A total of 26 is fine — the numbers only go up to 9, but three of them make plenty." The three largest available are 9, 8 and 7 and they make 24. Nothing in the grid can beat that, so 26 is out of reach before the grid is even drawn.
  • "Each row total is a separate condition, so more totals means more clues." More totals means more clues only until 45 is reached; after that the totals start repeating information. Section 9 is where that becomes visible.
  • "A set of totals that passes both checks must be solvable." Passing means the two arguments in this section have nothing more to say; it is not a guarantee. Practice grid B passes and has several fillings; other totals can pass and have none.
  • "If the totals work out, the filling is unique." Practice grid B has more than one filling. A well-posed puzzle and a puzzle with exactly one answer are different things, and this page contains an example of the difference.
Transcript1,373 words

Here is a three by three grid, filled with the numbers one to nine, each of them used exactly once. Ringed around the outside are six more numbers. Down the right-hand side: sixteen, nine, twenty. Along the bottom: thirteen, seventeen, fifteen. Nobody has said what they are. That is the puzzle. Take a moment, because the answer is going to look almost too simple to be worth the trouble. It is worth it. In a few minutes those six numbers are going to prove something that no amount of trying ever could.

They are going to show that a certain grid cannot be filled in at all. Not that it is hard. That there is no filling. The four, the seven and the five along the top come to sixteen. And there is a sixteen sitting at the end of that row. Six, one, two makes nine. And a nine at the end of that one. Three, nine, eight makes twenty. Twenty.

So each ring on the right is the total of the row it sits beside. Now read downwards instead. Four, six, three is thirteen, and thirteen is what is written under that column. Seven, one, nine is seventeen. Five, two, eight is fifteen. Both of them are there. Six little sums. Three rows read across, three columns read down, and their totals written round the edge. Now the same idea, run in reverse.

Here is a grid with almost nothing in it. A nine in the top-left corner, a five in the bottom-right, and that is all. But the totals are all there. Thirteen, fourteen, eighteen down the side. Twenty-four, nine, twelve along the bottom. And you are still filling it with one to nine, each of them used once. So where do you start? Not just anywhere. Start where the numbers have the least room to move.

The top row has to come to thirteen, and it already holds a nine. So the other two cells have to make four between them. Two different numbers, out of what is left, adding to four. There is exactly one way. A one and a three. That is the whole method. Find the place where the total leaves almost no choice, and take it. Here is another one, and this time it bites even harder.

The row totals are twenty-four, fifteen and six. Six. From three different numbers, none of them repeated. The smallest three you have are one, two and three, and they make exactly six. So that bottom row is not a puzzle. It is one, two and three in some order, and nothing else will do. Twenty-four does the same thing at the other end. The largest three you have are seven, eight and nine, and they make exactly twenty-four.

Two rows settled, without a single guess. Though be careful. Settling which numbers go in a row is not the same as settling where each one goes, and this grid has two finished answers, not one. Now this one. One cell filled in. A six, in the middle row, on the right. The rings down the side read five, twenty-one, nineteen. Along the bottom, nine, eleven, twenty-six. Have a go at it. Genuinely have a go, because failing is the point.

You will not manage it. Neither will anybody else. But here is the trap, and it catches almost everyone. If you try for ten minutes and give up, what you have learned is something about your ten minutes. You have learned nothing at all about the grid. To say a thing is impossible you have to rule out the attempts nobody has made yet, including all the clever ones. So let us stop attempting, and start bounding.

Forget the grid for a moment. Just ask how small one of those totals could possibly be. It is three different numbers from one to nine. The three smallest you have are one, two and three. One and two and three make six. You cannot go lower. There is nothing smaller left to reach for. Now the other end. The three largest are nine, eight and seven. Nine and eight and seven make twenty-four.

So every one of those six ringed numbers, in every grid of this kind that has ever been drawn or ever will be, sits somewhere between six and twenty-four. Back to the grid that would not be filled. Look at the ring on the top row. Five. Five is below six. There are no three different numbers from one to nine that add up to five. The very best you can do is one, two and three, and that is already six.

Now look along the bottom. Twenty-six. Twenty-six is above twenty-four. It is two more than the very best you have got. That grid was never going to work, and we know it without touching a single cell. And that is the difference. Not, I could not do it. There is nothing to do. Something odd turns up if you go back over the grids that did work. Add all six ringed numbers together. Every time, ninety.

Sixteen, nine, twenty, thirteen, seventeen, fifteen. Ninety. Thirteen, fourteen, eighteen, twenty-four, nine, twelve. Ninety again. And it splits neatly down the middle. The three row totals on their own come to forty-five. The three column totals on their own come to forty-five. Every time. In every grid of this kind. Which is a strange thing for a puzzle-setter to have arranged, six times over, entirely by accident. They did not arrange it. They could not have stopped it.

Take the three rows and lift them straight out of the grid. The top row is three of your numbers. The middle row is three more. The bottom row is the last three. Between them, that is all nine of them, once each. So adding the three row totals is just adding one to nine in a slightly roundabout order. One, two, three, four, five, six, seven, eight, nine. Forty-five.

And notice what that argument never mentioned. It never said how the grid was filled. Shuffle it however you like and the three rows still hold all nine. Now do it again, cutting the other way. The left column is three of the numbers. The middle column is three more. The right column is the last three. The same nine numbers. Just gathered into different piles. Forty-five. So the ninety was never a pattern at all. It is forty-five twice, because the nine numbers have been counted twice. Once across, and once down.

And that has a consequence the puzzle-setter would rather you did not spot. They do not get to choose six numbers. Once five of them are down, the sixth is already decided for them. I checked that against every grid of this kind there is, and it never once came out otherwise. Which gives us a second look at the grid that refused. Its three row totals were five, twenty-one and nineteen.

Add them up. Forty-five. So on that count it is perfectly respectable. Its three column totals were nine, eleven and twenty-six. Add those. Forty-six. Forty-six, and it is not allowed to be forty-six, because those three numbers are the same nine numbers cut downwards. So that grid fails twice over, for two completely separate reasons, and either one on its own would have finished it. Here is what we have, and it is worth being exact about it.

One quantity that cannot move. Forty-five. And one range that cannot be escaped. Six to twenty-four. Neither of them came from trying anything. They came from what the numbers one to nine simply are. Which is why they cover every attempt at once, including all the attempts that nobody has made. But be careful what you claim in the other direction. A set of totals passing both tests does not mean the grid can be filled. It only means these two arguments have run out of things to say about it.

And even when it can be filled, there may be more than one way. That second grid had two finished answers. An argument like this tells you where the answers are not. Finding one is still your job.

Where this fits

Taken from the notes each video was made from, not from the reading order — these are the ideas this one rests on and the ones that later rest on it.

Builds on

Comes up again in

Either side of this one

The book

Open in a new tab