Lably
Skip to content

Twelvefold way

Systematic classification of 12 related enumerative problems concerning two finite sets

  • 21 min read
  • 4 chapters
  • 1 lab on Lably

Learn it on Lably

Overview

Let N and X be finite sets. Let n=|N| and x=|X| be the cardinalities of the sets. Thus N is a set with n elements, and X is a set with x elements.

The general problem we consider is the enumeration of equivalence classes of functions f:N→X.

The functions are subject to one of the three following restrictions:

  • No condition: each a in N may be sent by f to any b in X, and each b may occur multiple times.
  • f is injective: each value f(a) for a in N must be distinct from every other, and so each b in X may occur at most once in the image of f.
  • f is surjective: for each b in X there must be at least one a in N such that f(a)=b, thus each b will occur at least once in the image of f.

(The condition "f is bijective" is only an option when n=x; but then it is equivalent to both "f is injective" and "f is surjective".)

There are four different equivalence relations which may be defined on the set of functions f from N to X:

  • equality;
  • equality up to a permutation of N;
  • equality up to a permutation of X;
  • equality up to permutations of N and X.

The three conditions on the functions and the four equivalence relations can be paired in 3 × 4 = 12 ways.

The twelve problems of counting equivalence classes of functions do not involve the same difficulties, and there is not one systematic method for solving them. Two of the problems are trivial (the number of equivalence classes is 0 or 1), five problems have an answer in terms of a multiplicative formula of n and x, and the remaining five problems have an answer in terms of combinatorial functions (Stirling numbers and the partition function for a given number of parts).

The incorporation of classical enumeration problems into this setting is as follows.

  • Counting n-permutations (i.e., partial permutations or sequences without repetition) of X is equivalent to counting injective functions N → X.
  • Counting n-combinations of X is equivalent to counting injective functions N → X up to permutations of N.
  • Counting permutations of the set X is equivalent to counting injective functions N → X when n = x, and also to counting surjective functions N → X when n = x.
  • Counting multisets of size n (also known as n-combinations with repetitions) of elements in X is equivalent to counting all functions N → X up to permutations of N.
  • Counting partitions of the set N into x subsets is equivalent to counting all surjective functions N → X up to permutations of X.
  • Counting compositions of the number n into x parts is equivalent to counting all surjective functions N → X up to permutations of N.

Sign in to keep reading

3 more chapters are free with a Lably account.

More in Discrete mathematics