I'm having a slight problem with a simple equation of the sort $a_1+a_2+a_3...=n$. Where $n,a_1, a_2, a_3... \in N$. I do know how to find the number of solutions to these equations when they are of the regular form. But if you apply a constraint, I'm unable to solve it.
The above equation has the constraints that all of them are whole numbers and that none of them are greater than 4. I need to find the number of solutions to the problem.
Could I please get some help regarding this problem?
Any help would be appreciated. Thank you.