Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Relationship between Sets






How Sets Compare and Connect


Beyond subset containment, sets can relate to one another in several ways. Two sets may be equal, equivalent in size, disjoint, or overlapping. Understanding these relationships clarifies how collections compare and interact, and leads to the concept of a partition — a way of dividing a set into non-overlapping pieces.

Key Terms

Equal Sets— sets containing exactly the same elements
Equivalent Sets— sets with the same cardinality
Disjoint Sets— sets with no common elements
Overlapping Sets— sets sharing at least one element
Partition— non-overlapping subsets that cover the whole set
Subset— equality is proved via mutual subset containment

See All Set Theory Definitions →


Equal Sets

{1, 2, 3}, {3, 1, 2} and "the whole numbers between 0 and 4" look different on the page. Are they different sets?
Compare what each one contains, not how it is written.
Four ways of writing, one collection of members.
written asmembersthe same set as {1, 2, 3}?
{1, 2, 3}1, 2, 3yes
{3, 1, 2}1, 2, 3yes
{1, 2, 2, 3}1, 2, 3yes
{x ∈ ℤ : 0 < x < 4}1, 2, 3yes
{1, 2, 3, 4}1, 2, 3, 4no
Order, repetition and the style of description change from row to row; the members 11, 22 and 33 do not. The last row adds a member, and that alone makes it a different set.
Only membership counts.
Order does not matter: {1,2,3}={3,1,2}\{1, 2, 3\} = \{3, 1, 2\}. Repetition does not matter: {1,2,2,3}={1,2,3}\{1, 2, 2, 3\} = \{1, 2, 3\}. Only membership determines equality.
The definition
Two sets are equal when they have exactly the same elements.
Two sets AA and BB are equal if they contain exactly the same elements:
Equal Sets
A=B  ⟺  ∀x (x∈A  ⟺  x∈B)A = B \iff \forall x\,(x \in A \iff x \in B)
The two logic symbols in this criterion read naturally: ∀\forall means 'for all' and   ⟺  \iff means 'if and only if'.
So {1,2,3}={3,1,2}={x∈Z:0<x<4}\{1, 2, 3\} = \{3, 1, 2\} = \{x \in \mathbb{Z} : 0 < x < 4\}, but {1,2,3}≠{1,2,3,4}\{1, 2, 3\} \neq \{1, 2, 3, 4\}.
Equality is proved one direction at a time: each set inside the other.
The standard method for proving two sets are equal is to show mutual subset containment:
Set Equality Criterion
A=B  ⟺  (A⊆B)∧(B⊆A)A = B \iff (A \subseteq B) \land (B \subseteq A)
Learn more about this formula: Set Equality Criterion →
This reduces the problem to two subset proofs: show every element of AA belongs to BB, then show every element of BB belongs to AA.
Each direction is a separate argument that starts from an arbitrary element.
Example
For A={x∈Z:x2=1}A = \{x \in \mathbb{Z} : x^2 = 1\} and B={−1,1}B = \{-1, 1\}, the first direction takes x∈Ax \in A, solves x2=1x^2 = 1 and finds x=1x = 1 or x=−1x = -1, so x∈Bx \in B. The second direction takes each element of BB and checks it: (−1)2=1(-1)^2 = 1 and 12=11^2 = 1, so both lie in AA.
UAB
A = B, frozen

The two circles coincide completely — one drawn solid for A, one dashed for B — because equal sets occupy exactly the same region: every element of one is an element of the other. Compare this against every other relationship on the two-set Venn explorer.

Equality is the strictest of all set relationships — everything that follows on this page relaxes it in one direction or another.
One inclusion is not enough.
Pitfall: Proving only one inclusion
Showing A⊆BA \subseteq B for A={1,2}A = \{1, 2\} and B={1,2,3}B = \{1, 2, 3\} and stopping there would conclude A=BA = B, yet 3∈B3 \in B and 3∉A3 \notin A. Equality needs B⊆AB \subseteq A as well, and here it fails.
The rest of the page covers equivalent, disjoint and overlapping sets, partitions, and a summary of how sets relate.

Equivalent Sets


Two sets are equivalent if they have the same cardinality:

Equivalent Sets
∣A∣=∣B∣|A| = |B|

This means a bijection exists between AA and BB — a one-to-one correspondence pairing each element of AA with exactly one element of BB.

COROLLARY
Equal sets are always equivalent: if A=BA = B, then certainly ∣A∣=∣B∣|A| = |B|.

However, equivalent sets need not be equal.

The sets {a,b,c}\{a, b, c\} and {1,2,3}\{1, 2, 3\} are equivalent (both have cardinality 33) but not equal (they contain different elements). The sets N\mathbb{N} and Z\mathbb{Z} are equivalent (both countably infinite) but not equal (Z\mathbb{Z} contains negative integers).

Pitfall: Judging size by containment
Concluding ∣N∣<∣Z∣|\mathbb{N}| < |\mathbb{Z}| because N⊊Z\mathbb{N} \subsetneq \mathbb{Z} applies a rule that holds only for finite sets. Listing Z\mathbb{Z} as 0,1,−1,2,−2,…0, 1, -1, 2, -2, \ldots pairs it term by term with N\mathbb{N}, so ∣N∣=∣Z∣|\mathbb{N}| = |\mathbb{Z}|.

For finite sets, cardinality is found by counting, and a proper subset always has fewer elements than the set containing it: {1,2}\{1, 2\} has two, {1,2,3}\{1, 2, 3\} has three. For infinite sets the counting never ends, so equivalence is decided only by whether a bijection exists. The pair N\mathbb{N} and Z\mathbb{Z} is the standard test case: every natural number is an integer, and Z\mathbb{Z} also contains the negative integers.
Equivalence is decided by pairing elements off, not by comparing themABabc123paired off: |A| = |B|ACabcno partner12one left over: |A| ≠ |C|
Pairing off, and failing to

On the left the two sets share no elements at all, yet every element of A finds exactly one partner in B — so they are equivalent without being equal. On the right one element of A is left with nowhere to go, and that single leftover is enough to make the sets inequivalent.

For infinite sets the same pairing test still works, which is how N\mathbb{N} and Z\mathbb{Z} turn out to be equivalent.

Disjoint Sets


Two sets are disjoint if they have no elements in common:

Disjoint Sets
A∩B=∅A \cap B = \emptyset

The sets {1,2,3}\{1, 2, 3\} and {4,5,6}\{4, 5, 6\} are disjoint. The set of even integers and the set of odd integers are disjoint.

For a collection of more than two sets, the sets are pairwise disjoint if every pair is disjoint:

Disjoint Sets
Ai∩Aj=∅for all i≠jA_i \cap A_j = \emptyset \quad \text{for all } i \neq j

Pitfall: Checking only the common intersection
For A={1,2}A = \{1, 2\}, B={2,3}B = \{2, 3\} and C={4}C = \{4\}, finding A∩B∩C=∅A \cap B \cap C = \emptyset and calling the sets pairwise disjoint misses A∩B={2}A \cap B = \{2\}. The three sets are not pairwise disjoint.

Pairwise disjoint sets have no overlap whatsoever — no element belongs to more than one set in the collection.

For three sets A1A_1, A2A_2 and A3A_3 the condition means three separate intersections: A1∩A2A_1 \cap A_2, A1∩A3A_1 \cap A_3 and A2∩A3A_2 \cap A_3. A collection of nn sets has (n2)\binom{n}{2} such pairs, and each pair is one instance of the condition Ai∩Aj=∅A_i \cap A_j = \emptyset.

In probability, disjoint events are called mutually exclusive: if one occurs, the others cannot.
UAB
A ∩ B = ∅, frozen

The circles pull completely apart: no overlap region exists, because no element belongs to both sets. Slide between disjoint, overlapping, and nested configurations on the two-set Venn explorer.

Disjointness is the opposite extreme from equality: no shared elements at all — a condition important enough that probability gives it its own name.

Overlapping Sets


Two sets overlap if they share at least one element but neither is a subset of the other:

Overlapping Sets
A∩B≠∅andA⊈BandB⊈AA \cap B \neq \emptyset \quad \text{and} \quad A \not\subseteq B \quad \text{and} \quad B \not\subseteq A

This means each set contains elements the other lacks, yet they also have common elements.

The sets {1,2,3}\{1, 2, 3\} and {2,3,4}\{2, 3, 4\} overlap: they share 22 and 33, but 11 belongs only to the first and 44 belongs only to the second.

Pitfall: Calling nested sets overlapping
Calling {1,2}\{1, 2\} and {1,2,3}\{1, 2, 3\} overlapping because they share 11 and 22 misses that {1,2}∖{1,2,3}=∅\{1, 2\} \setminus \{1, 2, 3\} = \emptyset. The first set is a subset of the second, so the sets are nested, not overlapping.

In a Venn diagram, overlapping sets appear as circles that intersect but neither contains the other. The lens-shaped intersection region is non-empty, and both the A∖BA \setminus B and B∖AB \setminus A regions are also non-empty.
UAB
Overlapping sets, frozen

The shaded lens is non-empty — the shared elements — while both crescents keep elements of their own: the definition of overlap, drawn. Explore how the lens grows and shrinks as sets change on the two-set Venn explorer.

Overlap is the general case between the two extremes — and the configuration where the set operations of union, intersection, and difference all produce genuinely distinct results.

Partitions


    A partition of a set SS is a collection of non-empty, pairwise disjoint subsets whose union equals SS:

    Partitions
    {A1,A2,…,An} partitions S  ⟺  {Ai≠∅for all iAi∩Aj=∅for i≠jA1∪A2∪⋯∪An=S\{A_1, A_2, \ldots, A_n\} \text{ partitions } S \iff \begin{cases} A_i \neq \emptyset & \text{for all } i \\ A_i \cap A_j = \emptyset & \text{for } i \neq j \\ A_1 \cup A_2 \cup \cdots \cup A_n = S \end{cases}

    COROLLARY
    Every element of SS belongs to exactly one subset in the partition.

    Examples:

  • {{1,3},{2,4},{5}}\{\{1, 3\}, \{2, 4\}, \{5\}\} partitions {1,2,3,4,5}\{1, 2, 3, 4, 5\}

  • The sets of even and odd integers partition Z\mathbb{Z}

  • Residue classes modulo nn partition Z\mathbb{Z} into nn subsets

  • Pitfall: Allowing an empty block
    Accepting {{1,3},{2,4},{5},∅}\{\{1, 3\}, \{2, 4\}, \{5\}, \emptyset\} as a partition of {1,2,3,4,5}\{1, 2, 3, 4, 5\} checks only disjointness and the union, which both hold. The block ∅\emptyset breaks Ai≠∅A_i \neq \emptyset, so the collection is not a partition.

    To test a proposed collection, each of the three conditions is checked on its own.

    Example
    In the first example, the blocks {1,3}\{1, 3\}, {2,4}\{2, 4\} and {5}\{5\} each contain at least one element, no two of them share an element, and together they contain 11, 22, 33, 44 and 55. All three conditions hold, so the collection is a partition.

    Partitions arise naturally in classification problems and connect to equivalence relations. The law of total probability relies on partitions: if events B1,B2,…,BnB_1, B_2, \ldots, B_n partition the sample space, probabilities can be computed by summing over the partition.

    Did you know: Fifty-two answers in an incense game
    In the Japanese game Genji-kō, players smell five incense samples and mark which were the same: a partition of a 5-element set. All 52 possible answers are named after chapters of The Tale of Genji.

    Even small sets have more partitions than a first glance suggests. The set {1,2}\{1, 2\} has two: {{1,2}}\{\{1, 2\}\}, with a single block, and {{1},{2}}\{\{1\}, \{2\}\}, with two singletons. The set {1,2,3}\{1, 2, 3\} has five: one with a single block, three that split off one element, such as {{1},{2,3}}\{\{1\}, \{2, 3\}\}, and one made of three singletons. For the five-element set of the first example, the partition {{1,3},{2,4},{5}}\{\{1, 3\}, \{2, 4\}, \{5\}\} is only one of many. Each new element can join any block already formed or start a block of its own, so the number of partitions grows quickly with the size of the set.
A partition cuts a set into blocks that cover it with no overlapS = {1, 2, 3, 4, 5}13{1, 3}24{2, 4}5{5}every element in exactly one block — no gaps, no overlaps
Three blocks that fill the set

The three blocks sit side by side inside S without touching, so no element can belong to two of them; together they leave no element of S outside. Those two facts — no overlap, no gap — are the whole definition of a partition.

Remove any one block, or let two blocks share an element, and the collection stops being a partition.

Common Pitfalls

Five mistakes come up often when sets are compared. Each is marked where it happens in the sections above; here each is worked through in full, with the wrong and the right working side by side.
DownloadPNG2×PDF
1Proving only one inclusion
To prove A=BA = B, one subset relation is shown and the proof stops there. One inclusion only says that one set lies inside the other; the second set can still have extra elements.
Start
For A={1,2}A = \{1, 2\} and B={1,2,3}B = \{1, 2, 3\},
Wrong turn
Error here
Both 11 and 22 are in BB, so A⊆BA \subseteq B, and the conclusion A=BA = B is drawn.
Right path
Check the other direction too. The element 33 is in BB but not in AA, so B⊈AB \not\subseteq A and A≠BA \neq B. For A={x∈Z:x2=1}A = \{x \in \mathbb{Z} : x^2 = 1\} and B={−1,1}B = \{-1, 1\} both directions hold, and only then A=BA = B.
Why it happensThe first direction usually carries the real work, such as solving an equation or unpacking a definition, and the second looks too obvious to write down.
How to checkAfter the proof, ask whether every element of BB has been shown to lie in AA. If no argument covers that direction, the proof shows only A⊆BA \subseteq B.
2Judging size by containment
Because N\mathbb{N} is a proper subset of Z\mathbb{Z}, it is taken to have fewer elements. That rule holds for finite sets but fails for infinite ones.
Wrong turn
Error here
Every natural number is an integer, and −1-1 is an integer that is not natural, so N⊊Z\mathbb{N} \subsetneq \mathbb{Z} and therefore ∣N∣<∣Z∣|\mathbb{N}| < |\mathbb{Z}|.
Right path
List the integers as 0,1,−1,2,−2,3,−3,…0, 1, -1, 2, -2, 3, -3, \ldots and pair them in order with the natural numbers. Every integer appears exactly once in the list, so the pairing is a bijection and ∣N∣=∣Z∣|\mathbb{N}| = |\mathbb{Z}|.
Why it happensFor finite sets a proper subset is always smaller, and that experience is carried over to infinite sets without a check.
How to checkFor infinite sets, look for a bijection instead of comparing by containment. The even natural numbers are another test case: they form a proper subset of N\mathbb{N}, yet n↦2nn \mapsto 2n pairs them one to one with N\mathbb{N}.
3Checking only the common intersection
To test whether three or more sets are pairwise disjoint, only the intersection of all of them is checked. An empty common intersection does not stop two of the sets from sharing elements.
Start
For A={1,2}A = \{1, 2\}, B={2,3}B = \{2, 3\} and C={4}C = \{4\}, A∩B∩C=∅A \cap B \cap C = \emptyset,
Wrong turn
Error here
So the sets are called pairwise disjoint.
Right path
Check each pair: A∩B={2}A \cap B = \{2\}, A∩C=∅A \cap C = \emptyset and B∩C=∅B \cap C = \emptyset. The first pair shares 22, so the sets are not pairwise disjoint.
Why it happensFor two sets, the common intersection and the only pair are the same thing, so "no common element" and "pairwise disjoint" mean the same. With three or more sets they come apart.
How to checkTest each of the (n2)\binom{n}{2} pairs; for three sets that is three intersections. Equivalently, look for any element that appears in two of the sets.
4Calling nested sets overlapping
Two sets that share elements are called overlapping without checking the other two conditions. When one set lies inside the other, they share elements but are nested.
Wrong turn
Error here
{1,2}∩{1,2,3}={1,2}≠∅\{1, 2\} \cap \{1, 2, 3\} = \{1, 2\} \neq \emptyset, so the sets are called overlapping.
Right path
The definition also needs A⊈BA \not\subseteq B and B⊈AB \not\subseteq A. Here {1,2}∖{1,2,3}=∅\{1, 2\} \setminus \{1, 2, 3\} = \emptyset, so {1,2}⊆{1,2,3}\{1, 2\} \subseteq \{1, 2, 3\} and the sets are nested, not overlapping. By contrast, {1,2,3}\{1, 2, 3\} and {2,3,4}\{2, 3, 4\} overlap: their differences are {1}\{1\} and {4}\{4\}.
Why it happensIn everyday language, overlap just means having something in common, and the subset conditions are easy to drop.
How to checkCompute A∩BA \cap B, A∖BA \setminus B and B∖AB \setminus A. The sets overlap only when all three are non-empty.
5Allowing an empty block
A proposed partition is checked for disjointness and for its union, and the condition that every block is non-empty is skipped. The empty set passes the other two tests, so it slips in.
Wrong turn
Error here
In {{1,3},{2,4},{5},∅}\{\{1, 3\}, \{2, 4\}, \{5\}, \emptyset\} the blocks are pairwise disjoint, since ∅\emptyset shares nothing with any set, and their union is {1,2,3,4,5}\{1, 2, 3, 4, 5\}, so the collection is called a partition of {1,2,3,4,5}\{1, 2, 3, 4, 5\}.
Right path
The definition requires Ai≠∅A_i \neq \emptyset for every block. The block ∅\emptyset fails this, so the collection is not a partition; removing it leaves the partition {{1,3},{2,4},{5}}\{\{1, 3\}, \{2, 4\}, \{5\}\}.
Why it happensThe empty set changes neither the union nor the disjointness, so it looks harmless, and the non-empty condition is the easiest of the three to forget.
How to checkGo through the blocks one by one and name an element of each. A block with no element to name is empty and does not belong in a partition.
Common pitfalls with set relationships·/set-theory/relationshipsLearn Math Class
Each slip checks less than the definition asks for. Equality needs both inclusions, pairwise disjoint needs every pair to share nothing, overlapping sets must each have elements the other lacks as well as elements in common, a partition needs every block to be non-empty, and for infinite sets size is compared by a bijection, not by containment. Going through the definition clause by clause, or looking for a bijection, catches each of them.

Summary: How Sets Relate

This summary sets the five relationships of the page side by side, one card each. Every card gives the name of the relationship, its defining condition, a short example and a line on the fact that tells it apart from the others, with a link to the section that explains it.

Equal sets have the same elements and are proved equal by showing that each is a subset of the other. Equivalent sets only have the same size, so equal sets are always equivalent but not the reverse. Disjoint sets share nothing, which probability calls mutually exclusive. Overlapping sets share something while each keeps elements of its own, and a partition cuts a set into non-empty pieces that do not overlap.
DownloadPNG2×PDF
Equal sets
A=B  ⟺  ∀x (x∈A  ⟺  x∈B)A = B \iff \forall x\,(x \in A \iff x \in B)
The same elements, in any order. Equality is proved by mutual subset containment, A⊆BA \subseteq B and B⊆AB \subseteq A, as equal sets shows.
{1,2,3}={3,1,2}\{1, 2, 3\} = \{3, 1, 2\}
Equivalent sets
∣A∣=∣B∣|A| = |B|
The same cardinality, written A∼BA \sim B. Equal sets are always equivalent, but not the other way around (equivalent sets).
{a,b,c}∼{1,2,3},N∼Z\{a, b, c\} \sim \{1, 2, 3\}, \quad \mathbb{N} \sim \mathbb{Z}
Disjoint sets
A∩B=∅A \cap B = \emptyset
No common elements; for more sets, Ai∩Aj=∅A_i \cap A_j = \emptyset for every pair. In probability such sets are called mutually exclusive, as disjoint sets notes.
{1,2,3}\{1, 2, 3\} and {4,5,6}\{4, 5, 6\}; the evens and the odds
Overlapping sets
A∩B≠∅andA⊈BandB⊈AA \cap B \neq \emptyset \quad \text{and} \quad A \not\subseteq B \quad \text{and} \quad B \not\subseteq A
Both A∖BA \setminus B and B∖AB \setminus A are non-empty: the circles meet in a lens-shaped region of the Venn diagram, as overlapping sets shows.
{1,2,3}\{1, 2, 3\} and {2,3,4}\{2, 3, 4\}
Partition of S
A1∪A2∪⋯∪An=SA_1 \cup A_2 \cup \cdots \cup A_n = S
The sets A1,A2,…,AnA_1, A_2, \ldots, A_n partition SS: non-empty, pairwise disjoint subsets whose union is SS, so every element of SS belongs to exactly one piece (partitions).
the evens and the odds of Z\mathbb{Z}; the residue classes mod nn
!Ai≠∅A_i \neq \emptyset for all ii; Ai∩Aj=∅A_i \cap A_j = \emptyset for i≠ji \neq j
How sets relate·All set theory formulasLearn Math Class
To decide which relationship holds, check the conditions one at a time: the same elements, the same size, nothing in common, or a shared part with something left over on each side. A partition asks for all three of its conditions at once, and a single empty piece breaks it.
The same five relationships as pictures. Click a card to see its defining condition, an example and the fact that sets it apart.
DownloadPNG2×PDF
Defining conditionthe same elements: A=B  ⟺  ∀x (x∈A  ⟺  x∈B)A = B \iff \forall x\,(x \in A \iff x \in B)
Example{1,2,3}={3,1,2}\{1, 2, 3\} = \{3, 1, 2\}
Key distinguishing factproved by mutual subset containment, A⊆BA \subseteq B and B⊆AB \subseteq A
The five relationships as pictures·/set-theory/relationshipsLearn Math Class

Skills You Should Learn

Each skill opens its step-by-step method page. Skills marked "On this page" are taught above.
Taught on this page
More set theory methods
  • Check whether one set is a subset of anotherTest A⊆BA \subseteq B element by element: every element of AA must be in BB; for a proper subset, BB also needs an element outside AA.
  • Fill a two-set Venn diagramPlace elements or counts in the four regions of a two-set Venn diagram: the overlap first, then each set alone, then the outside.
  • Fill a three-set Venn diagramFill the eight regions of a three-set Venn diagram from the center out: all three, the pair-only regions, each set alone, then the outside.

Set Relationships FAQ

What is the difference between equal and equivalent sets?

+
Equal sets contain exactly the same elements. Equivalent sets merely have the same size, so their elements can differ entirely. {a, b, c} and {1, 2, 3} are equivalent but not equal. Every pair of equal sets is equivalent, but the reverse fails. Equivalence is settled by cardinality, equality by membership.Read more →

What are disjoint sets?

+
Two sets are disjoint when they share no elements, so their intersection is empty. The even and odd integers are disjoint, as are {1, 2, 3} and {4, 5, 6}. In probability the same condition is called mutually exclusive: if one event happens, the other cannot. Disjointness is a property of the pair, not of either set alone.Read more →

What does pairwise disjoint mean?

+
A collection of three or more sets is pairwise disjoint when every possible pair of them is disjoint. Checking only that all the sets share no common element is not enough: three sets can have empty triple intersection while two of them still overlap. Pairwise disjoint is the stronger condition and the one partitions require.Read more →

How do you prove two sets are equal?

+
Show containment in both directions. Prove that every element of A belongs to B, then prove that every element of B belongs to A. Together these give A ⊆ B and B ⊆ A, which forces A = B. This double-inclusion method turns one equality claim into two subset proofs and is the standard technique.Read more →

What is a partition of a set?

+
A partition splits a set into non-empty pieces that are pairwise disjoint and together cover everything, so each element lands in exactly one piece. The even and odd integers partition the integers; residue classes mod n partition them into n pieces. The law of total probability is built directly on this idea.Read more →

Do a set and its subset count as overlapping sets?

+
No, they are nested. Overlapping sets share at least one element, and each also has an element the other lacks. The sets {1,2}\{1, 2\} and {1,2,3}\{1, 2, 3\} share 11 and 22, but {1,2}∖{1,2,3}=∅\{1, 2\} \setminus \{1, 2, 3\} = \emptyset, so the first lies inside the second. By contrast {1,2,3}\{1, 2, 3\} and {2,3,4}\{2, 3, 4\} overlap: their differences are {1}\{1\} and {4}\{4\}, and their intersection {2,3}\{2, 3\} is non-empty.Read more →

Can a partition include the empty set?

+
No. Every block of a partition must be non-empty. The empty set slips past the other two tests, since it shares nothing with any block and adds nothing to the union, so {{1,3},{2,4},{5},∅}\{\{1, 3\}, \{2, 4\}, \{5\}, \emptyset\} looks like a partition of {1,2,3,4,5}\{1, 2, 3, 4, 5\}. The non-empty condition rules it out; removing ∅\emptyset leaves the genuine partition {{1,3},{2,4},{5}}\{\{1, 3\}, \{2, 4\}, \{5\}\}.Read more →

How many ways can a set be partitioned?

+
More than a first glance suggests. The set {1,2}\{1, 2\} has 22 partitions, {1,2,3}\{1, 2, 3\} has 55, a four-element set has 1515, and a five-element set has 5252. The counts grow quickly because each new element can join any block already formed or start a block of its own. The 5252 partitions of five elements are the answers of the Japanese incense game Genji-kō, each named after a chapter of The Tale of Genji.Read more →