Question
Find the number of positive integers <1000 that can be expressed as 2^k−2^m, where k and m are non-negative integers.
Answers
My way of solving......
Let k=m+1
2^(m+1)-2^m <1000
2^m <1000
m<=9
therefore k<=10
For distinct value of k and m,
when k=1,
m=0
when k=2,
m=0,1
when k=3,
m=0,1,2
.
.
.
when k=10
2^k−2^m<1000
2^10-2^m<1000
m>=4
no of possible value of m is 5
total possible combination of (k,m)=50
For k=m, no solution because 0 is not a positive integer
total possible combination of (k,m)=50
Let k=m+1
2^(m+1)-2^m <1000
2^m <1000
m<=9
therefore k<=10
For distinct value of k and m,
when k=1,
m=0
when k=2,
m=0,1
when k=3,
m=0,1,2
.
.
.
when k=10
2^k−2^m<1000
2^10-2^m<1000
m>=4
no of possible value of m is 5
total possible combination of (k,m)=50
For k=m, no solution because 0 is not a positive integer
total possible combination of (k,m)=50
Is it correct?
Related Questions
Find the sum of all positive integers m such that 2^m can be expressed as sums of four factorials (o...
If P(e) gives the profit from selling e number of eggs, which of the following is the most appropria...
If P(e)
gives the profit from selling e number of eggs, which of the following is the most appropr...
Let $d$ be a function taking the positive integers to the nonnegative integers such that $d(p) = 1$...