I am glad your professor didn't tell you the answer, because as a result I have learned something new from your post:)
My approach was different. I was motivated by
http://en.wikipedia.org/wiki/Partition_(number_theory)#Generating_function".
In the below \mathcal{M}(n,d) is the quantity that we seek.
We know that for |x|<1, we have the following (unique) power series expansion :
<br />
\frac{1}{1-x} = 1 + x + x^2 + x^3 + ...<br />
Then :
<br />
\frac{1}{1-x_1}\frac{1}{1-x_2}...\frac{1}{1-x_n} = (1+ x_1 + x_1^2 +<br />
x_1^3 +...)(1+ x_2 + x_2^2 + x_2^3 +...)...(1+ x_n + x_n^2 + x_n^3<br />
+...)<br />
If we have a term x_1^{a_1}x_2^{a_2}...x_n^{a_n}, then let the net order correspond to the quantity a_1 + a_2 + ... + a_n. If, in the power series above, we aggregate all the terms with net order d, then let the number of such terms be equal to \mathcal{M}(n,d). From this it is clear that if we set x_1 = x_2 = ... = x_n then the coefficient of x^d in the power series expansion of 1/(1-x)^n will be equal to \mathcal{M}(n,d). That is :
<br />
f(x) = \frac{1}{(1-x)^n} = 1+\sum_{i=1}^n\mathcal{M}(n,i)x^i<br />
If f^{(n)}(x) denotes the n-th derivative of f(x) then :
<br />
\mathcal{M}(n,i) = \frac{f^{(i)}(x)}{i!}|_{x=0}<br />
But it is clear that :
<br />
f^{(i)}(x)|_{x=0} = n.(n+1)...(n+i-1)<br />
so that :
<br />
\mathcal{M}(n,i) = \frac{(n+i-1)(n+i-2)...n}{i!}<br />
i.e.
<br />
\mathcal{M}(n,i) = \binom{n+i-1}{n-1}<br />