2020 AMC 8 Problems/Problem 22
Contents
Problem 22
When a positive integer is fed into a machine, the output is a number calculated according to the rule shown below.
For example, starting with an input of the machine will output Then if the output is repeatedly inserted into the machine five more times, the final output is When the same -step process is applied to a different starting value of the final output is What is the sum of all such integers
Solution 1
We see that work, so . ~yofro
Solution 2
Start with the final output which is and then work backwards, carefully including all the possible inputs that could have resulted in that output. For example, for the number , if you go backwards, you only get to , because is the only input which can lead to an output of . However, for a number like for example, both the inputs and lead to an output of . A nice way to draw this out is to make a tree diagram but one can also make a series of sets which contain all the possible inputs up to that point.
The last set in this sequence contains all the numbers which will lead to the number 1 after the 6-step process is repeated. The sum of these numbers is .
~junaidmansuri
Solution 3
The most straightforward solutions is just working backwards with a diagram as shown below:
Hence, the answer is .
-franzliszt
Solution 4 (Basically the same solution but in detail)
To solve this, we can work backward. First, we find the inverse of the function that the machine uses. Call the input and the output If is even, and if is odd, This means the inverse formulas are when is even and when is odd. From here, we can plug in into both of these equations to find out what values of lead to an value of If is even, and if is odd, Note that is not a valid solution, since is not odd. This means that the second to last number in the sequence has to be in order for the last number to be Next, plug in into each of these equations. If is even, and if is odd, Once again, is not valid, since it has to be a positive integer, but works. This means the 3rd-to-last number in the sequence has to be Now comes the first split: if is even, but if is odd, This means the 4th-to-last number can be either or If it is following the same logic from before, the 5th-to-last number has to be the 6th-to-last number has to be and the 7th-to-last number, or the first number, has to be either or This gives us solutions: or If the 4th-to-last number is that means the 5th-to-last number is either or But doesn't work, so it has to be Now we run into another split: if is even, but if I is odd, If the 6th-to-last number is the 7th-to-last one, has to be since doesn't work, and if the 6th-to-last number is then This means that there are solutions for and their sum is -theepiccarrot7
See also
2020 AMC 8 (Problems • Answer Key • Resources) | ||
Preceded by Problem 21 |
Followed by Problem 23 | |
1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • 10 • 11 • 12 • 13 • 14 • 15 • 16 • 17 • 18 • 19 • 20 • 21 • 22 • 23 • 24 • 25 | ||
All AJHSME/AMC 8 Problems and Solutions |
The problems on this page are copyrighted by the Mathematical Association of America's American Mathematics Competitions.