taocp

This site has no text of the book. Keep your own copy of TAOCP next to it. See what is checked.

Exercise · Volume 1 · 1.2.1-2

Exercise 1.2.1-2

proved in Lean solution written

Rating15
Markersrecommended
KindK3, find a value: compute a number, a set or a closed form from the written solution
SectionSection 1.2.1 of Volume 1. Companion chapter: Mathematical induction

The task

Find the step where the "proof" that an−1=1a^{n-1} = 1 for all positive integers nn fails.

The exact wording is in your copy of the book.

Hints

Open one hint at a time. Try the exercise again after each.

Hint 1

Test the claim with a=2a = 2 and n=2n = 2.

Hint 2

In the induction step, list the earlier cases that the formula uses, and check that they are all inside the range 1,…,n1, \ldots, n.

Solution

Show the solution

The claim is false for a≠1a \ne 1: for a=2a = 2 and n=2n = 2 it says 21=12^1 = 1. So the proof must fail somewhere.

The step computes ana^{n} as an−1⋅an−1/an−2a^{n-1} \cdot a^{n-1} / a^{n-2}. This identity is correct for each nn. The step then replaces an−1a^{n-1} by 11 and an−2a^{n-2} by 11, using the hypothesis for the values nn and n−1n - 1. The hypothesis covers the cases 1,…,n1, \ldots, n. For n≥2n \ge 2 both nn and n−1n-1 are in this range, so the step is correct for n≥2n \ge 2. For n=1n = 1 the exponent n−2n - 2 is −1-1, and n−1=0n - 1 = 0 is not a positive integer, so the case "P(0)P(0)" was never proved. The step n=1→2n = 1 \to 2 needs a−1=1a^{-1} = 1, that is a=1a = 1, and the proof does not show this. The proof shows only that P(1)P(1) is true and that P(1)P(1) and P(2)P(2) imply P(3)P(3) and so on, but it never proves P(2)P(2).

In short, the step from 11 to 22 is missing. Indeed the claim holds for all nn exactly when a=1a = 1: if a=1a = 1 it is trivial, and if a≠1a \ne 1 then n=2n = 2 gives a≠1a \ne 1.

Check

For a=2a = 2: 21−1=12^{1-1} = 1 and 22−1=2≠12^{2-1} = 2 \ne 1. In the step from n=1n = 1, the expression an−1⋅an−1/an−2a^{n-1} \cdot a^{n-1} / a^{n-2} is a0⋅a0/a−1=1⋅1/(1/2)=2a^0 \cdot a^0 / a^{-1} = 1 \cdot 1 / (1/2) = 2 for a=2a = 2. It is not 11, because a−1=1/2a^{-1} = 1/2 and the hypothesis says nothing about a−1a^{-1}. For n≥2n \ge 2 the same expression is 2n−1⋅2n−1/2n−2=2n2^{n-1} \cdot 2^{n-1} / 2^{n-2} = 2^n, so the identity is right but the values of the factors are not 11.

Remarks

The pattern is common: a strong induction hypothesis that is used for a case outside its range at the first steps. Exercise 1.2.1-3 is another false proof, where the base case is wrong.

This solution is checked, and a person has not reviewed it yet. The source.

In Lean

proved The statement and its proof are in Lean. The kernel accepts the proof, and it uses the standard axioms only.

The status is computed from the Lean build. The node of the map.

Something is wrong? Report it.