2022 AMC 12B Problem 23

Attempt Problem 23 of the 2022 AMC 12B below, then check your answer against the professionally curated solution from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2022 AMC 12B solutions, or check the answer key.

All problems are used with official legal permission of the Mathematical Association of America (MAA).

23.

Let x0,x_0, x1,x_1, x2,x_2, …\ldots be a sequence of numbers, where each xkx_k is either 00 or 1.1. For each positive integer n,n, define Sn=∑k=0n−1xk2k.S_n = \sum_{k=0}^{n-1} x_k 2^k. Suppose 7Sn≡1(mod2n)7 S_n \equiv 1 \pmod{2^n} for all n≥1.n \ge 1. What is the value of the sum x2019+2x2020+4x2021+8x2022?x_{2019} + 2x_{2020} + 4x_{2021} + 8x_{2022}?
66
77
1212
1414
1515
Answer: A
Concepts:modular arithmeticnumber basepattern recognition
Small hint:
SnS_n is the number formed by the low nn bits; the condition says Sn≡7−1(mod2n)S_n \equiv 7^{-1} \pmod{2^n}
Big hint:
So the bits xkx_k are the binary (2-adic) digits of 17;\tfrac17; find their repeating pattern
Solution:
Since SnS_n is the integer formed by the low nn bits, the condition 7Sn≡17S_n \equiv 1 means Sn≡7−1(mod2n)S_n \equiv 7^{-1} \pmod{2^n} for every n.n. Thus the digits xkx_k are the base-22 digits of 17\tfrac17 as a 22-adic number.
Long division in base 22 gives digits x0=x1=x2=1,x_0 = x_1 = x_2 = 1, and thereafter the block repeats with period 3:3: for k≥1,k \ge 1, xk=0x_k = 0 exactly when kk is divisible by 3,3, and xk=1x_k = 1 otherwise.
Since 20192019 and 20222022 are both divisible by 3,3, while 2020≡12020 \equiv 1 and 2021≡2(mod3),2021 \equiv 2 \pmod 3, we get x2019=0,x_{2019} = 0, x2020=1,x_{2020} = 1, x2021=1,x_{2021} = 1, x2022=0.x_{2022} = 0. The sum is 0+2+4+0=6.0 + 2 + 4 + 0 = 6.
Thus, the correct answer is A.
LIVE by Po-Shen Loh
Programs

LIVE Classes

Self-Paced Classes

Stars

Scholarship

About Us

Who Is Po-Shen Loh?

Email Contact

Newsletter

Jobs

Become a Star

For a more Thought Full world.

© 2026 Expii, Inc.