Home > Just Math
Getting 13 (Posted on 2014-07-21) |
|
Using integers 1,2,3 & 4 only , in how many distinct ways a sum of 13 can be achieved?
Rem: The order matters i.e. 1,4,4; 4,1,4; & 4,4,1 are considered distinct.
|
Submitted by Ady TZIDON
|
Rating: 4.0000 (1 votes)
|
|
Solution:
|
(Hide)
|
Let f(n) = number of ways of achieving total n.
f(0)=1 f(1)=2 and the recursion formula is:
f(n) = f(n-4) + f(n-3) + f(n-2) + f(n-1).
f(13) = 2872
See Steve Herman detailed soltion. |
Comments: (
You must be logged in to post comments.)
|
|
Please log in:
Forums (0)
Newest Problems
Random Problem
FAQ |
About This Site
Site Statistics
New Comments (3)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On
Chatterbox:
|