We call an integer polypythagorean if there are distinct positive integers that you can put around a circle such that the sum of the squares of each pair of neighbouring numbers is a square. Thus, is a polypythagorean integer because for example for the triple , we have , and .
Find all polypythagorean integers.
Problem 1885
Official solution
We prove by induction that all integers greater than or equal to are polypythagorean. Extend the definition of polypythagorean to in the logical way. For the induction basis, take for and from the example for .
For the induction step, let and assume for our induction hypothesis that all are polypythagorean. In particular, is polypythagorean.
Let be such that when put around a circle, the sum of squares of each pair of neighbouring integers is a square. Choose a prime number that does not divide any of the . Then let and so that . By multiplying our integers by , we can now add two integers: .
We simply check that
and these are indeed all squares by the induction hypothesis and by construction of and . As the integers are all different, the numbers are also all different from each other. The numbers and are also different from each other. As is divisible by , but and are not, neither nor can be equal to any of the . We conclude that are all different, so is polypythagorean. This completes the induction.