2 0 □ 2 1 □ 2 2 □ … □ 2 n = 1 9 9 1
For positive integer n , there are 2 n ways in which we can fill the squares with + , − . To make the equation true, how many of these squares are addition signs?
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.
How can u assume that this is the only possible case where u can arrive at the desired 1991 as the solution.
Log in to reply
We can only get from 2 0 4 7 to 1 9 9 1 by subtracting 5 6 = 2 ∗ 2 8 . All we have to work with are powers of 2 , and when we switch the addition signs to subtraction signs we in effect subtract twice the chosen powers of 2 . So we need to find those powers of 2 that add to 2 8 , and 2 2 + 2 3 + 2 4 is the unique representation of 2 8 in this format, i.e., it is the only possible case where we can arrive at 1 9 9 1 .
If we have n = 1 1 , if we have all addition signs then we start at 4 0 9 5 , and hence have to subtract 2 1 0 4 to get to 1 9 9 1 . Due to the aforementioned "doubling" effect, this means we have to switch addition signs on powers of 2 totaling to 1 0 5 2 , the unique representation of which in this format being 2 2 + 2 3 + 2 4 + 2 1 0 . Similarly for any other n , there will be unique representation to achieve the desired sum of 1 9 9 1 , and in every case, the number of addition signs will be 7 .
1991 = 11111000111 (binary).
The number of pluses is equal to number of 1 in binary form.
Сouse all subsequence like 0001 we can make with 2^n-2^(n-1)-...-2^k
So, we have 8 pluses, but there no operation before 0 power. Answer = 8-1 = 7
1+2+4+8+16+32+64+128+256+512+1024=2047
2047-1991=56
56/2=28
4+8+16=28
1+2-4-8-16+32+64+128+256+512+1024
1+2-4-8-16+32+64+128+256+512+1024
Problem Loading...
Note Loading...
Set Loading...
Note first that the least possible value of n is 1 0 , since ∑ k = 0 9 2 k = 1 0 2 3 .
Now since ∑ k = 0 1 0 2 k = 2 0 4 7 differs from 1 9 9 1 by 5 6 , we need to switch the addition signs in front of those powers of 2 that sum to 5 6 ÷ 2 = 2 8 to subtraction signs in order to satisfy the given equation. Since 2 8 = 2 2 + 2 3 + 2 4 , we need to switch a total of 3 addition signs, leaving us with 1 0 − 3 = 7 addition signs.
Now for n > 1 0 , we will need to switch the same addition signs as above, as well as those from 2 1 0 to 2 n − 1 , with the addition sign before 2 n left intact, in order to satisfy the given equation. This changes the number of subtraction signs but leaves the number of addition signs at 7 .
So for any n ≥ 1 0 , the number of addition signs is 7 .