This is a long winded comment.
This is not an answer.
First of all, the OP (i.e. original poster) has indicated at least some involvement with generating functions, which I am totally ignorant of. In my experience and observation of others on MathSE, this type of problem is best attacked by either generating functions or Stars and Bars.
For Stars and Bars theory, see
this article and
this article. As I discuss below, I think that Stars and Bars is not the right approach, for this type of problem.
So, I think that the OP should show work, in accordance with this article on MathSE protocol before someone provides them with an answer.
$\underline{\text{Stars and Bars discussion}}$
The $k$ variables, which must be distinct can be permuted in $~k!~$ ways. So, you can reserve the factor $~(k!),~$ and then assume that
$$x_1 < x_2 < \cdots < x_k.$$
For $~i \in \{2,3,\cdots,k\},~$
let $~y_i = x_i - x_{i-1} \implies y_i \geq 1.$
This implies that for $~j \in \{2,3,\cdots,k\},~$
that $~x_j = x_1 + y_2 + y_3 + \cdots + y_j.~$
So, the problem has now been converted into counting the number of solutions to
$k(x_1) + (k-1)y_2 + (k-2)y_3 + \cdots + y_k = n ~: ~n \in \Bbb{Z^+}.$
$x_1, y_2, y_3, \cdots, y_k \in \Bbb{Z^+}.$
At this point, the natural move is to use the further change of variables:
$$u_1 = x_1 - 1, ~~u_i = y_i - 1 ~: ~i \in \{2,3,\cdots,k\}.$$
This transforms the problem into
$\displaystyle k(u_1) + (k-1)u_2 + (k-2)u_3 + \cdots + u_k = n - \left[ ~\frac{(k+1)k}{2} ~\right].$
$u_1, u_2, u_3, \cdots, u_k \in \Bbb{Z_{\geq 0}}.$
My reaction at this point is $\color{red}{\text{so what}}$.
Unless I am missing something, even this alteration of the problem still doesn't seem to lend itself to Stars and Bars.
https://en.wikipedia.org/wiki/Change-making_problem
– joseville Mar 28 '23 at 23:07