Math 2.0

Combinatorics Theorem

Formula for the number of surjections between finite sets

Builds on Surjective functionBinomial coefficient

Statement

Let S(n,m)S(n,m) be the number of surjective functions from the set [n]={1,…,n}[n] = \{1, \dots, n\} onto the set [m]={1,…,m}[m] = \{1, \dots, m\}. Then S(n,m)=∑k=0m(−1)k(mk)(m−k)n,S(n,m) = \sum_{k=0}^{m} (-1)^k \binom{m}{k} (m-k)^n, where (mk)\binom{m}{k} is a binomial coefficient.

Remarks

The term (m−k)n(m-k)^n is the number of all functions from [n][n] to a fixed set of m−km-k elements. The sum comes from the inclusion-exclusion principle: count all functions, then correct for the functions that miss some chosen set of kk values of [m][m].

Reading path

To understand this page from the ground up, read these 3 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Binomial coefficient concept
  2. Surjective function concept
  3. Formula for the number of surjections between finite sets statement

Further reading

  1. Web https://github.com/mitchkeller/applied-combinatorics/blob/ebd95d6bd59e23c633c65cf560bcb93efa912aae/source/s_inclusion-exclusion_surjections.ptx#L29, source/s_inclusion-exclusion_surjections.ptx:29
About this page
TagX9JC3BH2T0
URIm2://X9JC3BH2T0
Kindstatement, theorem
WritingW1 stated
MSC05A05, 05A19
StatusThis copy of the site has no build data. Run m2 status X9JC3BH2T0.
UsesSurjective function, Binomial coefficient
Changed4 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W2

  • edge about out: the concepts that the statement is about (0 of 1)
  • edge proves in: at least one proof node (0 of 1)
  • edge instance_of or illustrates in: one example that shows the statement at work (0 of 1)
  • explanation L2 (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.