Take a test Sign in 中文
← Exercise 663 →
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 663
Let $N$ be the number of positive integers that are less than or equal to 1500 and whose base-2 representation has more 1's than 0's. Find the remainder when $N$ is divided by 1000.
← Back to Problem 663
Solution
  1. A $k$-digit binary number starts with $1$; the other $k-1$ digits need more than $\frac k2-1$ ones.
  2. For $k=1,\dots,10$ the counts are $1,1,3,4,11,16,42,64,163,256$ (total $561$).
  3. For $11$-digit numbers $1024\le n\le1500$, a direct count gives $222$.
  4. So $N=783$.
  5. The answer is $\boxed{783}$.
Search Go to Prev      Next

Contact Us

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