Take a test Sign in 中文
← Exercise 661 →
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 661
Let $S$ be the increasing sequence of positive integers whose binary representation has exactly $6$ ones. Let $N$ be the 500th number in $S$. Find the remainder when $N$ is divided by $1000$.
← Back to Problem 661
Solution
  1. Numbers with $6$ ones and at most $k$ bits: $\binom k6$.
  2. Since $\binom{11}6=462<500\le\binom{12}6=924$, $N$ has $12$ bits: $N=2^{11}+M$ where $M$ is the $38$th number with $5$ ones; continuing the same way gives $N=100011001011_2=2251$.
  3. The remainder is $251$.
  4. The answer is $\boxed{251}$.
Search Go to Prev      Next

Contact Us

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