Sorry for the slip up in the other post!

This is the new GF. Checking the coefficient of x^9 we see that it is 326. That is the answer.

Here is another way to do it. One that has the weight of authority behind it, The following formula was developed by Polya and Szego in 1926.

The number of solutions of:

is:

So to get p=9 we subtract the two sums:

Same answer as above.

]]>Try again

|-5|+|-4|+|0|=9

]]>To answer this you use generating functions. There are other ways but this is my favorite.

This can be modelled as the polynomial expansion of

with 0<= a,b,c,<=9

The coefficient of x^9 is the answer. We see that it is 55. So there are 55 solutions.

]]>]]>