7.01a–7.01c - Problem types, sets and pigeonholes

7.01a–7.01c - Problem types, sets and pigeonholes

Learn to distinguish four kinds of mathematical problem, describe sets and partitions precisely, and prove that a repetition must occur without finding it. The pigeonhole principle turns a count of objects and categories into a guarantee, even when you know nothing about how the objects were chosen.

Four types of problem

If you choose any 1717 different integers from 11 to 3232, must two of your choices add to 3333? Try choosing awkwardly: all the small numbers, all the odd numbers, or numbers scattered across the interval. A systematic argument will settle every possible choice at once.

Before solving a problem, identify what its answer must look like. “Can it be done?” and “How many ways?” may describe the same setting but demand different answers.

Types of problem

An existence problem asks whether an object or solution satisfying stated conditions exists. A construction problem asks you to produce one. An enumeration problem asks how many there are. An optimisation problem asks for a best solution according to a stated quantity, such as least cost or greatest size.

For a seating problem, these questions are different.

QuestionTypeWhat answers it?
Can the guests be seated with no incompatible pair together?Existencea justified yes or no
Give a seating plan with no incompatible pair together.Constructiona valid plan
How many such seating plans are possible?Enumerationa count
Find a valid plan using the fewest tables.Optimisationa plan and a justification of its minimum

A problem can belong to more than one category. “Find a shortest route” asks you both to construct a route and to optimise its length. A valid construction proves existence, but it does not count all solutions or prove that yours is best. Conversely, proving existence need not tell you where the solution is: that is precisely what our opening puzzle will illustrate.

Watch out

“Is there a way to do it?” is an existence question, even if you could answer yes by constructing an example. Classify the demand actually made, rather than a method you might use to answer it.

The distinction changes the last line of your answer: a count cannot replace a requested construction, and one successful example cannot establish an optimum.

Describing sets and their elements

A set records which objects are present, without giving those objects an order or counting an object twice.

You already know

A positive integer is one of 1,2,3,…1, 2, 3, \ldots. A multiple of dd has the form dkdk for an integer kk. A prime has exactly two positive factors; 11 is not prime.

Thus {2,5,2}\{2, 5, 2\} is the same set as {5,2}\{5, 2\}. Repeating 22 in a written list does not create a new element. The braces matter: 22 is a number, whereas {2}\{2\} is a set containing that number.

Set notation

The notation x∈Ax\in A means that xx is an element of AA, and x∉Ax\notin A means that it is not. The empty set ∅\varnothing has no elements. The number of elements of a finite set AA is n(A)n(A). Write A⊆BA\subseteq B when every element of AA belongs to BB; a proper subset also differs from BB, written A⊂BA\subset B here.

Choose a universal set E\mathcal{E} containing every object under discussion. Then the following operations describe new sets.

NotationMeaning
A∪BA\cup Belements in AA or BB, including elements in both
A∩BA\cap Belements in both AA and BB
A′A'elements of E\mathcal{E} not in AA
A∖BA\setminus Belements in AA but not in BB
{x∈E:x is even}\{x\in\mathcal{E}:x\text{ is even}\}elements of E\mathcal{E} satisfying the stated condition

Two sets are disjoint when their intersection is empty. Notice that ∅\varnothing is a subset of every set: there is no element in it that could fail the subset condition. However, ∅\varnothing and {∅}\{\varnothing\} differ: their sizes are 00 and 11.

[DIAGRAM: asset_name: Set operations in a finite universal set; asset_slug: h245_7_01_sets; caption: Each integer from 1 to 12 occupies exactly one region, determined by membership of the even numbers A and the multiples of 3 B; description: A rectangular universal set contains two overlapping circles labelled A even numbers and B multiples of 3. The A-only region contains 2, 4, 8, 10; the overlap contains 6, 12; the B-only region contains 3, 9; the region outside both contains 1, 5, 7, 11. A lower key describes union as all three circle regions, intersection as the overlap, and complement of A as everything outside A]
Each integer from 1 to 12 occupies exactly one region, determined by membership of the even numbers A and the multiples of 3 B

Work with actual elements before trying to count regions. This avoids counting an element twice just because it satisfies two descriptions.

Worked example 1: listing set operations

Question. Let E={1,2,…,12}\mathcal{E}=\{1, 2, \ldots, 12\}, let AA be its even numbers and let BB be its multiples of 33. Find A∩BA\cap B, A∪BA\cup B and A′∩BA'\cap B.

Plan. List the elements of each set, then apply “both”, “either” and “not in AA” respectively.

A={2,4,6,8,10,12}even elementsB={3,6,9,12}multiples of 3A∩B={6,12}common elementsA∪B={2,3,4,6,8,9,10,12}list each element onceA′∩B={3,9}in B but not A\begin{aligned} A&=\{2,4,6,8,10,12\} &&\text{even elements}\\ B&=\{3,6,9,12\} &&\text{multiples of }3\\ A\cap B&=\{6,12\} &&\text{common elements}\\ A\cup B&=\{2,3,4,6,8,9,10,12\} &&\text{list each element once}\\ A'\cap B&=\{3,9\} &&\text{in }B\text{ but not }A \end{aligned}

Why this step? The word “or” in a union includes elements satisfying both conditions, so 66 and 1212 remain in the union.

Answer. The three sets are {6,12}\{6,12\}, {2,3,4,6,8,9,10,12}\{2,3,4,6,8,9,10,12\} and {3,9}\{3,9\}.

Check. The last set contains exactly the odd multiples of 33 in the universal set.

The next example changes only the universal set. This matters because complements depend on the universe, even when the named sets do not change.

Worked example 2: a different universal set

Question. Let A={2,4,6,8,10,12}A=\{2,4,6,8,10,12\} and B={3,6,9,12}B=\{3,6,9,12\}, but now let E={1,2,…,15}\mathcal{E}=\{1,2,\ldots,15\}. Find (A∪B)′(A\cup B)' and its size.

Plan. Remove all elements belonging to either named set from the new universal set.

A∪B={2,3,4,6,8,9,10,12}the named sets are unchanged(A∪B)′={1,5,7,11,13,14,15}remaining elements of En((A∪B)′)=7count the listed elements\begin{aligned} A\cup B&=\{2,3,4,6,8,9,10,12\} &&\text{the named sets are unchanged}\\ (A\cup B)'&=\{1,5,7,11,13,14,15\} &&\text{remaining elements of }\mathcal{E}\\ n\big((A\cup B)'\big)&=7 &&\text{count the listed elements} \end{aligned}

Why this step? 1414 is even, but AA was explicitly listed and does not contain 1414; do not silently redefine it when the universe changes.

Answer. (A∪B)′={1,5,7,11,13,14,15}(A\cup B)'=\{1,5,7,11,13,14,15\}, of size 77.

Check. The union has 88 elements and its complement has 77, accounting for all 1515 elements without overlap.

Sets of elements and individual elements require different notation.

Watch out

For A={2,4,6}A=\{2,4,6\}, write 2∈A2\in A and {2}⊆A\{2\}\subseteq A. The statement {2}∈A\{2\}\in A is false: the elements of AA are numbers, and none is the set {2}\{2\}.

For a complement, state or read the universal set before listing anything.

Partitions of a set

A partition divides a set into groups so that every element belongs to exactly one group.

For S={a,b,c}S=\{a,b,c\}, the groups {a,b}\{a,b\} and {c}\{c\} form a partition. The groups {a,b}\{a,b\} and {b,c}\{b,c\} do not, because bb is used twice. The one-block collection {S}\{S\} is a partition; so is the collection of three singleton groups.

Partition

A partition of a set is a collection of non-empty, pairwise disjoint subsets whose union is the whole set. The subsets are called its blocks. The blocks have no order: {{a,b},{c}}\{\{a,b\},\{c\}\} and {{c},{a,b}}\{\{c\},\{a,b\}\} describe the same partition.

This last point makes counting partitions different from placing people into named teams. A red team and a blue team are labelled; the two blocks of a partition are not. For small sets, organise an exhaustive list by block sizes rather than inventing a formula. No general formula for counting partitions is in the formula booklet.

[DIAGRAM: asset_name: All partitions of a three-element set; asset_slug: h245_7_01_partitions; caption: The five partitions of a three-element set are organised by their block sizes, and reversing the order of the blocks creates no new partition; description: Three horizontal panels show the one partition with a block of size 3, the three partitions with block sizes 2 and 1, and the one partition with three singleton blocks. Elements a, b, c appear once in every displayed partition, enclosed together in pale rounded rectangles exactly when they belong to the same block]
The five partitions of a three-element set are organised by their block sizes, and reversing the order of the blocks creates no new partition

The picture gives a useful surprising count: a set of only three elements already has five partitions. Each element is used once in every row, but the group boundaries change.

Worked example 3: a fixed number of blocks

Question. List all partitions of S={a,b,c,d}S=\{a,b,c,d\} into exactly two blocks, and state their number.

Plan. Use the only possible block-size patterns: 1+31+3 and 2+22+2.

sizesone blockother block1+3{a}{b,c,d}{b}{a,c,d}{c}{a,b,d}{d}{a,b,c}2+2{a,b}{c,d}{a,c}{b,d}{a,d}{b,c}\begin{array}{c|c|c} \text{sizes}&\text{one block}&\text{other block}\\\hline 1+3&\{a\}&\{b,c,d\}\\ &\{b\}&\{a,c,d\}\\ &\{c\}&\{a,b,d\}\\ &\{d\}&\{a,b,c\}\\ 2+2&\{a,b\}&\{c,d\}\\ &\{a,c\}&\{b,d\}\\ &\{a,d\}&\{b,c\} \end{array}

Why this step? Sorting by block sizes makes the list exhaustive. For the unequal sizes, choose the singleton; for equal sizes, list the block containing aa first to avoid reversing a previously counted pair.

Answer. There are 4+3=74+3=7 partitions into two blocks, listed above.

Check. Each listed block is non-empty, the blocks within a partition do not overlap, and every partition uses a,b,c,da,b,c,d exactly once.

The next example adds only the restriction that the two blocks must have equal size. Their order still creates no extra partitions.

Worked example 4: equal-sized blocks

Question. List the partitions of {a,b,c,d}\{a,b,c,d\} into two blocks, each of size 22.

Plan. Fix the block containing aa, and list its possible partners.

a with b:{{a,b},{c,d}}a with c:{{a,c},{b,d}}a with d:{{a,d},{b,c}}\begin{aligned} a\text{ with }b&:\quad\{\{a,b\},\{c,d\}\}\\ a\text{ with }c&:\quad\{\{a,c\},\{b,d\}\}\\ a\text{ with }d&:\quad\{\{a,d\},\{b,c\}\} \end{aligned}

Why this step? Every valid partition has exactly one block containing aa. Choosing that block identifies each partition once, without naming a first and second block.

Answer. There are 33 such partitions.

Check. There are 66 two-element subsets, but each partition uses two of them; listing a chosen block and its complement would count each partition twice.

A constraint about two named elements can be applied directly to this list.

Watch out

Wrong: the partition {{a,b},{c,d}}\{\{a,b\},\{c,d\}\} becomes a second partition when written as {{c,d},{a,b}}\{\{c,d\},\{a,b\}\}. Right: it is the same collection of blocks. Count a rearrangement only when the groups have distinct labels.

When blocks have different sizes, their sizes can distinguish them; when sizes coincide, fixing one named element is often the cleanest way to avoid duplicates.

Continue this lesson.

You’re previewing NovaLearn without an account. Create a free account to read the rest.

Create free account