Rational Numbers | A

Question 1

Context: Look at the following numbers: 3 6 10 15 1. They are arranged such that each pair of adjacent numbers adds up to a square: 3+6=93 + 6 = 9, 6+10=166 + 10 = 16, 10+15=2510 + 15 = 25, 15+1=1615 + 1 = 16.

Q. Try arranging the numbers 1 to 17 (without repetition) in a row in a similar way — the sum of every adjacent pair of numbers should be a square. Can you arrange them in more than one way? If not, can you explain why?

Question diagram 1
Check your answer with HomiSolve it yourself, then let Homi check your steps and spot mistakes.
Solution
Understand the Question
  • We need to arrange all integers from 11 to 1717 without repetition in a single row such that the sum of every pair of adjacent numbers is a perfect square.
  • The minimum possible sum of two distinct numbers is 1+2=31 + 2 = 3 and the maximum sum is 16+17=3316 + 17 = 33.
  • The possible square sums in this range are 4,9,16,4, 9, 16, and 2525.
  • By mapping all valid connections (pairs summing to a square), numbers with only 11 connection must be placed at the ends of the row. We then trace a single path that visits every number from 11 to 1717 exactly once.

Step 1 · Identify Possible Square Sums

The smallest sum of two distinct numbers is 1+2=31 + 2 = 3, and the largest sum is 16+17=3316 + 17 = 33.

Perfect squares between 33 and 3333 are:

22=432=942=1652=25\begin{aligned} 2^2 &= 4 \\ 3^2 &= 9 \\ 4^2 &= 16 \\ 5^2 &= 25 \end{aligned}

Thus, the possible square sums are 4,9,16,4, 9, 16, and 2525.

Step 2 · List Valid Pairs and Map Connections

List all pairs of numbers from 11 to 1717 that sum to a perfect square:

  • For sum =4= 4: (1,3)(1, 3)
  • For sum =9= 9: (1,8),(2,7),(3,6),(4,5)(1, 8), (2, 7), (3, 6), (4, 5)
  • For sum =16= 16: (1,15),(2,14),(3,13),(4,12),(5,11),(6,10),(7,9)(1, 15), (2, 14), (3, 13), (4, 12), (5, 11), (6, 10), (7, 9)
  • For sum =25= 25: (8,17),(9,16),(10,15),(11,14),(12,13)(8, 17), (9, 16), (10, 15), (11, 14), (12, 13)

Connections (neighbours) for each number:

  • 1: 3,8,153, 8, 15 (3 connections)
  • 2: 7,147, 14 (2 connections)
  • 3: 1,6,131, 6, 13 (3 connections)
  • 4: 5,125, 12 (2 connections)
  • 5: 4,114, 11 (2 connections)
  • 6: 3,103, 10 (2 connections)
  • 7: 2,92, 9 (2 connections)
  • 8: 1,171, 17 (2 connections)
  • 9: 7,167, 16 (2 connections)
  • 10: 6,156, 15 (2 connections)
  • 11: 5,145, 14 (2 connections)
  • 12: 4,134, 13 (2 connections)
  • 13: 3,123, 12 (2 connections)
  • 14: 2,112, 11 (2 connections)
  • 15: 1,101, 10 (2 connections)
  • 16: 99 (1 connection)
  • 17: 88 (1 connection)

Since 1616 and 1717 each have only 11 valid connection, they must be the two end numbers of the row.

Step 3 · Construct the Arrangement

Starting from 1616:

  1. From 16916 \to 9
  2. From 979 \to 7
  3. From 727 \to 2
  4. From 2142 \to 14
  5. From 141114 \to 11
  6. From 11511 \to 5
  7. From 545 \to 4
  8. From 4124 \to 12
  9. From 121312 \to 13
  10. From 13313 \to 3
  11. At 33, possible choices are 11 and 66:
    • Choosing 18171 \to 8 \to 17 terminates prematurely after 1414 numbers (dead end).
    • Choosing 1151061 \to 15 \to 10 \to 6 traps at 66 since both its neighbours (33 and 1010) are already visited (dead end).
    • Therefore, we must choose 66.
  12. From 363 \to 6
  13. From 6106 \to 10
  14. From 101510 \to 15
  15. From 15115 \to 1
  16. From 181 \to 8
  17. From 8178 \to 17Diagram 1

The complete valid arrangement is: 16,9,7,2,14,11,5,4,12,13,3,6,10,15,1,8,1716, 9, 7, 2, 14, 11, 5, 4, 12, 13, 3, 6, 10, 15, 1, 8, 17

Step 4 · Determine Uniqueness

Since 1616 and 1717 are the only numbers with a single valid neighbour, any valid line must start at one and end at the other.

At every step of the sequence, there is only one unvisited neighbour except at 33, where the only other branch (313 \to 1) leads to dead ends.

Thus, there is only one unique way to arrange the numbers (the reverse order 17,8,1,15,10,6,3,13,12,4,5,11,14,2,7,9,1617, 8, 1, 15, 10, 6, 3, 13, 12, 4, 5, 11, 14, 2, 7, 9, 16 represents the same sequence).

Answer

There is only one unique arrangement:

16,9,7,2,14,11,5,4,12,13,3,6,10,15,1,8,1716, 9, 7, 2, 14, 11, 5, 4, 12, 13, 3, 6, 10, 15, 1, 8, 17

(or its reverse)

Common Mistakes
  • Overlooking Endpoints: Missing that numbers with only one connection (1616 and 1717) must be at the extremes of the row.
  • Branching Errors: Taking 313 \to 1 instead of 363 \to 6, which runs into a dead end before all 1717 numbers are used.
  • Counting Reversals as Distinct: Counting the reversed sequence as a second arrangement when it is topologically identical.

More questions in A

Q1

Context: Look at the following numbers: 3 6 10 15 1. They are arranged such that each pair of adjacent numbers adds up to a square: 3+6=93 + 6 = 9, 6+10=166 + 10 = 16, 10+15=2510 + 15 = 25, 15+1=1615 + 1 = 16.

Q. Try arranging the numbers 1 to 17 (without repetition) in a row in a similar way — the sum of every adjacent pair of numbers should be a square. Can you arrange them in more than one way? If not, can you explain why?

Q2

Context: Look at the following numbers: 3,6,10,15,13, 6, 10, 15, 1. They are arranged such that each pair of adjacent numbers adds up to a square: 3+6=93 + 6 = 9, 6+10=166 + 10 = 16, 10+15=2510 + 15 = 25, 15+1=1615 + 1 = 16.

Q. Can you do the same with numbers from 11 to 3232 (again, without repetition), but this time arranging all the numbers in a circle?

← Back to Rational Numbers