2020 AMC 8 Problem 22

Attempt Problem 22 of the 2020 AMC 8 below, then check your answer against the video solution and professionally curated solution from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2020 AMC 8 solutions, or check the answer key.

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

22.

When a positive integer NN is fed into a machine, the output is a number calculated according to the rule shown below.
For example, starting with an input of N=7,N=7, the machine will output 3⋅7+1=22.3 \cdot 7 + 1 = 22. Then if the output is repeatedly inserted into the machine five more times, the final output is 26.26. 7→22→11→34→17→52→26 \begin{align*} &7 \to 22 \to 11 \to 34 \\ &\to 17 \to 52 \to 26 \end{align*} When the same 66-step process is applied to a different starting value of N,N, the final output is 1.1. What is the sum of all such integers N?N? N→00‾→00‾→00‾→00‾→00‾→1 \begin{align*} &N \to \underline{\phantom{00}} \to \underline{\phantom{00}} \to \underline{\phantom{00}}\\ &\to \underline{\phantom{00}} \to \underline{\phantom{00}} \to 1 \end{align*}
7373
7474
7575
8282
8383
Answer: E
Concepts:work backwardstree diagram
Small hint:
Work backward from the final output 11
Big hint:
A previous value can be 2m2m, and sometimes m−13\frac{m-1}{3}
Video solution:
Solution video thumbnail
Play video

Click to load, then click again to play

Written solution:
Work backward from 1.1. A value mm can always come from the even input 2m.2m. It can also come from the odd input m−13\frac{m-1}{3} when that expression is a positive odd integer.
Listing the possible values after each backward step gives {1}←{2}←{4}←{1,8}←{2,16}←{4,5,32}←{1,8,10,64}. \begin{aligned} \{1\}&\leftarrow\{2\}\leftarrow\{4\}\leftarrow\{1,8\}\\ &\leftarrow\{2,16\}\leftarrow\{4,5,32\}\\ &\leftarrow\{1,8,10,64\}. \end{aligned} Thus the possible starting values are 1,1, 8,8, 10,10, 64,64, whose sum is 83.83.
Thus, the correct answer is E.
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.