Minimum n for Squares from Pairs

What is the smallest integer n > 1 such that the first n integers can be arranged into a sequence where the sum of any two adjacent numbers is a perfect square?


The answer is 15.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Andy Ennaco
Jun 6, 2018

The flowchart below shows all possible pairs for the first 15 integers, as well as a workable sequence from 8 to 9 shown in red. Removing numbers, starting at 15 and working down, shows that no complete paths through all numbers obtainable until only 1 remains.

Another problem would be to add the proviso that the numbers at the ends of the sequence (in this case 8 and 9) also add to a perfect square.

Joseph Jennings - 2 years, 7 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...