Take a test Sign in 中文
← Exercise 953 →
Search
Go to
{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}” No results found for “{{searchWords}}” × back to contents
Contents · by chapter
Digits (38)
Primes (31)
Fractions, Decimals, and the Floor Function (18)
Divisors, GCD, and LCM (36)
Divisibility (59)
Bases (15)
Modular Arithmetic (42)
Integer Equations (27)

Exercises and their solutions

Exercise 953
Let $x_0,x_1,\ldots$ be digits $0$ or $1$ with $S_n=\sum_{k=0}^{n-1}x_k2^k$ satisfying $3S_n\equiv1\pmod{2^n}$ for all $n\ge1$. What is $x_{100}+2x_{101}+4x_{102}+8x_{103}$?
← Back to Problem 953
Solution
  1. Take $n=2m$. With $T=\frac{4^m-1}3=1+4+\cdots+4^{m-1}$, $3T\equiv-1\pmod{4^m}$, so $3(4^m-T)\equiv1\pmod{4^m}$. Both $S_{2m}$ and $4^m-T$ lie in $[0,4^m)$ and the inverse of $3$ is unique, so $S_{2m}=4^m-T$ (take $m$ large, say $m=52$).
  2. $4^m-T$ in binary is $\ldots1010\,1011$ (e.g.\ $16-5=11=1011_2$): $x_0=x_1=1$, and for $k\ge2$, $x_k=1$ exactly when $k$ is odd.
  3. So $0+2\cdot1+4\cdot0+8\cdot1=\boxed{10}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year