How many functions $$f: \{1,2,\dots,n\} \to \{1,2,\dots,n\}$$ are there such that for every $i \leq j$ we have $f(i) \leq f(j)$?
The only way I could think of was removing all the "bad" cases from $n^n$, but that wouldn't be very effective. What better way could I use?
