Determine all positive integers such that is a perfect square.
n = 4
n = 7
n = 6
n = 5
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.
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