Take a test Sign in 中文
← Exercise 612 →
Search
Go to
{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}” No results found for “{{searchWords}}” × back to contents
AIME Contents · by chapter
Digits (23)
Primes (14)
Divisors, GCD, and LCM (28)
Divisibility (22)
Fractions, Decimals, and the Floor Function (14)
Bases (19)
Modular Arithmetic (30)
Integer Equations (29)

Exercises and their solutions

Exercise 612
How many of the integers between 1 and 1234, inclusive, can be expressed as the difference of the squares of two nonnegative integers?
← Back to Problem 612
Solution
  1. $a^2-b^2=(a-b)(a+b)$, and the two factors have the same parity.
  2. So the representable numbers are the odd numbers and the multiples of $4$; exactly the numbers $\equiv2\pmod4$ are missing.
  3. Among $1,\dots,1234$ there are $309$ of those ($2,6,\dots,1234$), so the answer is $1234-309=925$.
  4. The answer is $\boxed{925}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year
1996 (1 problems)
1991 (1 problems)