Skip to main content

1997 AIME Problem 1

Problem 1 of 15EasierAlgebraNumber Theory

How many of the integers between 11 and 1000,1000, inclusive, can be expressed as the difference of the squares of two nonnegative integers?

Your answer

Integer from 0 to 999
Show solution

Solution

Write n=a2−b2=(a−b)(a+b).n = a^2 - b^2 = (a - b)(a + b). The factors a−ba - b and a+ba + b differ by the even number 2b,2b, so they have the same parity. If both are odd, nn is odd; if both are even, nn is divisible by 4.4. Hence no integer n≡2(mod4)n \equiv 2 \pmod 4 is a difference of two squares. Conversely, every odd number 2k+12k + 1 equals (k+1)2−k2,(k+1)^2 - k^2, and every multiple of 4,4, say 4k,4k, equals (k+1)2−(k−1)2(k+1)^2 - (k-1)^2 (with k−1≥0k - 1 \ge 0 since k≥1k \ge 1). Between 11 and 10001000 there are 500500 odd numbers and 250250 multiples of 4,4, for a total of 500+250=750.500 + 250 = 750.
AoPS wiki

Tagged: difference of squares · parity

More practice