How many 5-digit numbers are there such that the ten-thousand's digit is equal to the sum of the other 4 digits?
Details and Assumptions:
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.
Defining Notations
Let the 5-digit number be of the form a b c d e . Since 1 ≤ a ≤ 9 , we can make cases when a = 1 , 2 , … 9
Making Cases
We can make cases when ( b + c + d + e = 1 , 2 , … 9 ) .
When b + c + d + e = 1 , using the Stars and bars theorem the number of possibilites is ( 4 − 1 1 + 4 − 1 ) = ( 3 4 )
When b + c + d + e = 2 , using the same techinque the number of possibilites is ( 4 − 1 2 + 4 − 1 ) = ( 3 5 )
When b + c + d + e = 3 , using the same techinque the number of possibilites is ( 4 − 1 3 + 4 − 1 ) = ( 3 6 )
We can continue to list down all the possibilities till b + c + d + e = 9 . This equals ( 3 1 2 )
Adding all Combinations
Total such Numbers = ( 3 4 ) + ( 3 5 ) + ( 3 6 ) + … + ( 3 1 1 ) + ( 3 1 2 ) = ( 4 1 3 ) − ( 3 3 ) = 7 1 5 − 1 = 7 1 4