2021 Selection · Dhaka · Secondary 10/10 বাং

Question 10

Number theory BDMO 2021 Selection · Dhaka

You have a magical machine that takes a positive integer as input. If you give an even number as input to the machine, it returns one-half of it as output. If you give an odd number as input to it, it adds three to it and returns it as output. The machine does not stop there. Instead, it keeps running by using its current output as the next input. It only stops running once it outputs a number it has already received as input in the past. Let SS be the set of possible numbers the machine stops on. What is the sum of the elements of SS?

Worked it out?

This paper's answer key isn't in yet, so mark it yourself.

Log in to save your progress.
Log in to report a mistake