What is the number of (positive) integer solutions of:
$$a_1+a_2+\ldots+a_i=n$$
where $a_1 \ge a_2 \ge \ldots\ge a_i\gt 0$ ?
Also, the order of summands does not matter.
What is the number of (positive) integer solutions of:
$$a_1+a_2+\ldots+a_i=n$$
where $a_1 \ge a_2 \ge \ldots\ge a_i\gt 0$ ?
Also, the order of summands does not matter.
Hint: You may deal with the sub-case $a_1>a_2>\ldots>a_m>0$ and $\sum a_k = n$ first.
By setting $a_1-a_2=b_1, a_2-a_3= b_2, \ldots a_m=b_m$, we want to count the solutions of: $$ b_1 + 2 b_2 +\ldots + m b_m = n $$ with $b_m\in\mathbb{N}^+$. That can be done through a classical argument. Then account for the cases in which some of the inequalities $a_1\geq a_2\geq a_3\ldots\geq a_m$ hold as equalities.