We consider all k-element sequences with values from the set $[n] = \{1,2 ,..., n \}$. For each such list, we determine the smallest value, and then sum these values. Show that the sum is equal to:
$$1^k + 2^k + 3^k + ... + n^k$$
Example, for $k = 2$ and $n = \{ 1,2 \}$:
In that case, get $4$ seqences. Those are: $11$, $22$, $12$, $21$. Therefore, we take smallest values from each of those $4$ sequences. These will be: $1,2,1,1$. We sum them up and get $5$.
Why would that be the case?
I know that there are $n^k$ k-element sequences with values from the set $[n]$. From each of those we need to take the smallest value. It will be $1$ for $n^k - (n-1)^{k}$ of those sqeuences (we take all possible sequences and subtract those without any $1$). Therefore we have $(n^k - (n-1)^{k}) \cdot 1$.
- For $2$ we have: $(n-1)^k - (n-2)^{k}$ sequences because we can take all possible sequences without $1$ and subtract those without any $1$ and $2$
- And so on...
Therefore we get:
$$\big(n^k - (n-1)^{k} \big) \cdot 1 + \big( (n-1)^k - (n-2)^{k} \big) \cdot 2 + ... + \big( 1^k - 0^{k} \big) \cdot n$$
But that doesn't look like: $1^k + 2^k + 3^k + ... + n^k$, so I don't know what to do...