MathDB
2023 Combinatorics #7

Source:

February 28, 2024
combinatorics

Problem Statement

Svitlana writes the number 147147 on a blackboard. Then, at any point, if the number on the blackboard is nn, she can perform one of the following three operations: \bullet if nn is even, she can replace nn with n2\frac{n}{2} \bullet if nn is odd, she can replace nn with n+2552\frac{n+255}{2} and \bullet if n64n \ge 64, she can replace nn with n64n - 64. Compute the number of possible values that Svitlana can obtain by doing zero or more operations.