What is the number of positive integers from 1 to 1000 (inclusive) that can be expressed as the difference of two numbers in the set {1,2,2^2,2^3,…}?
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.
Corresponding to 2 n , n numbers can be obtained by subtracting the numbers : 1 , 2 , 2 2 , . . . , 2 n − 1 from it.
From 2 1 0 onwards each difference is greater than 1 0 0 0 . So, considering the cases till 2 1 0 .
By using numbers ranging from 2 to 2 1 0 we obtain : ( k = 1 ∑ 1 0 k ) numbers = 5 5 .
Out of these 5 5 numbers, 5 are greater than 1 0 0 0 : ( 2 1 0 − 1 , 2 1 0 − 2 1 , . . . , 2 1 0 − 2 4 )
Hence, the answer is : 5 5 − 5 = 5 0