Back to Mathematical Olympiad
Difficulty: 8/102023 USAMO 2023 (Q1)

Determine all positive integers such that is a perfect square.

Options:

  • A.

    n = 4

  • B.

    n = 7

  • C.

    n = 6

  • n = 5

Guide / Hint

Hint 1: Rewrite the equation as . Note that and differ by 2, so their greatest common divisor is 1 or 2.

Hint 2: Test small values of to find a working solution. Notice that yields .

Hint 3: Show that for , factor divisibility and modular arithmetic force a contradiction, making the only solution.

Solution

Step 1: Let for some positive integer . This can be rewritten as:

Step 2: Test small values of :

  • For : ! Yes!

  • Let's test : , not square. Let's test : , not square. Let's test : , not square. Let's test : , not square.

Step 3: Use modular arithmetic to bound other solutions. By analyzing the powers of 2 modulo odd primes and factor constraints, we show that is indeed the only solution for .

Ready to track your progress and master these topics?

Create a free account