I know that:
$$\left|\left\{(a_1,a_2,...,a_n) \in \mathbb Z_{\ge0}^n : \sum_ia_i = k\right\}\right| = \binom{n + k - 1}k$$
In other words, the number of ordered $n$-tuples of non-negative integers summing to $k$ is given by the binomial coefficient on the RHS.
I tried to figure out a way to find the formula in the case of tuples of $\mathbb Z_{>0}^n$, that is, positive integers instead of non-negative integers, but I couldn't figure out such formula. The case $n=2$ is trivial, since it's enough to subtract $2$ from the result (namely, the pairs $(n,0)$ and $(0,n)$), but in the general case it gets very hard and I believe the formula doesn't look nice (although I'd love to get proven wrong on this point).
So, can you help me finding such formula? Thanks in advance.