How many possible ways can $i+j+k=n$ without taking the order into account?

469 Views Asked by At

Given that $i,j,k$ are non-negative integers, how many possible ways can $i+j+k=n$ without taking the order into account?

In other words, what does the following sum equal? $$\sum_{i+j+k=n} 1$$

And then, for a generalized case of m numbers:

$$a_0+a_1+...+a_m=n$$

But the order for which i,j and k are placed does not matter, for example: $1+1+2$, $1+2+1$ and $2+1+1$ are the same combination.

2

There are 2 best solutions below

1
On

The number of solutions is $[a_n]$ where $a_n$ is defined as follow: $\frac{1}{(1-z)^3}=\sum_{n\geq 0}a_nz^n$. In general the number of solution $A_n$ of the diophantine equation $x_1+x_2+...+x_k=n$ is given by the Taylor expansion of $\frac{1}{(1-z)^k}$

0
On

If the order matters, the we are speaking of the weak compositions of $n$ into $m$ parts. and their number is $$\binom{n+m-1}{m-1}$$

If the order does not matter then, since the $x_k$ can also be null, we are speaking of the partitions of $n$ into at most $m$ parts$.
Look at the indicated link for how to compute that.

Note

When you write $$ \sum\limits_{i + j + k = n} 1 $$ the general acception for that is that order matters.