Let n > 0 be a positive integer. Prasun the gahn dew has written n 1 's on a blackboard. Each second, Prasun chooses two integers a and b written on the blackboard and replaces them by 4 a + b (he removes a and b and then writes 4 a + b on the blackboard in their place). After n − 1 seconds, there is only one number remaining. Suppose that there exists a sequence of moves such that this remaining number is equal to n 1 . Find the number of n ≤ 1 0 0 0 for which this is possible.
Details and assumptions
For example, if n = 3 , initially the numbers written on the blackboard are 1 1 1 (three 1 's). Prasun chooses two of these 1 's and replaces them by 4 1 + 1 = 2 1 . After the first second, the numbers written on the blackboard are 1 2 1 . In the next second, Prasun replaces these numbers by 4 1 + 1 / 2 = 8 3 . This is the remaining number.
By default, n = 1 works, since the only number written on the blackboard is equal to 1 = 1 1 .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Log in to reply
Umm, gahn dew is a generic term for a respectable person, most commonly used for father, teachers, uncles and other elderly folk.
Small typo in the question. It should be "Find the number of n < 1 0 0 0 for which this is possible"
The current phrase could also be interpreted as the sum of all n for which this is possible.
I can't believe I randomly guessed 1 and 1000 at the beginning from misreading and then thought that there were 9 powers of 2 under 1000...
I want my rating back ⌢ ¨
Define a 'step' to be a replacement as described in the question. Also, in my solution powers of 2 are 1, 2, 4, 8, ...
It is clear that all numbers after each step are rational.
Next we prove that all of the numbers in each step, when simplified, have a power of 2 as the denominator. In the first step, we are done as we will get 2 1 and the others are '1's. Suppose it was true after the kth step. We replace two of the numbers a , b with 4 a + b . Note that the denominator d of a + b simplified must divide the product of the denominators of a , b . Thus d is a power of 2. Dividing a + b by 4, we can see that the denominator is still a power of 2.
So, if n is a natural number such that n 1 can be achieved, it must be a power of 2.
Next we prove that all powers of 2 work. We can clearly get n 1 = 2 0 1 . Suppose we can get 2 k 1 with A ones in the beginning. If we have 2 A ones, we can get two of 2 k 1 . By applying the replacement we can get 2 k + 1 1 . By induction, all powers of 2 are possible values of n.
In conclusion the answer is the number of powers of 2 from 1 to 1000 which is 10.
Problem Loading...
Note Loading...
Set Loading...
I claim that n = 2 k for some k ∈ Z + .
First, I shall show that the sum of the reciprocals of the numbers written by the blackboard must decrease (not necessarily strictly) in each step. To do this, it suffices to show that a 1 + b 1 ≥ a + b 4 , which is equivalent to ( a + b ) 2 ≥ 4 a b , which is true.
Thus, if t denotes the final number remaining after n − 1 moves, we have t 1 ≤ n ⟹ t ≥ n 1 . We want equality to hold. Now, we have a 1 + b 1 = a + b 4 if and only if a = b . Thus, at any moment, the chosen numbers must be equal.
It follows that initially, each 1 must be paired up with another 1 , so n must be even. Then, the configuration is equivalent to n / 2 1 / 2 's. Each of these 1 / 2 's must be paired up with another 1 / 2 , so n / 4 is even. We continue this way till we reach 1 , so n cannot have any non trivial odd factor, so n must be a power of 2 .
Thus, our answer is 1 0 .