Problem
When a positive integer is fed into a machine, the output is a number calculated according to the rule shown below. If is even: If is odd: 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 ?
Select an answer