Question 10
Arithmetic BDMO 2012 Regional · Noakhali
Anannya has a magic box. If an even number is entered in it, it is halved. If an odd number is entered, it is increased by 1. Anannya entered 2012 in her box. Then she entered the output number again in the box. She continued doing so unless the output was 1. For how many times did she have to enter number in the box?