Method line M12 · When and why do we use it?

Correspondence and Pairing

In the Chinese book: 对应与配对

Count a hard set through an easy twin; pair terms so each pair sums alike.

📖 Chapter 12 of 《解题方法与策略》

One idea, one pictureTap the steps below to turn → into ↑. How is a path to (4, 3) related to “the set of up-steps”? How many paths can you find in all?

Loading figure…

In one sentence

To count a set , find a one-to-one correspondence onto a set that is easy to count. Then .

Pairing is its little sibling: match the objects up in pairs ( with , with , with ) so that every pair has the same sum or product, and the total is visible at a glance. Both correspondence and pairing need two checks: no repeats (injective) and no gaps (surjective).

Predict first

Walk from to , one cell right or up at each step, and never go above the line (touching is allowed). How many such paths are there?

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

Example: counting “bad” paths by reflection (the reflection principle)

Step 1 / 5
Loading figure…
  1. A path is a subset

    A path from to has steps and is completely determined by “which steps go up”. So there are paths in all.

Stop 1 · Mappings and counting (Vol. 2)

The divider method (stars and bars) is the most common correspondence: solution ↔ positions of the dividers.

Example: how many positive integer solutions does x₁ + x₂ + x₃ + x₄ = 12 have?

Step 1 / 4
  1. Turn numbers into balls

    Write as balls in a row. A solution is a way of cutting the row into parts from left to right, each part non-empty.

Stop 2 · Families of subsets (Vol. 1)

Take the subsets of and pair each subset with its complement : .

One problem, several solutions

Over all subsets of (including the empty set), find .

Pair with the complement

The subsets form exactly pairs ( always holds), and the sizes in each pair add up to , so .

CostOne line; you only need to see that “every pair sums to n”.

Sort by size

There are subsets of size , so . Using gives .

CostNeeds an identity for binomial coefficients.

Stop 3 · Summing sequences (Vol. 5)

Gauss's trick of pairing first with last works just as well for sums of binomial coefficients: pair with , and use .

Example: find S = Σ k·C(n, k), k = 0, 1, …, n

Step 1 / 3
  1. Write it again, backwards

    Replacing by does not change the sum; then use .

Stop 4 · Conjugate pairs of complex numbers (Vol. 4)

The non-real roots of a polynomial with real coefficients come in pairs, and . For each pair the sum and the product are real.

Example: pairing the four non-real roots of x⁵ = 1

Step 1 / 3
  1. List the roots

    The roots of are (), where . Then and .

Practice

Exercise 1Basic

How many positive integer solutions does have?

Exercise 2Basic

How many non-negative integer solutions does have?

Exercise 3Advanced

Over all subsets of , find the total of their sizes, .

Exercise 4Challenge

Among the strings of length made of “(” and “)”, how many are correctly matched (reading from left to right, the number of “)” never exceeds the number of “(” at any moment)?

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

The correspondence is not one-to-one

The wrong step: The non-negative integer solutions of correspond to “ balls in a row, with dividers placed in the gaps”, so there are of them.
What went wrong? Think first, then open

Diagnosis Dividers go only into gaps, so every part gets at least one ball: this matches the positive integer solutions. Solutions with (two dividers side by side, or one at the far left) are never counted. This “correspondence” is not a surjection.

The right step: First set and so on, which turns it into positive integer solutions of : . Or line up the balls and dividers together and choose where the dividers go: .

“Check that a correspondence has no repeats and also no gaps”

Exhibit

Reflecting in the wrong line

The wrong step: Count the paths from to that never go above : reflect each “bad” path in , and its end point becomes… still . Reflection gets nowhere.
What went wrong? Think first, then open

Diagnosis Paths may touch , so “bad” means touching . The reflection must be in the line the path touches at its “first foul”, which is .

The right step: Reflect the part of a bad path after it first touches in the line . The end point becomes , so there are bad paths.

“Reflect in the line where the foul happens”

Stops on this line

The same idea, used once in each of several places.

  1. MappingsVol. 2 Functions and Functional Equations, §1.1
  2. Counting the Elements of a Finite SetVol. 1 Sets, ch. 3
  3. Families of SubsetsVol. 1 Sets, ch. 5
  4. Complex Numbers and Their AlgebraVol. 4 Complex Numbers and Vectors, ch. 1
  5. General Terms and SumsVol. 5 Sequences and Mathematical Induction, ch. 4