Decide if there is a permutation $a_1,a_2,\cdots,a_{6666}$ of the numbers $1,2,\cdots,6666$ with the property that the sum $k+a_k$ is a perfect square for all $k=1,2,\cdots,6666$
Source: HKTST2017
Tags: combinatorics
Decide if there is a permutation $a_1,a_2,\cdots,a_{6666}$ of the numbers $1,2,\cdots,6666$ with the property that the sum $k+a_k$ is a perfect square for all $k=1,2,\cdots,6666$