Take a test Sign in 中文
← Exercise 695 →
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 695
For each positive integer $n$ let $a_n$ be the least positive integer multiple of $13$ such that $a_n \equiv 1 \pmod{2^n}.$ Find the number of positive integers $n$ less than or equal to $1000$ that satisfy $a_n = a_{n+1}.$
← Back to Problem 695
Solution
  1. $a_n=13\cdot(13^{-1}\bmod2^n)$, and $a_n=a_{n+1}$ exactly when bit $n$ of the $2$-adic inverse of $13$ is $0$.
  2. The binary expansion of $13^{-1}$ is eventually periodic (period $12$, since $\mathrm{ord}_{13}2=12$), and counting zero bits among positions $1,\dots,1000$ gives $501$.
  3. The answer is $\boxed{501}$.
Search Go to Prev      Next

Contact Us

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