Compute the number of 4-digit numbers whose digits sum to 7.
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.
One way of thinking about this problem is that there are 4 digits, each of which will receive some number of 1s, and there are only 7 1s to go around. In this view, we can use Stars and Bars to find the answer. First, we find the number of the ways the 7 1s can be distributed to the 4 digits. We have ( 3 1 0 ) = 1 2 0 . However, this is including cases where the first digit is 0, like 0250. In these cases, the numbers are basically equivalent to a 3-digit number (or less). Therefore, we subtract ( 2 9 ) = 3 6 from 120 which gives us 8 4 .