How many numbers in between 4000 and 9999 have sum of digits equal to ten?
My attempt
My thinking was to use exponential generating functions because 4510 is not equal to 5401 so the order should matter, which would imply (from what I have learned) that exponential generating functions is the correct one.
So I set it up as
$(\frac{x^4}{4!}+\frac{x^5}{5!} \dots \frac{x^9}{9!})*(\frac{1}{0!} + \frac{x}{1!} \dots \frac{x^9}{9!})^3$
But based on How many numbers between $100$ and $900$ have sum of their digits equal to $15$? and my professor as well, one should use ordinary generating functions, i.e.
$(x^4 + x^5 \dots x^9)*(1 + x \dots x^9)^3$
Why is it not correct to use exponential generating functions for this problem, and why is it correct to use ordinary generating functions? In this case, what would be question that the exponential generating function answers vs. what would be the question that the ordinary generating function answers? I question in a similar vein is also Kind of basic combinatorical problems and (exponential) generating functions