In one sentence
When a statement has two (or more) variables , lay out all the cases as a grid. To prove one cell, the inductive step uses some other cells — whatever it uses, the induction hypothesis must cover. The possible things to induct on:
- induct on (any ): assume every cell with , which covers whole columns to the left;
- induct on (any ): covers whole rows below;
- induct on : covers the triangle down and to the left;
- double induction ( first, then ): the whole columns to the left, plus the cells below in the same column.
What you induct on need not be one of the letters in the problem either: the number of variables, the sum of two numbers, an area… Induct on whatever really gets smaller at every step.
One grid, four inductions
Step 1 / 7- What the step needs
Walking from to , the last step is either right or up, so the number of paths paths to paths to . You need to know both circled cells first.
Predict first
The “binomial sum” statement: . Its inductive step is “add one more term on the left”. What is it most natural to induct on?
Add the term to the sum that ends at and you get the sum that ends at ; never changes. So induction on is all you need ( fixed or arbitrary, either works):
Stop 1 · Counting: lattice paths
above is itself a good example: induct on . The base cases are the edges or (only one path, ); the inductive step is the Pascal's triangle recurrence . Here “” is exactly the total number of steps walked — what you induct on is often a meaningful quantity in the problem.
Stop 2 · Inequalities: induct on the number of variables
Example Let . Prove that .
There is no second letter here, but two things vary: the number of variables and their values. The values vary continuously, so you cannot induct on them; on the number you can.
Induction on the number of variables
Step 1 / 4- Base case
For the two sides are equal.
Stop 3 · Number theory: induct on the sum of two numbers
Example The greatest common divisor of positive integers can be written as with integers .
One problem, several solutions
Prove that for any positive integers there are integers with .
Induct on m+n
If , then ; take . Assume the statement for all pairs with a sum less than . If , take . If , then and , so by the hypothesis , that is . The case is the same.
CostNatural: one subtraction step of the Euclidean algorithm makes the sum smaller.
Induct on min(m, n)
We may assume . If , then . Otherwise with , , and . By the hypothesis ; substituting gives .
CostFaster: one division with remainder makes the smaller number smaller, but it needs strong induction.
Both choices are right: each step makes smaller, or makes the smaller of the two numbers smaller. Any quantity that strictly decreases at every step can be what you induct on.
Practice
Starting at and moving one unit right or up at each step, in how many ways can you reach ?
Compute .
The inductive step for a statement () uses only , and every case with has been checked directly. Which of , , should you induct on? (Type m, n or m+n.)
An chocolate bar is made of small squares. Each move, you pick up one piece and break it into two along a grid line. Prove that, however you break it, it takes exactly breaks to get small squares.