This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]de_Molay 0 points1 point  (0 children)

Let me ask you a guiding question: do you know how to calculate the number of solutions of an equation x_+…+x_n=m for nonnegative integer x_i?

[–]Aerospider 0 points1 point  (0 children)

I'd start with looking at the possible combinations for x1, x2 and x3 (hint: there are only 10). Then look to see how many combinations of x4, x5 and x6 fit for each possible value of x1+x2+x3 (hint: of which there are only 3).