I received a word problem that goes like this.
A local kindergarten is thinking of making posters that show all the different ways of adding two or more integers from 1 to 9 to get a sum of 10. If there is enough space on each poster for up to 50 possible solutions, how many posters will the school need to make?
(Note: sums that contain the same number but in a different order are considered to be different; for example, 1 + 9 and 9 + 1 are two different solutions.)
What is the answer to this problem, and more importantly, how do I solve it?
Imagine $10$ ones in a row, and insert plus signs between them; for instance, $|||+||+|||||$ stands for the sum $3+2+5$. So the sums you want to count correspond to the ways of inserting plus signs. There are $9$ slots between the $10$ ones, and you can either insert a plus sign or not in each of them independently, so the number of different ways of doing this is $2^9$. However, one of these corresponds to inserting no plus signs at all, which doesn't yield a sum of at least two numbers, so we have to subtract that and the result is $2^9-1=512-1=511$.