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 [tex]\mathcal{M}(n,d)[/tex] is the quantity that we seek.
We know that for [tex]|x|<1[/tex], we have the following (unique) power series expansion :
[tex]
\frac{1}{1-x} = 1 + x + x^2 + x^3 + ...[/tex]
Then :
[tex]
\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 />
+...)[/tex]
If we have a term [tex]x_1^{a_1}x_2^{a_2}...x_n^{a_n}[/tex], then let the net order correspond to the quantity [tex]a_1 + a_2 + ... + a_n[/tex]. If, in the power series above, we aggregate all the terms with net order [tex]d[/tex], then let the number of such terms be equal to [tex]\mathcal{M}(n,d)[/tex]. From this it is clear that if we set [tex]x_1 = x_2 = ... = x_n[/tex] then the coefficient of [tex]x^d[/tex] in the power series expansion of [tex]1/(1-x)^n[/tex] will be equal to [tex]\mathcal{M}(n,d)[/tex]. That is :
[tex]
f(x) = \frac{1}{(1-x)^n} = 1+\sum_{i=1}^n\mathcal{M}(n,i)x^i[/tex]
If [tex]f^{(n)}(x)[/tex] denotes the n-th derivative of [tex]f(x)[/tex] then :
[tex]
\mathcal{M}(n,i) = \frac{f^{(i)}(x)}{i!}|_{x=0}[/tex]
But it is clear that :
[tex]
f^{(i)}(x)|_{x=0} = n.(n+1)...(n+i-1)[/tex]
so that :
[tex]
\mathcal{M}(n,i) = \frac{(n+i-1)(n+i-2)...n}{i!}[/tex]
i.e.
[tex]
\mathcal{M}(n,i) = \binom{n+i-1}{n-1}[/tex]