DR.WANG Mathematics中文

2020 AMC 8 · Question 22

Counting & combinatorics · work backwards · tree diagram · problem-solving

Problem outline

For a positive integer nn, a machine outputs n/2n/2 for even nn and 3n+13n+1 for odd nn. Feed each output back in as the next input. Find the sum of all positive starting integers that give 11 after exactly six applications (the sequence may have visited 11 earlier). Choices: A 7373, B 7474, C 7575, D 8282, E 8383.

Show answer and methods 1 methods

Answer

E. 8383.

Method 1 Build the complete predecessor sets

A target tt always has the even predecessor 2t2t. It also has predecessor (t−1)/3(t-1)/3 exactly when this is a positive odd integer. These are the only two rules to invert.

Starting from {1}\{1\}, the successive predecessor sets are {2}\{2\}, {4}\{4\}, {1,8}\{1,8\}, {2,16}\{2,16\}, {4,5,32}\{4,5,32\} and {1,8,10,64}\{1,8,10,64\}. For instance 1616 has predecessors 3232 and 55, while 55 has only 1010.

Thus the six-step starting values sum to 1+8+10+64=831+8+10+64=83.

Source and attribution

The outline and worked methods on this page were prepared for DR.WANG Mathematics.

Original question (external)