Y by
It is said that a positive integer is not GOOD, if there exists a permutation of the integers from 1 to n,
such that
is a perfect square for all
. For example
is a GOOD number, since the permutation
checks the condition:
,
,
;
and
. Find all GOOD numbers up to
.










