There is a deep — and surprisingly simple — way to see the four slip formulae: they count functions.

Number the slips 1,2,,k1,2,\dots,k and the people 1,2,,n1,2,\dots,n. Distributing the slips means saying, for each slip, which person gets it: that is, assigning to every element of K={1,,k}K=\{1,\dots,k\} (the slips, the domain) an element of N={1,,n}N=\{1,\dots,n\} (the people, the codomain). This is exactly a function f:KNf:K\to N, where f(i)f(i) is the person who gets slip ii.

The two slip questions become two properties of the function:

  • numbered / blank = whether the slips are distinguishable. If numbered, it matters which slip goes where: the function is what it is. If blank, the slips are interchangeable, so only how many and to whom matters, not the label: of all the functions giving the same “outcome” we keep just one, the one that sends the slips in order — a increasing function (or non-decreasing, if repeats are allowed).
  • at most 1 / more than one per person = each person gets at most one slip, or as many as you like. “At most one each” means two different slips do not land on the same person: the function is injective.

Combining the two properties gives the four kinds of function — and the four formulae:

The four formulae count functions f:KNf:K\to N (with K=k|K|=k, N=n|N|=n)

blank slips (identical)numbered slips (distinct)
at most 1 per personstrictly increasing functions — (nk)\dbinom{n}{k}injective functions — n!(nk)!\dfrac{n!}{(n-k)!}
more than onenon-decreasing functions — (n+k1k)\dbinom{n+k-1}{k}all functions — nkn^k

Let us see the four cases one by one, with an example from k=3k=3 slips to n=5n=5 people.

Numbered, more than one per person → all functions (nkn^k)

No constraint: each slip freely picks one of the nn people. Slip 11 has nn choices, slip 22 has nn, …, slip kk has nn: in all nnn=nkn\cdot n\cdots n = n^k. These are all the functions from KK to NN. Arrows may cross, land on the same person, or leave others out.

Here f(1)=2, f(2)=2, f(3)=5f(1)=2,\ f(2)=2,\ f(3)=5: two slips on the same person, three people with nothing. Perfectly fine.

Numbered, at most 1 per person → injective functions (n!/(nk)!n!/(n-k)!)

Each person at most one slip: two different slips cannot land on the same person. Slip 11 has nn choices, slip 22 only n1n-1 (it must avoid the taken person), slip 33 has n2n-2, …: n(n1)(nk+1)=n!(nk)!n(n-1)\cdots(n-k+1)=\dfrac{n!}{(n-k)!}. These are the injective functions: no person receives two arrows.

Here f(1)=4, f(2)=1, f(3)=3f(1)=4,\ f(2)=1,\ f(3)=3: all images distinct, but the order may “cross” (slip 11 goes lower than slip 22). The order is free because the slips are numbered.

Blank, at most 1 per person → strictly increasing functions ((nk)\binom{n}{k})

Now the slips are identical: we can no longer tell “slip 11” from “slip 22”. With at most one each, distributing just means choosing which kk people get a slip — a subset of kk people out of nn. To count them without duplicates we always list them in increasing order: each choice corresponds to a unique strictly increasing function f(1)<f(2)<<f(k)f(1)<f(2)<\dots<f(k). The arrows do not cross and are all distinct. Count: (nk)\dbinom{n}{k}.

Here f(1)=1<f(2)=3<f(3)=4f(1)=1<f(2)=3<f(3)=4: increasing images, arrows that do not cross. It amounts to choosing the subset {1,3,4}\{1,3,4\} of the people.

Blank, more than one per person → non-decreasing functions ((n+k1k)\binom{n+k-1}{k})

Identical slips, but now more than one may go to the same person. Only how many times each person is chosen matters: listing the images in order again gives a non-decreasing function f(1)f(2)f(k)f(1)\le f(2)\le\dots\le f(k) (the equalities are the slips given to the same person). The arrows do not cross, but may arrive together. Count: (n+k1k)\dbinom{n+k-1}{k}.

Here f(1)=1f(2)=1f(3)=4f(1)=1\le f(2)=1\le f(3)=4: person 11 gets two slips, person 44 gets one. Non-decreasing, non-crossing arrows.

One-line summary

Going from numbered to blank turns arbitrary/injective functions into their ordered versions (non-decreasing / strictly increasing): identical slips “erase the order”, and ordering the images is how we count them only once.

Topics: Combinatorics
Concepts: Binomial coefficient · Combinations · Arrangements · Domain and codomain · Injectivity · Permutations
Methods: Slips table
Skills: Combinatorial calculus · Modelling