Back to Mathematical Olympiad
Difficulty: 4/102020 IOQM 2020 (Q13)

Find the sum of all positive integers for which is a perfect square.

Guide / Hint

Hint 1: Test small values of (1, 2, 3, 4) to find the first few working solutions.

Hint 2: Work modulo 3 to show that must be an even integer (since odd gives a residue of 2 mod 3).

Hint 3: For even , show that to prove no further perfect squares exist, then sum the working values of .

Solution

Step 1: Let .
We test small positive integers directly:

  • For : (not a square).

  • For : (perfect square!). So works.

  • For : (not a square).

  • For : (perfect square!). So works.

Step 2: Now we show no solutions exist for :
For , , so the expression is .
Consider the expression modulo 3:

  • If is odd: . Since perfect squares are only or , cannot be odd.

  • Therefore, must be even. Let for :

Step 3: For large , the term dominates. Specifically:

This inequality holds strictly for (since ).
Since the expression lies strictly between two consecutive perfect squares and , it can never be a perfect square for (i.e., ).

Step 4: The only solutions are and .
The sum of all such positive integers is:

Ready to track your progress and master these topics?

Create a free account