2020 AMC 8 · Question 22
Problem outline
For a positive integer , a machine outputs for even and for odd . Feed each output back in as the next input. Find the sum of all positive starting integers that give after exactly six applications (the sequence may have visited earlier). Choices: A , B , C , D , E .
Show answer and methods 1 methods
Answer
E. .
Method 1 Build the complete predecessor sets
Topics usedWorking backwardsParity
A target always has the even predecessor . It also has predecessor exactly when this is a positive odd integer. These are the only two rules to invert.
Starting from , the successive predecessor sets are , , , , and . For instance has predecessors and , while has only .
Thus the six-step starting values sum to .
Source and attribution
The outline and worked methods on this page were prepared for DR.WANG Mathematics.
Original question (external)