4

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?

Adved
  • 43

1 Answers1

0

image

From here.
Also, removing "bad" cases from total cases is not always a good idea.