Counting increasing and non-decreasing functions
Consider functions $\set{1,2,\ldots,k} \to \set{1,2,\ldots,n}$ where $k\leq n$.
-
For (strictly) increasing functions i.e. $f(i+1) > f(i)$, there are $\pmat{n\\k}$ of them. (Derivation)
-
For non-decreasing functions i.e. $f(i+1) >= f(i)$, there are $\pmat{n+k-1\\k}$ of them. (Derivation)