We say a positive integer is "good" if there is a permutation of such that is a perfect square for all . Determine all the good numbers in the set .
Solution
The good numbers are , , and . However is not.
Note that for , is a perfect square if and only if . Likewise, is a perfect square if and only if . Hence is not good.
Note that is good because
: 1 2 3 4 5 6 7 8 9 10 11 12 13,
: 8 2 13 12 11 10 9 1 7 6 5 4 3.
Similarly, , and are good because
: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15,
: 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1;
: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17,
: 3 7 6 5 4 10 2 17 16 15 14 13 12 11 1 9 8;
: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19,
: 8 7 6 5 4 3 2 1 16 15 14 13 12 11 10 9 19 18 17.
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.