The Problem
Arrange numbers 1 to 17 in a row such that the sum of every adjacent pair is a square number.
Strategy
Let’s map out possible neighbors for each number (1-17) that sum to a square (4, 9, 16, 25, 36).
- 1: 3, 8, 15
- 2: 7, 14
- 3: 1, 6, 13
- 4: 5, 12
- 5: 4, 11
- 6: 3, 10
- 7: 2, 9
- 8: 1, 17
- 9: 7, 16
- 10: 6, 15
- 11: 5, 14
- 12: 4, 13
- 13: 3, 12
- 14: 2, 11
- 15: 1, 10
- 16: 9 (only one neighbor!)
- 17: 8 (only one neighbor!)
Tip
Key Insight: Since 16 and 17 have only one possible neighbor each (9 and 8 respectively), they must be at the ends of the row.
The Sequence
Start with 17:
- 17 must connect to 8 ().
- 8 connects to 17 (used) or 1 ().
- 1 connects to 8 (used) or 3 or 15.
- If we pick 3:
- If we pick 15: Let’s trace from the other end (16) to meet in the middle.
Start with 16: 16 9 7 2 14 11 5 4 12 13 3 6 10 15 1 8 17.
Final Answer
16, 9, 7, 2, 14, 11, 5, 4, 12, 13, 3, 6, 10, 15, 1, 8, 17
(Check pairs: . All squares!)