Solutions of Indefinite Equation ∑ i = 1 m x i = x 1 + x 2 + ⋯ + x m = n \sum_{i=1}^m{x_i}=x_1+x_2+\cdots+x_m=n ∑i=1mxi=x1+x2+⋯+xm=n Num of positive integer solutions: C n − 1 m − 1 C^{m-1}_{n-1} Cn−1m−1Num of nonnegative integer solutions: C n + m − 1 m − 1 C^{m-1}_{n+m-1} Cn+m−1m−1