Concept stop · What is it?

Partitions of a Set

In the Chinese book: 集合的分划

Cut a set into disjoint pieces; restrict the cuts and “impossible” is a theorem.

Before this stop, visit:Counting the Elements of a Finite Set (Skill)

Hands first, words secondColor 1–4 with two colors so that no color class contains x+y=z. Once it works, raise n to 5 and try again.

Loading figure…

Try this

  1. : split into two classes so that no class contains ( counts too, e.g. ). Did you manage it?
  2. Set to and try again. If several attempts fail, tap “Ask the computer”.
  3. Read the “Addition principle” meter below: however you color, what do the class sizes add up to?
  4. How many successful colorings are there in all? Does swapping the two colors give a new partition?

If a set is the union of non-empty subsets that are pairwise disjoint:

then is called an -partition of . The most direct consequence is the addition principle: .

The handiest way to think of a partition is as a coloring: everything in one piece gets the same color. “Can it be partitioned as required?” becomes “Can it be colored as required?”

Predict first

In how many ways can be split into two pieces (unordered, each non-empty)?

ways
Choose an answer first; then you can see the result.

Why 5 numbers cannot escape

{1,2,3,4,5} cannot be split into two pieces that both avoid x+y=z

Step 1 / 5
Loading figure…
  1. Start with 1, without loss of generality

    Suppose a valid split exists. The two colors play the same role, so without loss of generality is in the first class (●).

“Without loss of generality” and “forced” are the two key phrases in proofs like this: symmetry halves the case work, and each step leaves only one choice, so the argument ends in a few moves. , on the other hand, can be split: and . Between and lies the border between “possible” and “impossible”.

Another restriction: equal sums

Now split into pieces so that every piece has the same sum. Before you start, think: what must the total satisfy?

Loading figure…
For the total is . What should each piece add up to? Set to and tap “Ask the computer” again.

A total divisible by is necessary, but it is not enough: for the total is , so each piece should be , yet on its own is already too big. A necessary condition rules out a lot of cases; the ones that remain have to be settled one by one with a construction.

Practice

Exercise 1Basic

In how many ways can be split into two pieces (unordered, each non-empty)?

Exercise 2Basic

For which among can be split into two pieces with equal sums? (List all such , separated by commas.)

Exercise 3Advanced

In how many ways can be split into three pieces (unordered, each non-empty)?

Exercise 4Challenge

For which among can be split into three pieces with equal sums?

Mistake Museum · Exhibits from this stop

Before you leave, look at the traps other people fell into here.See every exhibit in the museum →

Exhibit

Counting an empty piece when counting partitions

The wrong step: Split into two classes: each element picks a class, ways; the classes are unordered, so divide by to get .
What went wrong? Think first, then open

Diagnosis Two of the colorings use a single color for everything, and then the other class is the empty set. Every piece of a partition must be non-empty, so these two do not count.

The right step: ways. In general, an -element set can be split into two pieces in ways.

“No piece of a partition may be empty”

Exhibit

Adding pieces that overlap

The wrong step: students in the class are in the math club and in the physics club, so are in at least one club.
What went wrong? Think first, then open

Diagnosis Some students may be in both clubs. “Math club” and “physics club” are not a partition: the two pieces intersect, and anyone in both is counted twice.

The right step: The addition principle only works for pairwise disjoint pieces. With overlap you must subtract what was counted twice: . That is the inclusion–exclusion principle of station 9.

“Check that the pieces are pairwise disjoint before you use the addition principle”