Find the number of different sums that can be obtained by using one,some or all of the numbers in the set{1,2,4,8}.Then, how about from {#2^0,2^1,2^2,..,2^n#}?
1 Answer
Explanation:
We can prove this result by induction...
Let
Base case
The number of distinct non-zero sums available from the set
Thus
Induction step
Suppose
Then there are
The largest is
So there are
So the number of distinct sums available from
#(2^(n+1) - 1) + (2^(n+1) - 1) + 1 = 2*2^(n+1)-1 = 2^((n+1)+1)-1#
So
Conclusion
Since
In particular