There is a deep — and surprisingly simple — way to see the four slip formulae: they count functions.
Number the slips and the people . Distributing the slips means saying, for each slip, which person gets it: that is, assigning to every element of (the slips, the domain) an element of (the people, the codomain). This is exactly a function , where is the person who gets slip .
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 (with , )
blank slips (identical) numbered slips (distinct) at most 1 per person strictly increasing functions — injective functions — more than one non-decreasing functions — all functions —
Let us see the four cases one by one, with an example from slips to people.
Numbered, more than one per person → all functions ()
No constraint: each slip freely picks one of the people. Slip has choices, slip has , …, slip has : in all . These are all the functions from to . Arrows may cross, land on the same person, or leave others out.
Here : two slips on the same person, three people with nothing. Perfectly fine.
Numbered, at most 1 per person → injective functions ()
Each person at most one slip: two different slips cannot land on the same person. Slip has choices, slip only (it must avoid the taken person), slip has , …: . These are the injective functions: no person receives two arrows.
Here : all images distinct, but the order may “cross” (slip goes lower than slip ). The order is free because the slips are numbered.
Blank, at most 1 per person → strictly increasing functions ()
Now the slips are identical: we can no longer tell “slip ” from “slip ”. With at most one each, distributing just means choosing which people get a slip — a subset of people out of . To count them without duplicates we always list them in increasing order: each choice corresponds to a unique strictly increasing function . The arrows do not cross and are all distinct. Count: .
Here : increasing images, arrows that do not cross. It amounts to choosing the subset of the people.
Blank, more than one per person → non-decreasing functions ()
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 (the equalities are the slips given to the same person). The arrows do not cross, but may arrive together. Count: .
Here : person gets two slips, person 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.
Links
Topics: Combinatorics
Concepts: Binomial coefficient · Combinations · Arrangements · Domain and codomain · Injectivity · Permutations
Methods: Slips table
Skills: Combinatorial calculus · Modelling