🦘 Math Kangaroo Grade All Felix 1-2 Ecolier 3-4 Benjamin 5-6 Kadett 7-8 Junior 9-10 Student 11-12 ⇄ switch contest
2021 Math Kangaroo

Problem 26

Problem 26 · 2021 Math Kangaroo Stretch
Number Theory difference-of-squaresfactorizationprimes

Each of the numbers a and b is the square of an integer. The difference \(a-b\) is a prime number. Which of the following could be the number b?

Show answer
Answer: D — 900
Show hints
Hint 1 of 2
If a and b are squares, a - b factors as (√a-√b)(√a+√b); for a prime the first factor must be 1.
Still stuck? Show hint 2 →
Hint 2 of 2
So √a and √b are consecutive, and 2√b+1 must be prime — test each b.
Show solution
Approach: difference of squares forces consecutive roots
  1. With a = m² and b = n², a - b = (m-n)(m+n); a prime needs m-n = 1.
  2. Then a - b = m+n = 2n+1, which must be prime.
  3. For b = 900, n = 30 gives 2(30)+1 = 61, which is prime (and a = 961 = 31²).
  4. The other options give composite differences, so b = 900, choice (D).
Mark: · log in to save