How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Integer Partitions and the Twelvefold Way
1 · Prerequisites
- Binary Operations, Monoids, Groups and Subgroups
- Combinatorial Classes and the Symbolic Method
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Countability and Uncountability
- Finite Counting, Factorials and Binomial Coefficients
- Formal Power Series
- Foundations of the Real Numbers for Analysis
- Inclusion–Exclusion, the Pigeonhole Principle and Double Counting
- Polynomial Rings, the Division Algorithm and Roots
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Roots, Rational Powers, and Classical Inequalities
- Set Partitions, Stirling Numbers and Exponential Generating Functions
- The Fundamental Theorem of Finite Abelian Groups
- The ZFC Axioms and the Basic Set Constructions
2 · Summary
This page fixes one partition convention and then uses it in two directions. Ferrers diagrams turn partitions into visible combinatorial objects, while the same occupancy data also supply the unlabelled-to-unlabelled cells of the twelvefold way. Conjugation swaps rows and columns, so "number of parts" and "largest part" become the same count under a diagram transpose.
The generating-function side stays formal rather than analytic. The published Euler product is reused, its direct coefficientwise interpretation is recorded, and the page then derives the distinct-part and odd-part products, Euler's identity, the self-conjugate/odd-hook bijection, the Durfee-square decomposition, Franklin's sign-reversing involution for the pentagonal number theorem, and the resulting recurrence for .
3 · Logical flowchart
4 · Definitions, theorems and proofs
Conventions for integer partitions, Ferrers diagrams, and the twelvefold-way table
Definition
Throughout this page, counts balls or domain elements and counts boxes or codomain values.
When partitions are displayed on this page, they are written in nonincreasing order
even though Partitions of a positive integer stores the same data as a nondecreasing list.
A composition of into parts means an ordered -tuple of positive integers summing to , while a weak composition allows zero parts. Thus Compositions of into positive parts are counted by counts positive occupancies and For the number of weak compositions of into parts is , and the number of compositions is for counts arbitrary occupancies.
For placements of indistinguishable balls into boxes:
- if the boxes are labelled, the data are the occupancy vector ;
- if the boxes are unlabelled, the data are the same occupancies reordered into nonincreasing order, with zero occupancies omitted.
Hence an unlabelled-to-unlabelled placement is encoded by a partition whose parts are the nonzero occupancies. Ferrers diagrams are read in English convention, with the longest row on top and rows left-justified.
Ferrers and Young diagrams, conjugate partitions, self-conjugacy, and the Durfee square
Definition
Let be a partition written in the page convention of Conventions for integer partitions, Ferrers diagrams, and the twelvefold-way table. For a nonempty partition, write
Also adjoin the empty partition
of .
The Ferrers diagram (or Young diagram) of a nonempty partition is the set of cells
drawn as left-justified rows, with row containing cells.
The Ferrers diagram of is the empty set of cells.
The conjugate partition of a nonempty partition is obtained by transposing this diagram: for , its -th part is the number of rows of of length at least . Equivalently,
The conjugate of is again .
The partition is self-conjugate when .
The Durfee length of is . For a nonempty partition , the Durfee length is the largest integer such that . The Durfee square is the square of cells in the upper-left corner of the Ferrers diagram, and for it is the empty square.
The functions p(n), p_k(n), and the standard restricted partition families
Definition
For integers and , define:
- for , a partition of is one from Partitions of a positive integer, while for there is exactly one partition, the empty partition ;
- is the number of partitions of when , with , and for ;
- is the number of partitions of into exactly positive parts when and , and if or .
Thus , while for .
For the empty partition, the number of parts is and the largest part is defined to be . The empty partition is regarded as having both distinct parts and odd parts.
For a nonempty partition of :
- has at most parts when ;
- has largest part when ;
- has parts at most when ;
- has distinct parts when ;
- has odd parts when every is odd.
Write for the number of partitions of into distinct parts and for the number of partitions of into odd parts.
Conjugating a partition twice returns the original partition
Statement
For every partition , one has
Facts & Assumptions
Given: a partition and its Ferrers diagram.
The part is the number of rows of of length at least (Ferrers and Young diagrams, conjugate partitions, self-conjugacy, and the Durfee square).
Proof
A cell belongs to the Ferrers diagram of exactly when the -th row has length at least , and by [F1] this is equivalent to the -th row of having length at least . Therefore the cells of are exactly the transpose of the cells of .
Transposing the same finite set of cells a second time sends back to , so the twice-conjugated diagram is the original diagram. Hence its row lengths are again , that is, .
Partitions with k parts are equinumerous with partitions whose largest part is k
Statement
For every and , conjugation is a bijection between:
- partitions of with exactly parts, and
- partitions of whose largest part is .
In particular, these two sets have the same cardinality.
Facts & Assumptions
Given: integers and .
In a Ferrers diagram, the number of rows is the number of parts and the number of cells in the top row is the largest part (Ferrers and Young diagrams, conjugate partitions, self-conjugacy, and the Durfee square, The functions p(n), p_k(n), and the standard restricted partition families).
Partition conjugation is an involution (Conjugating a partition twice returns the original partition).
Proof
If and , then there is no partition of with exactly parts and no partition of whose largest part is , so both displayed sets are empty. If and , then both displayed sets consist only of the empty partition; by the partition convention recalled in [F1], its largest part is . Thus the claim holds when . Assume now . Let be a partition of with exactly parts. Then its Ferrers diagram has exactly rows by [F1]. After transposition, the conjugate diagram has top row length , because the first column of the original diagram had one cell in each of the rows. Thus has largest part . The same argument in reverse shows that any partition with largest part conjugates to one with exactly parts.
Step 1.1 shows that conjugation maps each of the two displayed sets into the other, and [L1] shows that this map has its own inverse. Therefore it is a bijection between them, so the two sets have equal cardinality.
Partitions with at most k parts are equinumerous with partitions whose parts are all at most k
Statement
For every and , the number of partitions of with at most parts equals the number of partitions of whose parts are all at most .
Facts & Assumptions
Given: integers and .
A partition has all parts at most exactly when its largest part is at most (The functions p(n), p_k(n), and the standard restricted partition families).
For each , partitions with exactly parts are equinumerous with partitions whose largest part is (Partitions with k parts are equinumerous with partitions whose largest part is k).
Proof
Let be a partition of with at most parts. If has exactly parts, then , and [L1] sends by conjugation to a partition whose largest part is . By [F1], every part of the conjugate is therefore at most . The same reasoning in reverse sends any partition all of whose parts are at most to one with at most parts.
Thus conjugation restricts to a bijection between the two displayed sets, so they have equal cardinality.
Exact-k partition recurrence
Statement
For every integer and every integer ,
Facts & Assumptions
Given: an integer and an integer .
The quantity counts partitions of into exactly positive parts, and it is defined to be when or (The functions p(n), p_k(n), and the standard restricted partition families).
Proof
A partition of into exactly positive parts either contains a part equal to or has every part at least . These two cases are disjoint and exhaustive.
In the first case, delete one part equal to . The remaining parts still form a partition, now of , and they are exactly positive parts. Conversely, adjoining one part equal to to any partition of into positive parts gives a partition of into positive parts containing a . So the first case contributes .
In the second case, subtract from each of the parts. Because each part was at least , the result is a partition of into exactly positive parts. Conversely, adding to each part of any partition of into positive parts recovers a partition of into parts all at least . So the second case contributes . If , then [F1] makes this contribution , exactly as it should.
The two disjoint cases of steps 2.1 and 2.2 cover every partition counted by , so their cardinalities add to . This is the stated recurrence.
The direct multiplicity product and the published multiset proof give the same Euler product
Remarks
The published item Integer partitions have generating function proves
by treating a partition as a multiset of one abstract atom of each positive size and then invoking If has no size-zero objects then has generating function .
The same identity also has a direct coefficientwise reading. A partition is equally a multiplicity sequence with only finitely many nonzero entries in each fixed total degree, and the coefficient of in
depends only on the finitely many multiplicity choices satisfying . The summability hypothesis of Summable formal families may be regrouped and rearranged, distribute over multiplication, and have well-defined locally finite products is exactly what legitimizes turning that degreewise finite counting argument into a formal infinite product. So the "direct" product and the published multiset product are not two different series: they encode the same multiplicity data in two equivalent ways.
Distinct-part product generating function
Statement
In ,
Facts & Assumptions
Given: one abstract object of size for each integer .
The empty partition has distinct parts, and a nonempty partition into distinct parts chooses each positive part size at most once (The functions p(n), p_k(n), and the standard restricted partition families).
If a combinatorial class has one object of each positive size in a permitted layer, then its powerset construction contributes the factor at size (If has no size-zero objects then has generating function ).
Proof
By [F1], a partition into distinct parts is exactly a subset of the set : include when the part occurs, and omit it otherwise. The total size of the chosen subset is the sum of the selected part sizes.
Applying [L1] to the class with one object in each positive size gives one factor for every . Step 1.1 identifies the resulting powerset objects with distinct-part partitions, so their generating function is .
Odd-part product generating function
Statement
In ,
Facts & Assumptions
Given: one abstract object of size for each integer .
The empty partition has odd parts, and a nonempty partition into odd parts may use each odd part size with arbitrary multiplicity and uses no even part size (The functions p(n), p_k(n), and the standard restricted partition families).
If a combinatorial class has one object in each permitted positive size, its multiset construction contributes the geometric factor for each allowed size (If has no size-zero objects then has generating function ).
Proof
By [F1], a partition into odd parts is exactly a multiset of the objects : the multiplicity of records how often the odd part occurs. The total size of the multiset is the sum of the odd parts.
Applying [L1] to the class gives the product . Step 1.1 identifies its multiset objects with partitions into odd parts, so this is the generating function for .
Euler's theorem by generating functions
Statement
For every integer ,
Facts & Assumptions
Given: the two formal power series for distinct-part and odd-part partitions.
Distinct-part partitions have generating function (Distinct-part product generating function).
Odd-part partitions have generating function (Odd-part product generating function).
Two formal series are equal exactly when all coefficients are equal (Coefficient extraction is -linear, separates formal series, shifts under multiplication by , and converts products to finite convolution).
Proof
Fix . Using for and canceling only the even factors that already appear in the denominator gives . Every uncancelled numerator factor has degree , so the left-hand side and have the same coefficients through degree .
Fix and choose . By step 1.1, the coefficient of in equals the coefficient of in . Factors with index have degree in both products, so this is also the common coefficient of in the two infinite products and .
Substitute the two product expansions from [L1] and [L2] into step 2.1. The resulting formal series are equal, so [L3] gives equality of every coefficient. Hence for all .
Glaisher's bijection between odd-part and distinct-part partitions
Statement
For every integer , there is a bijection between partitions of into odd parts and partitions of into distinct parts.
Facts & Assumptions
Given: an integer .
Partitions into odd parts and partitions into distinct parts are the two families counted by and (The functions p(n), p_k(n), and the standard restricted partition families).
Proof
Let be a partition of into odd parts. For each odd integer , let be its multiplicity in , and write the binary expansion
Define to contain the part once for every pair with . Since
the parts with odd core have the same total before and after the replacement. Summing over the odd cores shows that the total sum of the parts of is still . [F1, construct, algebra]
Conversely, let be a partition of into distinct parts. Write each part uniquely as with odd, and replace it by copies of the odd part . The resulting partition has only odd parts and still sums to .
The parts of are distinct. Indeed, every positive integer has a unique expression with odd, so two equal parts in would come from the same odd core and the same power , hence from the same binary digit.
The two constructions are inverse. Starting from , step 1.2 reconstructs from each part of exactly the copies of encoded by the corresponding binary digit, so . Starting from , step 1.1 groups together all parts with the same odd core and reassembles exactly the original powers of two, so . Therefore is a bijection.
The generating-function proof and Glaisher's bijection prove the same Euler theorem
Remarks
Euler's theorem by generating functions proves Euler's theorem by identifying two formal products and then comparing coefficients. Glaisher's bijection between odd-part and distinct-part partitions proves the same equality by explicitly transporting one partition family to the other.
The two routes therefore agree in the strongest possible sense: one gives coefficientwise equality of generating series, the other gives an actual bijection on each size- layer. The page keeps both because they use different ideas, not because they assert different numerical claims.
Self-conjugate partitions correspond to distinct odd-part partitions
Statement
For every integer , there is a bijection between self-conjugate partitions of and partitions of into distinct odd parts.
Facts & Assumptions
Given: an integer .
A partition is self-conjugate when its Ferrers diagram is fixed by transpose, and its Durfee length is the number of diagonal cells of that diagram (Ferrers and Young diagrams, conjugate partitions, self-conjugacy, and the Durfee square).
Proof
Let be a self-conjugate partition, and let . For each diagonal cell with , let be the length of its hook: the cell itself together with the cells directly to its right in row and directly below it in column . Self-conjugacy pairs the cells to the right with the cells below, so each is odd. As increases, each later diagonal hook lies strictly inside the previous one, so . The diagonal hooks are disjoint and cover the whole diagram, hence . Thus determines a partition of into distinct odd parts.
Conversely, let be distinct odd parts summing to , and write . Then , and since these are distinct nonnegative integers one has for each . Build a diagram by placing diagonal cells for , then adjoining cells to the right of and cells below . The inequalities and make these hooks nest to form a Ferrers diagram, and the construction is visibly symmetric across the main diagonal, so the resulting partition is self-conjugate.
The diagonal hooks of the partition from step 1.2 have lengths by construction, so step 1.2 inverts step 1.1. Therefore the two constructions are mutually inverse bijections.
Durfee-square decomposition of the partition series
Statement
In ,
where the empty product at is .
Facts & Assumptions
Given: partitions written by Ferrers diagrams.
Two formal series are equal exactly when their coefficients agree (Coefficient extraction is -linear, separates formal series, shifts under multiplication by , and converts products to finite convolution).
Partitions with at most parts are equinumerous with partitions whose parts are all at most (Partitions with at most k parts are equinumerous with partitions whose parts are all at most k).
Proof
Let be a partition with Durfee length . Removing its Durfee square leaves two pieces: a right-hand piece consisting of the cells to the right of the square, and a lower piece consisting of the cells below the square. The piece has at most rows, while each row of has length at most . Conversely, given , a partition with at most parts, and a partition with all parts at most , one reconstructs uniquely by adjoining to the right side and below the square.
For fixed , the square contributes the factor . By [L2], the right-hand piece has the same generating function as partitions with parts at most , namely ; the lower piece has the same generating function for the same direct multiplicity reason. Thus partitions whose Durfee square has size contribute .
Every partition has exactly one Durfee length, so summing the contributions of step 2.1 over all counts every partition exactly once. Therefore the coefficient of on the right is for every , and [L1] gives the displayed identity.
The unlabelled-to-unlabelled cells of the twelvefold way
Statement
Fix positive integers and . For placements of indistinguishable balls into indistinguishable boxes:
- the arbitrary placements are counted by the partitions of with at most parts, equivalently by the partitions of whose parts are all at most ;
- the injective placements are counted by when and by when ;
- the surjective placements are counted by .
Facts & Assumptions
Given: positive integers and .
Under the page conventions, an unlabelled-to-unlabelled placement is encoded by its nonzero occupancies written in nonincreasing order (Conventions for integer partitions, Ferrers diagrams, and the twelvefold-way table).
Partitions with at most parts are equinumerous with partitions whose parts are all at most (Partitions with at most k parts are equinumerous with partitions whose parts are all at most k).
Proof
By [L1], an arbitrary placement is determined by the list of its positive occupancies, written in nonincreasing order. These occupancies sum to , so they form a partition of ; because there are only boxes, there can be at most positive occupancies. Conversely, any partition of with at most parts becomes such a placement by reading its parts as the nonzero box occupancies. This proves clause 1 in its "at most parts" form.
A placement is surjective exactly when every box is occupied, so there are exactly positive occupancies. By step 1.1 these are exactly the partitions of into positive parts, which are counted by . This is clause 3.
A placement is injective exactly when every occupied box contains one ball. Therefore the positive occupancy list must be with entries. Such a list exists exactly when , and when it exists it is unique. This proves clause 2.
The second description in clause 1 follows from [L2].
The twelvefold way
Statement
Fix positive integers and . Then the twelve standard ball-box counts are:
- labelled balls to labelled boxes, arbitrary: ;
- labelled balls to labelled boxes, injective: ;
- labelled balls to labelled boxes, surjective: ;
- unlabelled balls to labelled boxes, arbitrary: ;
- unlabelled balls to labelled boxes, injective: ;
- unlabelled balls to labelled boxes, surjective: ;
- labelled balls to unlabelled boxes, arbitrary: ;
- labelled balls to unlabelled boxes, injective: if , otherwise ;
- labelled balls to unlabelled boxes, surjective: ;
- unlabelled balls to unlabelled boxes, arbitrary: the number of partitions of with at most parts;
- unlabelled balls to unlabelled boxes, injective: if , otherwise ;
- unlabelled balls to unlabelled boxes, surjective: .
Facts & Assumptions
Given: positive integers and , interpreted by the conventions of Conventions for integer partitions, Ferrers diagrams, and the twelvefold-way table.
The set of functions from an -element set to a -element set has cardinality (The set of functions between finite sets is finite, with ).
The injections from an -element set to a -element set are counted by (The number of injections from a -element set into an -element set is ).
The Stirling number counts partitions of an -element set into exactly nonempty blocks (The Stirling numbers of the second kind and the Bell numbers).
Weak compositions of into parts are counted by , and compositions of into positive parts are counted by (For the number of weak compositions of into parts is , and the number of compositions is for , Compositions of into positive parts are counted by ).
The three unlabelled-to-unlabelled cells are the counts proved in The unlabelled-to-unlabelled cells of the twelvefold way.
Proof
For labelled balls and labelled boxes, clause 1 is [L1] and clause 2 is [L2]. For clause 3, a surjection has nonempty fibres, which form a partition of into exactly blocks; conversely, labelling the blocks of any such partition by the elements of recovers a surjection. By [L3], there are therefore surjections.
For unlabelled balls and labelled boxes, the data are occupancy vectors . Arbitrary placements are weak compositions, so clause 4 is [L4]. Surjective placements are positive compositions, so clause 6 is [L4]. Injective placements are exactly the - occupancy vectors with total , so one chooses which of the labelled boxes are occupied; this gives clause 5, namely .
For labelled balls and unlabelled boxes, one remembers only the fibres and forgets their labels. Thus a surjective placement is exactly a partition of into nonempty blocks, giving clause 9 as by [L3]. An arbitrary placement uses some number of nonempty boxes with , so clause 7 is the sum of the counts over those . For injective placements every fibre is a singleton, hence there is one orbit when and none when , proving clause 8.
Clauses 10, 11, and 12 are exactly the three conclusions of [L5].
Euler's pentagonal number theorem by Franklin's involution
Statement
In ,
Equivalently,
Facts & Assumptions
Given: for each , let and denote the numbers of partitions of into an even, respectively odd, number of distinct parts.
A partition into distinct parts is a finite strictly decreasing list of positive integers; and count the even-length and odd-length such partitions of (The functions p(n), p_k(n), and the standard restricted partition families).
Expanding chooses each part size either not at all or once, with sign when it is chosen, so the coefficient of is .
Proof
Let be a nonempty partition into distinct parts. Write for its smallest part, and let be the largest index such that for every . Thus the first rows form the maximal upper-right staircase. If and , define by deleting the last part and adding to each of the first parts. If and , define by subtracting from each of the first parts and adjoining a new last part .
In the first case of step 1.1, the partition is still distinct: the first parts remain strictly decreasing, the last changed part satisfies because those rows were consecutive, and deleting the old last part decreases the number of parts by . The first parts of are consecutive and its smallest part is larger than , so falls under the second construction with parameter , and .
In the second case of step 1.1, the partition is still distinct: maximality of gives , while the new last part is smaller than the previous smallest part because . The first parts of are consecutive and its smallest part is exactly , so falls under the first construction with parameter , and . Thus steps 2.1 and 2.2 define a sign-reversing involution on all nonexceptional nonempty distinct partitions.
The empty partition contributes the constant term . The only nonempty distinct partitions excluded from step 1.1 are the two staircase families and . Their sizes are and , and each has exactly parts, so each contributes the sign .
By step 2.2, all nonexceptional nonempty distinct partitions cancel in opposite-parity pairs. Step 2.3 leaves only the empty partition and the two exceptional staircase families, so [F2] gives , equivalently the two-sided sum over .
Euler's pentagonal recurrence for partition numbers
Statement
Let for and . Then for every integer ,
where the offsets are the generalized pentagonal numbers and the sum stops once the offset exceeds .
Equivalently, for every integer ,
when , while the same sum is at .
Facts & Assumptions
Given: the partition series .
The partition generating function is (Integer partitions have generating function ).
Euler's pentagonal theorem gives (Euler's pentagonal number theorem by Franklin's involution).
Coefficients of products are Cauchy sums, and equality of formal series is coefficientwise (Coefficient extraction is -linear, separates formal series, shifts under multiplication by , and converts products to finite convolution).
Proof
Multiply the identities of [L1] and [L2]. The two products are reciprocals, so .
By [L3], the coefficient of on the left side of step 1.1 is , with the convention for . The coefficient on the right side is when and when . This proves the equivalent formulation.
For , isolate the term in step 2.1. The remaining nonzero terms occur in the pairs , whose offsets are . Moving them to the other side yields the displayed recurrence for .
5 · Examples, counterexamples and false statements
FALSE: is counted by
Statement
False claim: for all positive integers and ,
Facts & Assumptions
Given: the case and .
The recurrence holds for (Exact-k partition recurrence).
Compositions of into positive parts are counted by (Compositions of into positive parts are counted by ).
Refutation
Using [L1], one gets , corresponding to the two partitions and .
By [L2], one has .
Steps 1.1 and 1.2 give , so the displayed claim is false. The binomial coefficient counts ordered compositions, not unordered partitions.
FALSE: conjugation itself is the distinct-parts to odd-parts bijection
Statement
False claim: conjugation sends every partition with distinct parts to a partition into odd parts.
Facts & Assumptions
Given: the distinct-part partition .
Conjugation is the transpose of the Ferrers diagram (Conjugating a partition twice returns the original partition).
The true bijection between odd-part and distinct-part partitions is Glaisher's map (Glaisher's bijection between odd-part and distinct-part partitions).
Refutation
The Ferrers diagram of has column lengths , so [L1] gives .
The conjugate partition has an even part, namely , so it is not a partition into odd parts.
Therefore conjugation does not send every distinct-part partition to an odd-part partition, and the displayed claim is false. By [L2], the correct bijection is a different map.
Sources
- Alexander Hulpke, Combinatorics notes
- Darij Grinberg, Enumerative Combinatorics: class notes
- Stephen Melczer, An Invitation to Enumeration, Chapter 9: Integer Partitions
- Andrew Lin, 18.212 S19 Algebraic Combinatorics, Lecture 21: Partition theory (cont.). Franklin's combinatorial proof of Euler's pentagonal number theorem and more