good positive integers - Portugal OPM 2020 p1
Source:
May 15, 2024
number theory
Problem Statement
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 .