ChallengeMediumCounting: Inclusion–Exclusion & Stars and Bars
Counting: Inclusion–Exclusion & Stars and Bars · Medium problem
How many functions from a -element set onto a -element set are there (surjections)?
How many functions from a -element set onto a -element set are there (surjections)?