3. Let's call a natural number squareable if the numbers from 1 to can be arranged in such an order that each member of the sequence, when added to its position, results in a perfect square. For example, the number 5 is squareable, as the numbers can be arranged as: 32154, in which and . Determine which of the numbers are squareable.
Problem 658
Official solution
# Answer: 9 and 15.
Solution. The number 7 cannot be squareable, since both numbers 1 and 6 must be in the third position, which is impossible.
The number 9 is squareable, as the numbers from 1 to 9 can be arranged in the following order: , , thus satisfying the required condition.
The number 11 is not squareable, since both numbers 11 and 4 must be in the fifth position.
The number 15 is squareable, as the numbers from 1 to 15 can be arranged in descending order, and then .