A more general formulation of the question would be: In how many ways can you permutate three natural numbers (not counting 0) such that their sum equals n?
Im also supposed to solve the problem in about 5 minutes with only pen and paper.
I know there are similar posts like: Given an integer $n >0$, how many ways can we express $n$ as the sum of three natural numbers $n_1,n_2,n_3$ ?
But I am having a hard time applying this to my problem since they are counting with zeros. The user "kneidell" comes with a good explanation of why the number of combinations counting with zeros is $\binom{n+2}{2}$.
One could just use the formula and subtract every combination who contains a zero. But I think thats a very ineffective way to do it. I tried using his logic to come up with my own formula or thinking process but failed.
So does anyone have an effective way to solve this question/these types of questions?