Search problems

2 problems match “binary number system”. Clear

Visitors search a sample. Sign in for free to search every problem. Sign in

  1. Minimum operations to clear 2021 piles ●●●○○ 50 ptsThere are 2021 piles of stones, with the number of stones in each pile being 1,2,…,20211, 2, \ldots, 2021 respectively. In one operation you select any number of piles and remove the same number of stones from each selected pile. What is the minimum number of operations required to remove all the stones?
  2. Reachable values on a blackboard ●●●●○ 100 ptsSvitlana writes the number 147 on a blackboard. Then, at any point, if the number on the blackboard is nn, she can perform one of the following three operations: if nn is even, she can replace nn with n2\frac{n}{2}; if nn is odd, she can replace nn with n+2552\frac{n+255}{2}; and if n≥64n \geq 64, she can replace nn with n−64n-64. Compute the number of possible values that Svitlana can obtain by doing zero or more operations.