The Matchstick Row
Skill: turning a growing pattern into a rule, then using the rule backwards
Problem
Squares are built in a row, sharing sides.
1 square uses 4 matchsticks.
2 squares in a row use 7 matchsticks.
3 squares in a row use 10 matchsticks.
1. How many matchsticks are needed for a row of 20 squares?
2. What is the longest row you can build with exactly 100 matchsticks?
Hints
Hint 1
Draw the second square. How many new sticks did you add to the first one?
Hint 2
The jump from one row length to the next is always the same. Write the count as (the jump) × (number of squares) + (something fixed).
Hint 3
Test your rule on 1, 2, and 3 squares before you use it on 20. Then set the rule equal to 100 and solve.
Solution
Find the jump.
The counts are 4, 7 and 10. The jump from one row length to the next is 3 every time. That happens because a new square shares one side with the row already built, so only three of its four sides are new sticks.
Derive the rule.
The first square costs 4 sticks. Each of the n−1 extra squares costs 3 more, so the total is 4 + 3(n−1) = 3n + 1. Test it on the drawings: n = 1 gives 4, n = 2 gives 7, n = 3 gives 10. All three match.
Part 1.
For 20 squares, 3 × 20 + 1 = 61 sticks. The cost per square is 3 rather than 4 because 19 of the 20 squares share a side with the row. The extra 1 is the far edge of the first square.
Part 2: work backwards.
Set 3n + 1 = 100. Then 3n = 99 and n = 33. A whole number means 100 sticks build exactly 33 squares, with nothing left over.
What a remainder would mean.
If the division had left a remainder, the row would not end exactly at 100 sticks. You would take the largest whole number n that fits, then the leftover sticks would be 100 − (3n + 1). Here that does not happen: 100 is one more than a multiple of 3, which is exactly the form the rule produces.
Answer: 61 matchsticks for 20 squares, and 33 squares from 100 matchsticks.
Why this works
A pattern that grows by the same amount at each step is linear: each extra square adds a fixed 3 sticks. Writing it as 3n + 1 and testing the first three cases catches the usual slip of using 4n, which counts the shared sides twice.
Working backwards is the same rule solved for n. Most totals are not of the form 3n + 1, so in general the remainder matters; here it happens to be zero.
Try a related problem
Hexagons are built in a row in the same way: 1 hexagon uses 6 sticks, 2 use 11, and 3 use 16.