\( S(6, 2) = 31 \) (two non-empty bins) - United Radiology

April 21, 2026 · United Radiology

["# Understanding ( S(6, 2) = 31 ): A Deep Dive into Partitions into Two Non-Empty Bins", "The number ( S(6, 2) = 31 ) stands as a fascinating result in combinatorics, particularly in the study of integer partitions into exactly two non-empty subsets—or "bins." This concept, often explored through the lens of set partitions, counts the distinct ways to divide a set of ( n = 6 ) elements into two non-empty groups. In this article, we break down what ( S(6, 2) ) represents, its mathematical significance, and explore the elegant logic behind why it equals 31.", "---", "## What is ( S(6, 2) )?", "In partition theory, ( S(n, k) ) denotes the Stirling number of the second kind, which calculates the number of ways to partition a set of ( n ) elements into ( k ) non-empty, unlabeled subsets. While ordered partitions or permutations are often discussed, ( S(n, k) ) specifically deals with unordered (unlabeled) groupings—meaning the order of the bins does not matter.", "For this article, we focus on ( S(6, 2) ): the number of ways to split 6 distinct items into exactly 2 non-empty bins or subsets.", "---", "## Why ( S(6, 2) = 31 )? The Mathematical Insight", "The formula for Stirling numbers of the second kind is:", "[
\nS(n, k) = \frac{1}{k!} \sum_{j=0}^{k} (-1)^{k-j} \binom{k}{j} j^n
\n]", "For ( S(6, 2) ), plugging in ( n = 6 ), ( k = 2 ):", "[
\nS(6, 2) = \frac{1}{2!} \left[ \binom{2}{0} 0^6 - \binom{2}{1} 1^6 + \binom{2}{2} 2^6 \right]
\n]", "But since we're partitioning 6 distinct objects, we simplify by avoiding zero powers (invalid for non-empty groups), leading to:", "[
\nS(6, 2) = \frac{1}{2} \left[ 2^6 - 2 \cdot 1^6 \right] = \frac{1}{2} (64 - 2) = \frac{62}{2} = 31
\n]", "This derivation confirms that there are exactly 31 distinct ways to partition a 6-element set into 2 non-empty, unlabeled subsets.", "---", "## Intuitive Explanation: Visualizing the 31 Partitions", "Each partition of 6 elements into two bins corresponds to choosing a non-empty subset ( A \subseteq {1,2,3,4,5,6} ), with the complement ( A^c = {1,2,3,4,5,6} \setminus A ) forming the second bin. Since the bins are unordered, the partition ( {A, A^c} ) is identical to ( {A^c, A} ).", "This means we avoid double-counting: each unique division is counted once, based on the sizes of the subsets. If ( |A| = 1 ), then ( |A^c| = 5 ); if ( |A| = 2 ), then ( |A^c| = 4 ); etc. The possible sizes for one subset are from 1 to 5.", "But because choosing a subset of size 1 is equivalent to choosing its complement of size 5—and vice versa—we avoid double-counting:", "- Size 1 vs size 5: ( \binom{6}{1} = 6 ) partitions (but each pair counted twice → ( 6/2 = 3 ))
\n- Size 2 vs size 4: ( \binom{6}{2} = 15 ) → each partition counted twice → ( 15/2 = 7.5 )? No—wait, ( \binom{6}{2} ) counts unordered subsets directly!", "Actually, since a subset and its complement are distinct unless ( |A| = 3 ), the correct pairing is:", "Only symmetry occurs when subsets are self-complementary, which doesn’t happen here (no set of even size 3 has equal complement size). But important: ( A <br/>\ne A^c ) for all subsets except none when size ≠ 3—which doesn’t symmetric out evenly.", "However, because each partition into distinct sizes ( (k, 6-k) ) with ( k = 1,2,3 ) has a mirror, and ( k = 4 = 6-2 ), ( k = 5 = 6-1 ), we group:", "- ( k=1 ): ( \binom{6}{1} = 6 ) subsets → but each partition ( (A, A^c) ) is shared → 6 / 2 = 3 unique partitions
\n- ( k=2 ): ( \binom{6}{2} = 15 ), mirrored by ( k=4 ): another 15 subsets → but since ( {A, A^c} ) equals ( {A^c, A} ), and no overcount, total groups: 15 / 2 = 7.5? Invalid—so something is wrong?", "Wait—this suggests error. But we know from theory, ( S(6,2) = 31 ). Where is the mistake?", "Ah—realization: when computing partitions into exactly two unlabeled, unempty subsets, we do not divide by symmetry unless we count unordered pairs once. But ( \binom{6}{1} = 6 ) gives number of ways to pick a singleton—each pair ( { {i}, [rest] } ) is unique, but:", "Each partition is determined uniquely by which element is isolated. Since ( {i} ) and its complement are distinct, and no repetition (no duplicate partitions), there are exactly 6 such partitions for size 1. But each partition is counted once—because ( {A} ) is different from ( {A^c} ) unless ( A = A^c ), which doesn’t happen. So all 6 are distinct.", "Similarly, for size 2: ( \binom{6}{2} = 15 ) subsets of size 2; each defines a partition ( {A, A^c} ). But since ( A ) and ( A^c ) produce the same partition, and there’s no fixed point under complement unless ( |A| = 3 ), each of the 15 subsets gives a unique partition—but when counted from both sides, we’d double-count.", "So total ordered pairs ( (A, A^c) ) with ( A <br/>\ne A^c ) is ( \binom{6}{1} + \binom{6}{2} + \binom{6}{3} ), but only for ( k = 1,2,3 ). But since ( A ) and ( A^c ) represent same partition, number of unordered partitions into two subsets is:", "[
\n\frac{1}{2} \left( \sum_{k=1}^{5} \binom{6}{k} \right) - \frac{1}{2} \binom{6}{3}
\n]", "No—better to note symmetry: each partition with ( |A| <br/>\ne |A^c| ) is counted twice in the full sum. But since ( |A| <br/>\ne |A^c| ) unless ( n ) even and ( |A| = n/2 ), and for ( n = 6 ), ( |A| = 3 ) gives ( A = A^c ), which is symmetric.", "So:", "- Partitions with ( |A| = 1 ): 6 subsets → form 3 distinct partitions (since each pair ( {A, A^c} ) counted once) → 3 partitions
\n- With ( |A| = 2 ): ( \binom{6}{2} = 15 ), each partition counted twice → 7.5? Impossible.", "Ah—here’s the key: oftens, when listing partitions into two non-empty subsets, we count each pair ( {A, A^c} ) as one unique partition, regardless of order. But the number of ordered pairs is ( \binom{6}{1} + \binom{6}{2} + \binom{6}{3} = 6 + 15 + 20 = 41 ), but since ( A ) and ( A^c ) represent same partition, total unordered partitions = ( 41 / 2 = 20.5 )? Still invalid.", "Wait—no: ( \binom{6}{3} = 20 ) counts the symmetric middle cases. Actually, the total number of unordered pairs ( {A, A^c} ) with ( A \subsetneq B ), ( A <br/>\ne A^c ), is:", "Each subset ( A ) gives a unique complement, but ( {A, A^c} = {A^c, A} ), so the total number of unordered 2-part partitions is:", "[
\n\frac{1}{2} \left( \sum_{k=1}^{5} \binom{6}{k} \right) = \frac{1}{2} (2^6 - 2) = \frac{62}{2} = 31
\n]", "Yes! Because:", "[
\n\sum_{k=1}^{5} \binom{6}{k} = 62 \quad \ ext{(all subsets of size 1 to 5)}
\n]", "Each partition into two non-empty, disjoint subsets corresponds to a subset ( A ) of size ( k = 1,2,3,4,5 ), with complement of size ( 6-k ). Since choosing ( A ) or ( A^c ) gives the same partition, and there is no fixed partition under complement (except trivial), each partition is counted once for each ( k = 1 ) to 5, but since ( k ) and ( 6-k ) are symmetric, we must divide the total by 2.", "But wait: when ( k = 3 ), ( A ) and ( A^c ) have same size, but still count once—so every subset $ A $ gives a unique unordered pair ( {A, A^c} $, but two different subsets (complements) define same partition.", "Thus, number of distinct partitions is exactly:", "[
\n\frac{1}{2} \sum_{k=1}^{5} \binom{6}{k} = \frac{1}{2} (62) = 31
\n]", "Even though ( \binom{6}{3} = 20 ) counts the symmetric middle, and ( \binom{6}{1} = \binom{6}{5} = 6 ), sum is 6 + 15 + 15 + 6 + 1 (but wait: ( \binom{6}{0} = 1 ) excluded) — full sum from ( k=1 ) to ( 5 ): ( 6 + 15 + 20 + 15 + 6 = 62 ), yes.", "Each unordered partition appears exactly twice in this sum (once for ( A ), once for ( A^c )), so divide by 2.", "Wait—no: when you sum ( \binom{6}{k} ) for ( k=1 ) to ( 5 ), you are counting each subset, so each partition ( {A, A^c} ) with ( |A| <br/>\ne 3 ) is counted twice in the sum (once for ( |A|=k ), once for ( |A^c|=6-k )), and for ( k=3 ), counted once. But actually, ( A ) and ( A^c ) are different subsets, so total number of ordered pairs ( (A, A^c) ) with ( A <br/>\ne A^c ) is 62, and each partition corresponds to two such ordered pairs (except if ( A = A^c ), which never happens here), so number of unordered partitions is ( 62 / 2 = 31 ).", "Perfect.", "---", "## Why 31 Matters Beyond the Number", "Beyond combinatorics, ( S(6, 2) = 31 ) appears in:", "- Set theory and equivalence classes: Partitions model ways to group data.
\n- Probability and distribution: Counting rare partition events.
\n- Computer science: Partition algorithms, dynamic programming state counts.
\n- Algebra: Stirling numbers relate to polynomial expansions and operator calculus.", "Understanding such values helps in computing entropy in combinatorial systems, optimizing algorithms, and modeling discrete states.", "---", "## Conclusion", "The value ( S(6, 2) = 31 ) is not merely a numerical fact—it reflects the deep structure of dividing a set into two cohesive, non-empty groups. By recognizing that each valid partition is uniquely determined by a subset (with no double-counting due to complement symmetry), we derive the elegant result ( \frac{1}{2} \sum_{k=1}^{5} \binom{6}{k} = 31 ). Whether you're a student exploring combinatorics or a programmer analyzing algorithmic complexity, appreciating ( S(6, 2) = 31 ) opens doors to richer combinatorial reasoning.", "---", "Further Reading:", "- OEIS A000nap: Number of partitions of an ( n )-element set into exactly 2 non-empty subsets.
\n- Combinatorics textbooks (e.g., Stanley’s Enumerative Combinatorics).
\n- Stirling numbers of the second kind on Wolfram MathWorld.", "---", "Tag: #SetPartitions #StirlingNumbers #Combinatorics #MathEducation #PartitionFunction #S6_2_31"]

Related Articles

Trending Articles

Archive