There are positive integers satisfying the following:
The digits of are composed of 1,3 and 4.
The sum of the digits of is 42.
Find .
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.
Let a n be the number of positive integers made up of digits 1 , 3 , 4 such that the sum of its digits is n ; we're looking for a 4 2 .
By simple case check, we can see that a 1 = 1 (1), a 2 = 1 (11), a 3 = 2 (111, 3), and a 4 = 4 (1111, 13, 31, 4). We also have a n = a n − 1 + a n − 3 + a n − 4 for n ≥ 5 ; removing the last digit gives a positive integer made up of digits 1 , 3 , 4 with sum of its digits being one of n − 1 , n − 3 , n − 4 depending on the digit that's removed. Then we can just plug it in to a spreadsheet program or something to find S = a 4 2 = 3 1 3 6 7 9 5 2 1 , so S = 1 7 7 1 1 .