This exercise outlines a bijective proof of the formula
\right)= \left({k+n-1\atop k}\right))
from section 1.1. Let A be the set of k-multisets taken from [n] and let B be the set of k-subsets of [k+n-1]. Assume that the k-multiset

is written in nondecreasing order:

. Define f: A

B by
=\left\{ a_{1},a_{2}+1,a_{3}+2,\ldots,a_{k}+n-1\right\})
.
This function, and proof, is originally due to Euler.
Prove that the outputs of

are indeed k-subsets of
![[k+n-1]](http://latex.codecogs.com/png.latex?[k+n-1])
. This requires proof since it is not immediately clear from the definition of

.
Proof: Since
=a_{i}+i-1, 1 \leq i \leq k)
and

then we know that the largest output of

is

. Therefore

for any output of

. Since

is the smallest member of [k+n-1] by definition, it follows that any
![(a_{i}+i-1)\subseteq[k+n-1], 1 \leq i \leq k](http://latex.codecogs.com/png.latex?(a_{i}+i-1)\subseteq[k+n-1], 1 \leq i \leq k)
and that the outputs of

are indeed k-subsets of [k+n-1].