2.2  Induction, Strong Induction and Divisibility

Logic and Proof, Chapter 4 gave the principle of induction (Logic and Proof, Axiom 4.2.1), its strong form (Logic and Proof, Theorem 4.2.2), and the first worked proofs: a sum (Logic and Proof, Example (A sum of products of neighbors)), an inequality (Logic and Proof, Example (An inequality by induction)), and a strong induction with three base cases (Logic and Proof, Example (Threes and fives)). Logic and Proof, Chapter 8 showed how an induction is written in prose (Logic and Proof, Example (An induction, and a legitimate symmetry)). This section is about the craft: which form of induction fits a claim, where it starts, how to find the induction hypothesis inside the step, and how an induction goes wrong, each failure located at one step. On the way it proves two facts that Logic and Proof took from school: a fraction can be reduced until numerator and denominator are not both even, and every integer n≥2 has a prime factor.

2.2.1. Induction from any integer

Logic and Proof, Chapter 4 already started inductions at numbers other than 0 (Logic and Proof, Section 4.2, “Starting from another number”), for a starting point b∈N. With Z and Proposition 2.1.2 in hand, the starting point may be any integer, negative ones included.

To prove a statement for every integer from n0 on, prove it at n0 and show that it passes from each integer to the next.

Theorem 2.2.1 (Induction from a Base)

Let n0 be an integer, and for each integer n≥n0 let P(n) be a statement. Suppose

  • (i) (base case) P(n0) is true, and
  • (ii) (inductive step) for every integer n≥n0, if P(n) is true then P(n+1) is true.

Then P(n) is true for every integer n≥n0.

Idea. Count from the base. The integers n≥n0 are exactly n0+k with k∈N, and moving from n to n+1 moves k to k+1. So the statement “P(n0+k)” about k∈N is ready for Logic and Proof, Axiom 4.2.1, and its base case is P(n0).

Proof. For k∈N, let Q(k) be the statement P(n0+k). This makes sense: n0+k is an integer by Proposition 2.1.2 (a), and n0+k≥n0 since k≥0 by Lemma 2.1.1 (a).

Base case. Q(0) is P(n0), which holds by (i).

Inductive step. Let k∈N, and suppose Q(k), that is, P(n0+k). The integer n:=n0+k satisfies n≥n0, so (ii) gives P(n+1). Since n+1=n0+(k+1), this is Q(k+1).

By Logic and Proof, Axiom 4.2.1, Q(k) holds for every k∈N. Now let n be an integer with n≥n0. Then k:=n−n0 is an integer by Proposition 2.1.2 (a), and k≥0, so k∈N by Proposition 2.1.2 (b). Hence Q(k) holds, and Q(k) is P(n0+k)=P(n). This proves the theorem.

For n0=0 the theorem is Logic and Proof, Axiom 4.2.1 itself, and for n0∈N it is Logic and Proof, Chapter 4’s induction started at n0. In the inductive step, “P(n) is true” is the induction hypothesis: one implication, proved once, inside a →I box whose assumption is P(n) for one fixed but arbitrary integer n≥n0.

The strong form moves to a base in the same way.

Theorem 2.2.2 (Strong Induction from a Base)

Let n0 be an integer, and for each integer n≥n0 let P(n) be a statement. Suppose that, for every integer n≥n0: if P(k) is true for every integer k with n0≤k<n, then P(n) is true. Then P(n) is true for every integer n≥n0.

Proof. For j∈N, let Q(j) be P(n0+j), as in the proof of Theorem 2.2.1. We check the hypothesis of Logic and Proof, Theorem 4.2.2 for Q. Let j∈N, and suppose Q(i) holds for every i∈N with i<j. Put n:=n0+j, an integer with n≥n0. Let k be an integer with n0≤k<n. Then i:=k−n0 is an integer with i≥0, so i∈N by Proposition 2.1.2 (b), and i<n−n0=j; so Q(i), which is P(k), holds. The hypothesis of the theorem at n now gives P(n), that is, Q(j). By Logic and Proof, Theorem 4.2.2, Q(j) holds for every j∈N, and every integer n≥n0 is n0+j with j=n−n0∈N, as in the proof of Theorem 2.2.1. This proves the theorem.

So Theorem 2.2.2 is a corollary of Logic and Proof, Theorem 4.2.2, by the same shift. When n0∈N, it says what Logic and Proof, Example (Threes and fives) achieved with a guard: there the property was “if n≥8, then …”, stated for every n∈N and vacuous below 8. Here the property is stated only for n≥n0, and the hypothesis speaks only about k≥n0. The two are the same argument in two notations, and the base cases sit in the same place: they are the n for which the step reaches below n0.

Quick check. Every integer n≥24 is 5a+7b for some integers a,b≥0. A proof by Theorem 2.2.2 writes n=(n−5)+5 in its step. How many base cases does it need, and which? Can the base 24 be lowered?

Solution. The step uses P(n−5), which the hypothesis supplies only when n−5≥24, that is, n≥29. So n=24,25,26,27,28 are base cases, five of them, checked directly: 24=5⋅2+7⋅2,25=5⋅5,26=5⋅1+7⋅3,27=5⋅4+7⋅1,28=7⋅4. The base cannot be lowered: 23 is not of the form. With b=0,1,2,3 the difference 23−7b is 23,16,9,2, none a multiple of 5, and b≥4 gives 23−7b<0.

2.2.2. Finding P(n) inside P(n+1)

In every induction the step is an implication P(n)⇒P(n+1), proved for an arbitrary n. The work is to find, inside the statement P(n+1), the statement P(n), so that the hypothesis can be used: one more term to split off, one more factor to take out, one more case to bound. The first example is about divisibility (Definition 1.1.2).

Idea (Scratch work). The claim is 7∣9n−2n for every n∈N, with the powers in their school meaning. The base is 90−20=0=7⋅0. For the step, the hypothesis is about 9n−2n, so write P(n+1) out and look for that expression in it. The first try, 9n+1−2n+1=9⋅9n−2⋅2n, does not contain it: the two powers have different factors in front, 9 and 2. Force the old expression in. Take 9 out of both terms, and pay back what that costs: 9⋅9n−2⋅2n=9(9n−2n)+9⋅2n−2⋅2n, and the payment 9⋅2n−2⋅2n is 7⋅2n, a multiple of 7 again.

Givens Goal
P(n): 9n−2n=7k with k∈Z P(n+1): 9n+1−2n+1=7m for some m∈Z
9n+1=9⋅9n, 2n+1=2⋅2n (school meaning) 9n+1−2n+1 rewritten so that 9n−2n appears
9n+1−2n+1=9(9n−2n)+7⋅2n=7(9k+2n) m:=9k+2n∈Z: the gap is closed

The old expression appears once, the hypothesis turns it into 7k, and what is left over is a multiple of 7 by computation.

Divisibility claims about powers are a staple of induction, because the step can usually be arranged to contain the old expression once. Here is the proof the scratch work found. Claim: 7∣9n−2n for every n∈N, with 9n and 2n in their school meaning (a0=1, an+1=an⋅a, and an is an integer for an integer a; Section 2.3 makes this a definition). Base case: 90−20=0=7⋅0. Step: if 9n−2n=7k with k∈Z, then 9n+1−2n+1=9(9n−2n)+7⋅2n=7(9k+2n), and 9k+2n∈Z. By Logic and Proof, Axiom 4.2.1, the claim holds for every n∈N.

Example (Method: finding P(n) inside P(n+1))

Template. (1) Write P(n+1) out in full. (2) Find P(n) inside it: split off the last term, take out one factor, or separate the new piece from the old. (3) Apply the induction hypothesis to the old part. (4) Close the rest by computation. (5) Choose the base: the first n the claim covers from which steps (2)–(4) work, with any smaller n the claim covers checked directly.

When to use it. P(n+1) is built from P(n) by one operation: a term added, a factor multiplied, an element added to a set.

The usual failure. Starting from P(n+1) and deriving something true, which proves the converse, entry (N5) of Logic and Proof, Example (What is not allowed). A step that works only from some n on, with the base set lower (as in the gallery below). Using P(n+1) inside its own step (N9).

Quick check. For a proof that 5∣9n−4n for every n∈N, write 9n+1−4n+1 so that 9n−4n appears.

Solution. 9n+1−4n+1=9⋅9n−4⋅4n=9(9n−4n)+5⋅4n. If 9n−4n=5k with k∈Z, this is 5(9k+4n), and 9k+4n∈Z.

The fifth step of the template deserves an example of its own, because the place where the step starts working need not be the place where the claim starts being true.

Example (Where the step starts working)

Prove that 3n≥n3 for every n∈N, with the powers in their school meaning.

Idea. By Example (Method: finding P(n) inside P(n+1)), write P(n+1) out: it contains 3n as 3n+1=3⋅3n≥3n3, so the step needs 3n3≥(n+1)3. That holds from n=3 on, and not before. So the base is 3, and 0, 1, 2 are checked directly.

Solution. Small cases. 30=1≥0=03, 31=3≥1=13, and 32=9≥8=23.

From 3 on, by Theorem 2.2.1 with base 3. Base case: 33=27≥27=33. Step: let n≥3 be an integer with 3n≥n3. Then 3n+1=3⋅3n≥3n3. Since n≥3, 2n3≥6n2=3n2+3n2≥3n2+9n≥3n2+3n+1, so 3n3=n3+2n3≥n3+3n2+3n+1=(n+1)3. Hence 3n+1≥(n+1)3.

The small cases and the induction together give 3n≥n3 for every n∈N.

The claim is true at 0, 1 and 2, but the argument of the step fails from 2 to 3: 3⋅23=24<27=33. The base is where the step starts working, or the first n the claim covers if that is later. It need not be the first n at which the claim is true, and the cases below it are checked one by one.

Quick check. For which n∈N is 3n3≥(n+1)3 false, and why does that make 3 the base although 3n≥n3 holds at 0, 1 and 2?

Solution. For n=0,1,2: 0<1, 3<8 and 24<27. The step is proved only from 3 on, so the three smaller cases need their own checks; an induction from base 0 would have three unproved transitions.

2.2.3. Divisibility and the division algorithm

The next results are about divisibility.

Divisibility and primes were defined in Section 1.1: for integers a and b, a∣b means b=ka for some k∈Z (Definition 1.1.2), and a prime is an integer p≥2 whose only positive divisors are 1 and p (Definition 1.1.3); divisibility is transitive (Proposition 1.1.1). For instance, 3∣12, with k=4.

Change 12 to 14: 3∤14. The witness k would have to be 14/3, and 4<14/3<5, so 14/3 is not an integer, by the discreteness clause of Proposition 2.1.2. The clause that fails is “k∈Z”: the equation 14=k⋅3 has a real solution, just not an integer one.

Section 1.1 worked the first examples of primes and non-primes after Definition 1.1.3. The clause p≥2 keeps 1 out so that factorizations into primes can be unique, a fact this chapter does not prove or use: Exercise B2 below is about existence only.

Every integer, divided by a positive integer n, leaves a remainder between 0 and n−1. This is school arithmetic, and it is the tool behind “even or odd”.

Theorem 2.2.3 (Division Algorithm)

Let a∈Z and n∈Z>0. Then there are unique integers q and r with a=qn+rand0≤r<n.

The hypothesis n>0 matters: for n=0 no r satisfies 0≤r<0.

Try it first (ten minutes): which set of non-negative integers should have a least element, and why is that least element the remainder?

Idea. The obvious attempt subtracts n from a again and again until what is left lies in [0,n), adding n instead when a is negative. “Again and again until” is a process, not yet a proof: why does it stop, and why at a number below n? Well-ordering replaces the process by its outcome. Among all the non-negative integers a−qn, take the least (the method of Example (Method: the least element): S the non-negative integers a−qn). If it were n or more, subtracting one more n would leave a smaller non-negative one. For uniqueness: two remainders differ by a multiple of n, yet lie less than n apart, so the multiple is 0.

Proof. Existence. Let R:={a−qn:q∈Z}∩{x∈Z:x≥0}, the set of non-negative integers of the form a−qn (each a−qn is an integer by Proposition 2.1.2 (a)). The set R is non-empty. If a≥0, take q=0: then a−0⋅n=a∈R. If a<0, take q=a: then a−an=a(1−n)≥0, since a<0 and 1−n≤0 (as n≥1 by Proposition 2.1.2 (b)). The set R is a non-empty set of integers with the integer lower bound 0, so by Corollary 2.1.5 it has a least element r; write r=a−qn with q∈Z. Then a=qn+r and r≥0.

Suppose r≥n. Then r−n=a−(q+1)n is an integer of the required form with r−n≥0, so r−n∈R; and r−n<r, since n>0. This contradicts the choice of r. Hence r<n.

Uniqueness. Let a=qn+r=q′n+r′ with q,q′,r,r′∈Z, 0≤r<n and 0≤r′<n. Suppose r≠r′. By symmetry (exchanging (q,r) and (q′,r′) changes neither the hypotheses nor the goal) we may suppose r′<r. Then r−r′=(q′−q)n, and k:=q′−q is an integer with kn=r−r′>0. Since n>0, also k>0, so k≥1 by Proposition 2.1.2 (b), and r−r′=kn≥n. But r−r′≤r<n, since r′≥0. This contradiction shows r=r′. Then qn=q′n, and since n≠0, q=q′. This proves the theorem.

The integers q and r are the quotient and the remainder of a on division by n. For negative a the remainder is still non-negative: −7=3⋅(−3)+2, with remainder 2, not −1. Existence and uniqueness do separate jobs, and the case n=2 shows both:

  • Existence says that every integer a is 2q or 2q+1: every integer is even or odd.
  • Uniqueness says that no integer is both. If a=2q=2q′+1, then a would have remainders 0 and 1.

Section 1.1 proved this by induction (Theorem 1.1.2); here it falls out of the division algorithm with n=2. Logic and Proof used it in Argument A of Chapter 1 and in the proof of Logic and Proof, Theorem 2.1.3. The same uniqueness shows that no integer m has 2m=1, since 1=2⋅0+1 has remainder 1 and 2m=2m+0 has remainder 0; this is the fact Analysis on the Real Line, Chapter 1 uses to show that Z is not a field. An integer 4k+1=2(2k)+1 or 4k+3=2(2k+1)+1 is odd. With n=3, every integer is 3k, 3k+1 or 3k+2, for exactly one of the three forms.

Warning. “The remainder” is the r of the theorem, with 0≤r<n. The equations 17=5⋅4−3 and 17=5⋅2+7 are true, but −3 and 7 are not remainders, and allowing them destroys uniqueness: 17 would have the three “remainders” −3, 2 and 7. Every argument above that concludes from “remainder 1” that a number is not a multiple of 2 uses the range 0≤r<n, through uniqueness.

2.2.4. Lowest terms and prime factors

Logic and Proof, Chapter 2 needed one more fact about fractions, the fact (L) in the proof of Logic and Proof, Theorem 2.2.1: every rational number can be written with numerator and denominator not both even. The reason given there was that halving cannot go on for ever. Here is that reason as a proof. It supposes the claim fails, takes the least failure and derives a contradiction: a proof by smallest counterexample, the method of Example (Method: the least element) applied to the set of failures. Section 2.4 makes it a method of its own; here its steps are named as they occur.

Lemma 2.2.4 (Lowest Terms, Up to Factors of Two)

Every rational number can be written as p/q with p∈Z, q∈Z>0, and p and q not both even.

Idea. A representation with both entries even can be halved. Halving makes the denominator smaller, so a least denominator cannot belong to a representation that can be halved. Well-ordering supplies the least denominator.

Proof. Suppose it fails. Fix r∈Q, and suppose that r has no representation p/q with p∈Z, q∈Z>0, and p and q not both even. Let F:={q∈Z>0:r=p/q for some p∈Z}. Under the supposition, every q∈F is the denominator of a failing representation.

Take the least failure. By the definition of Q, r=p/q for some p∈Z and q∈Z>0, so F is non-empty; and F⊆Z>0⊆N. By Theorem 2.1.3, F has a least element m. Write r=p/m with p∈Z.

Use the supposition at m. The representation r=p/m fails, so p and m are both even: p=2p′ and m=2m′ with p′,m′∈Z.

Produce a smaller failure. Since m>0, m′=m/2>0, so m′∈Z>0 by Proposition 2.1.2 (b). Moreover r=2p′/(2m′)=p′/m′, so m′∈F; and m′<m′+m′=m. So m′ is an element of F smaller than its least element m, a contradiction.

Hence r has a representation of the required kind. As r∈Q was arbitrary, this proves the lemma.

This is (L), with more: the denominator can be taken positive, not merely non-zero. The proof of Logic and Proof, Theorem 2.2.1 now rests on a proved lemma. The same argument with “not both even” replaced by “no common divisor d≥2” puts every fraction in lowest terms in the full sense; that is Exercise C2. This proof is written out in full; two later exercises use the same move with less given: Exercise B2 below leaves its last step blank, and Exercise C1 of Section 2.3 leaves the last half blank.

The next result is the prime-factor fact that Logic and Proof, Chapter 8 used. Its proof is a strong induction from base 2; the same argument inside an RAA box is a smallest-counterexample proof, in which the least failure m gets a prime factor from its divisor a, contradicting the choice of m (compare Exercise B2).

Theorem 2.2.5 (Every Integer at Least Two Has a Prime Factor)

Every integer n≥2 has a prime factor.

Idea. A prime is its own prime factor. A number that is not prime has a divisor strictly between 1 and itself; that divisor is smaller, so it has a prime factor by the strong hypothesis, and divisibility passes it on.

Proof. We use Theorem 2.2.2 with n0=2. Let n≥2 be an integer, and suppose every integer k with 2≤k<n has a prime factor.

If n is prime, then n is a prime factor of itself, since n=1⋅n.

If n is not prime, then, as n≥2, it has a positive divisor a∉{1,n} (Definition 1.1.3). Write n=ka with k∈Z. Since n>0 and a>0, also k>0, so k≥1 and a≥1 by Proposition 2.1.2 (b). Hence a≤ka=n. With a≠1 and a≠n this gives 1<a<n, and so 2≤a<n by the discreteness clause of Proposition 2.1.2. By the hypothesis, a has a prime factor p, say a=lp with l∈Z. Then n=ka=(kl)p, with kl∈Z by Proposition 2.1.2 (a), so p∣n.

In both cases n has a prime factor. By Theorem 2.2.2, every integer n≥2 has one. This proves the theorem.

The hypothesis was used at a, which can be far below n−1: for n=91=7⋅13 it is used at 7 or at 13. Ordinary induction, which offers only n−1, would have nothing to say about 91 from 90.

An induction proof has few moving parts: a property, a base case, a step, and a citation of the right principle. Each can fail, and each failure has a place in the proof where it can be pointed at. Two questions are kept apart throughout: is the conclusion true, and does the argument prove it? Each entry below names the part that breaks.

Example (All Numbers Are Equal)

Here is a “theorem” and a “proof”. Find the line that fails.

“Theorem.” For every integer n≥1 and all real numbers x1,…,xn, we have x1=x2=⋯=xn.

“Proof.” For an integer n≥1, let P(n) be the statement “for all real numbers x1,…,xn, all the entries of the list x1,…,xn are equal”. We use Theorem 2.2.1 with n0=1.

  • (1) Base case. A list x1 of one number has only one entry, so all its entries are equal: P(1) holds.
  • (2) Step. Let n≥1 be an integer, suppose P(n), and let x1,…,xn+1 be real numbers.
  • (3) The list x1,…,xn has n entries, so by P(n) its entries are all equal.
  • (4) The list x2,…,xn+1 has n entries, so by P(n) its entries are all equal.
  • (5) The entry x2 lies in both lists, so every entry of either list equals x2.
  • (6) Hence x1=x2=⋯=xn+1, which is P(n+1). By Theorem 2.2.1, P(n) holds for every n≥1.

Solution. Is the conclusion true? No: the list x1=0, x2=1 has unequal entries, so P(2) is false.

Does the argument prove it? No, and the failing line is (5) at n=1. Then the two lists of lines (3) and (4) are x1 and x2, one entry each, and x2 is not in the first. They share an entry exactly when the first list, x1,…,xn, contains x2, that is, when n≥2. In the terms of Logic and Proof, Example (What is not allowed), line (5) cites a “fact” that is false in the case at hand: entry (N9).

Everything else is correct. The base case (1) is true. For every n≥2 the step (2)–(6) is valid: if all lists of n reals had equal entries, so would all lists of n+1. So the induction fails at exactly one transition, from 1 to 2, and the valid transitions from 2 on carry nothing, because P(2) is false and every later P(n) with it. A counterexample to the illegal step, as opposed to the conclusion: n=1, x1=0, x2=1, where lines (3) and (4) hold and (5) does not.

statement true? proved by the argument?
P(1) yes yes, line (1)
P(1)⇒P(2) no no: line (5) fails
P(n)⇒P(n+1) for n≥2 yes yes, lines (2)–(6)
P(n) for every n≥1 no no

This is the failure that Logic and Proof, Chapter 4’s warning about 2n≥n2 foreshadowed: a step that holds only from some point on, with a gap at the first transition. A step must be proved for every n≥n0, and the place to look for a gap is the smallest n, where the objects the step talks about are smallest.

The other failures are quicker to state.

The missing base case. “n=n+1 for every n∈N.” The step is valid: if n=n+1, adding 1 to both sides gives n+1=n+2. But P(0), “0=1”, is false, and so is every P(n). The step is a true implication between false statements, and an induction with no true base proves nothing.

The step run backwards. Claim: n2≥2n for every integer n≥2. "Step: (n+1)2≥2(n+1) gives n2+2n+1≥2n+2, so n2≥1, which is true." This starts from P(n+1) and ends at a true statement, so it shows only that P(n+1) implies something true, which every statement does (N5). Here each line can be reversed, and written forwards (n2≥1, so (n+1)2=n2+2n+1≥2n+2) it is a valid step, though one that never uses P(n). In general a backward chain cannot be reversed: from the false 1=−1, squaring gives the true 1=1.

The hypothesis used out of range. A strong induction from a base n0 may use P(k) only for n0≤k<n. A step that writes n in terms of n−3 needs n−3≥n0, and for the first few n that fails. Logic and Proof, Example (Threes and fives) handled this correctly, with three base cases; the exit check C1 below is a proof that did not.

The claim too weak to carry its own step. Sometimes the statement is true and the base case holds, but the inductive step cannot be completed, because the hypothesis gives too little. The repair is to prove more. Section 2.3 shows a sum bounded by 2 whose own step will not go through, and which a stronger bound carries.

Warning. The induction hypothesis is “P(n)” for one fixed but arbitrary n: the assumption of the →I box inside the ∀I box of the step (Logic and Proof, Definition 5.4.1). A step that begins “assume that P(n) holds for every n” assumes the conclusion of the theorem, and whatever follows is circular: entry (N9) of Logic and Proof, Example (What is not allowed). The witness is a “for every n” in the assumption that binds the induction variable n itself; it should not be there. A quantifier over another variable is part of the statement and may stay: “for every k with n0≤k<n” in strong induction, or the “for every n” inside P(m) in the proof of Lemma 2.1.1 (d), where the induction is on m.

Quick check. A proof that n2≤2n for every integer n≥4 checks n=4 and proves the step 2n2≥(n+1)2 for n≥3. Is it complete? A second proof of “n2≤2n for every n∈N” uses base 0 and the same step. Which entry of the gallery does it commit?

Solution. The first is complete: 16≤16, and the step is proved for every n≥4. The second has a true base but a step proved only from 3 on, so the transitions 0→1, 1→2, 2→3 are unproved: a step valid only from some point on, as in Example (All Numbers Are Equal). Its conclusion is false at 3 (9>8). This is Logic and Proof, Chapter 4’s warning about 2n≥n2 (recalled at the end of Example (All Numbers Are Equal)), made precise at the level of the step.

2.2.6. Exercises

A. Check your understanding

Exercise (A1)
  • (a) For each claim, name the form of proof that fits it most naturally (ordinary induction from 0, induction from another base, strong induction from a base with several base cases, or a smallest counterexample), and say in one clause why. Do not prove the claims. (i) 6∣7n−1 for every n∈N. (ii) 2n>n2 for every integer n≥5. (iii) Every integer n≥12 is 3a+7b for some integers a,b≥0. (iv) There are no m,n∈Z>0 with n2=2m2.
  • (b) Negate “every integer n≥2 has a prime factor”, and say what a smallest counterexample to it would be.
  • (c) In Example (All Numbers Are Equal), what is the smallest n for which the two lists x1,…,xn and x2,…,xn+1 of lines (3) and (4) share an entry?
  • (d) Find the error. Here is a “proof” that an=1 for every real a≠0 and every n∈N; the powers an, a0=1 and a−1=1/a have their school meaning (Section 2.3 defines an for n∈N only, so negative exponents lie outside that definition). “Fix a≠0. Base: a0=1. Step: let n∈N and suppose ak=1 for every k∈N with k≤n. Then an+1=an⋅an/an−1=1⋅1/1=1.” The conclusion is false (take a=2, n=1). Which transition fails, and why?

Solution. (a) (i) Ordinary induction from 0: the step takes out one factor 7 and leaves a multiple of 6, as in the example 7∣9n−2n in the subsection on finding the step. (ii) Induction from base 5 (Theorem 2.2.1): the claim fails at n=2,3,4, so it cannot start at 0, and the step 2n+1=2⋅2n>2n2≥(n+1)2 works for n≥5. (iii) Strong induction from base 12 with three base cases 12=3⋅4, 13=3⋅2+7, 14=7⋅2: the step reaches back three, from n to n−3. (iv) A smallest counterexample: in a solution (m,n) with least n, n2 is even, so n=2n′ is even (Logic and Proof, Theorem 2.1.3), and then m2=2n′2, so (n′,m) is a solution (n′=n/2>0) whose second entry m is smaller than n, since n2=2m2>m2 and m,n>0. (Strong induction would also do; the forms are interchangeable, and the answers above name the natural fit.)

(b) The negation is: there is an integer n≥2 with no prime factor. A smallest counterexample would be an integer m≥2 with no prime factor such that every integer k with 2≤k<m has one.

(c) n=2. For n=1 the lists are x1 and x2; for n≥2 both contain x2.

(d) The transition from 0 to 1 fails. At n=0 the step writes a1=a0⋅a0/a−1 and uses a−1=1, which is “P(−1)”; but the hypothesis covers only k∈N with k≤0, that is, k=0, and −1∉N. In fact a−1=1/a≠1 unless a=1. The base case a0=1 is true, and every transition from n≥1 on is valid, since then n−1∈N and n−1≤n, and anan/an−1=an+1 for n≥1. As in Example (All Numbers Are Equal), the valid transitions carry nothing, because P(1) is already false.

B. Practice

Exercise (B1)

Prove that 3∣n3+2n for every n∈N.

Solution. For n∈N, let P(n) be “there is k∈Z with n3+2n=3k”. Base case: 03+2⋅0=0=3⋅0. Step: let n∈N and suppose n3+2n=3k with k∈Z. Expanding the cube, (n+1)3+2(n+1)=(n3+2n)+3(n2+n+1)=3(k+n2+n+1), and k+n2+n+1∈Z by Proposition 2.1.2 (a). So P(n+1) holds. By Logic and Proof, Axiom 4.2.1, 3∣n3+2n for every n∈N. The step is the move of Example (Method: finding P(n) inside P(n+1)) with no power of the form an: the old expression plus a new piece that is visibly a multiple of 3.

Exercise (B2: Products of primes, used later)

An integer is a product of primes if it equals p1p2⋯pk for some k≥1 and primes p1,…,pk (a single prime counts, with k=1). Here p1p2⋯pk has its school meaning, and multiplying two such products gives the product of the joined list; Section 2.3 defines finite products (Definition 2.3.1). Here is a proof that every integer n≥2 is a product of primes, with its last step blank. Name the move, then complete it.

Suppose not. Then the set F of integers n≥2 that are not products of primes is non-empty and has the integer lower bound 2, so it has a least element m by Corollary 2.1.5. Since a prime is a product of primes, m is not prime; as m≥2, it has a positive divisor a∉{1,m}, and m=ab with b∈Z. As in the proof of Theorem 2.2.5, b>0 and 2≤a<m. Since a<m=ab and a>0, we get b>1, so b≥2 by the discreteness clause of Proposition 2.1.2; and since a≥2, b<2b≤ab=m. So 2≤a<m and 2≤b<m, and as m is the least element of F, neither a nor b lies in F: both are products of primes.

…

Solution. The move is the smallest counterexample, and the blank is the contradiction: the least failure m turns out not to be a failure, because its smaller factors are not failures (compare Lemma 2.2.4, where the contradiction is a smaller element of F). Write a=p1⋯pk and b=p1′⋯pl′ with primes pi, pj′. Then m=ab=p1⋯pkp1′⋯pl′ is a product of primes, which contradicts m∈F. Hence F is empty, and every integer n≥2 is a product of primes.

Exercise (B3, used later)
  • (a) Find the quotient and remainder of Theorem 2.2.3 for a=17, n=5, and for a=−17, n=5.
  • (b) Prove that the square of an odd integer leaves remainder 1 on division by 8.
  • (c) Prove that if 2∣n and 3∣n, then 6∣n, for every integer n.

Hint for (c): Theorem 2.2.3, dividing by 3.

Solution. (a) 17=5⋅3+2, so q=3, r=2. And −17=5⋅(−4)+3, so q=−4, r=3; in both cases 0≤r<5, so by uniqueness these are the quotient and remainder. (Not −17=5⋅(−3)−2: a remainder is never negative.)

(b) Let x=2k+1 with k∈Z. Then x2=4k2+4k+1=4k(k+1)+1. By Theorem 2.2.3 with n=2, k=2j or k=2j+1 with j∈Z. In the first case k(k+1)=2⋅j(2j+1); in the second, k(k+1)=(2j+1)(2j+2)=2(2j+1)(j+1). Either way k(k+1)=2t with t∈Z, so x2=8t+1. Since 0≤1<8, the uniqueness in Theorem 2.2.3 says that the remainder of x2 on division by 8 is 1.

(c) Let n=2a with a∈Z, and divide a by 3: a=3q+r with q,r∈Z and 0≤r<3, so r∈{0,1,2} by discreteness. Then n=6q+2r. Since 3∣n, say n=3s with s∈Z, we get 2r=3(s−2q), so 3∣2r, where 2r∈{0,2,4}. But 2=3⋅0+2 and 4=3⋅1+1 have non-zero remainders on division by 3, while a multiple 3t=3t+0 has remainder 0; by uniqueness, neither 2 nor 4 is a multiple of 3. So 2r=0, r=0, and n=6q: 6∣n.

Exercise (B4: Prove or disprove)

Prove each true statement and refute each false one with a counterexample. Powers and finite sums have their school meaning (Section 2.3 defines them), as in the example 7∣9n−2n.

  • (a) 3∣22n+1+1 for every n∈N.
  • (b) 2n≥n3 for every integer n≥9.
  • (c) 1+4+7+⋯+(3n+1)=(n+1)(3n+2)/2 for every n∈N.
  • (d) Every integer n≥10 is 3a+7b for some integers a,b≥0.
  • (e) 5n≥4n+3n for every integer n≥2.
  • (f) n2+1 is prime for every even integer n≥2.

Solution.

  • (a) True. By Logic and Proof, Axiom 4.2.1. Base: 21+1=3=3⋅1. Step: if 22n+1+1=3k with k∈Z, then 22n+3+1=4⋅22n+1+1=4(22n+1+1)−3=3(4k−1), and 4k−1∈Z.

  • (b) False. At n=9: 29=512<729=93. (The inequality holds from 10 on: 210=1024≥1000, and 2n3≥(n+1)3 for n≥10. The claim fails only at its base.)

  • (c) True. By Logic and Proof, Axiom 4.2.1. Base n=0: 1=1⋅2/2. Step: split off the last term. If the sum up to 3n+1 is (n+1)(3n+2)/2, the sum up to 3(n+1)+1=3n+4 is (n+1)(3n+2)2+(3n+4)=3n2+11n+102=(n+2)(3n+5)2, which is the formula at n+1.

  • (d) False. Take n=11. With b=0 or b=1 what is left, 11−7b, is 11 or 4, and neither is a multiple of 3: 11=3⋅3+2 and 4=3⋅1+1 have non-zero remainders, so by the uniqueness in Theorem 2.2.3 they are not of the form 3a+0. With b≥2, 11−7b<0, so a<0.

  • (e) True. By Theorem 2.2.1 with base 2. Base: 25≥16+9. Step: let n≥2 with 5n≥4n+3n. Then 5n+1=5⋅5n≥5⋅4n+5⋅3n≥4⋅4n+3⋅3n=4n+1+3n+1. (The step works for every n, but the inequality fails at n=1, 5<7, and at n=0, 1<2, and the claim is asserted only from 2, so the base is 2.)

  • (f) False. Take n=8: 82+1=65=5⋅13, with the positive divisor 5∉{1,65}. For n=2,4,6 the values 5, 17, 37 are prime: three successes, then a failure (N1).

C. Going deeper

Exercise (C1: Exit check: a flawed induction)

Here is a claim and a “proof”.

Claim. Every integer n≥18 is 4a+7b for some integers a,b≥0.

  • (1) For an integer n≥18, let P(n) be “n=4a+7b for some integers a,b≥0”. We use strong induction from base 18 (Theorem 2.2.2).
  • (2) Base case. 18=4⋅1+7⋅2, so P(18) holds.
  • (3) Step. Let n≥18 be an integer, and suppose P(k) holds for every integer k with 18≤k≤n.
  • (4) Write n+1=(n−3)+4.
  • (5) Since n−3<n, the induction hypothesis gives n−3=4a+7b with integers a,b≥0.
  • (6) Then n+1=4(a+1)+7b, with a+1≥0 and b≥0, so P(n+1) holds.
  • (7) By Theorem 2.2.2, P(n) holds for every integer n≥18.

Answer each question. (i) Is the claim true? (ii) Does the argument prove it? (iii) Which line fails, and for which n? (iv) Which rule does that line break? (v) Give a counterexample to the failing step, not merely to some conclusion. (vi) Repair the proof.

Solution. (i) The claim is true. Directly, 18=4⋅1+7⋅2,19=4⋅3+7,20=4⋅5,21=7⋅3, and from these four the repaired induction in (vi) reaches every larger integer.

(ii) The argument does not prove it, although its conclusion is true.

(iii) Line (5) fails for n=18, 19 and 20. There n−3 is 15, 16, 17, all below 18, and the induction hypothesis says nothing about them. For n≥21, 18≤n−3<n, and line (5) is correct. Lines (1)–(4), (6) and (7) are correct. Line (7) needs one remark, because the step is written from n to n+1 and not in the theorem’s own form. At N=18 the theorem’s hypothesis has a vacuous “if” part, so it asks for P(18) outright, which is line (2). At an integer N≥19, put n=N−1≥18. By the discreteness clause of Proposition 2.1.2, the integers k with 18≤k<N are exactly those with 18≤k≤n, so lines (3)–(6), were they valid for every n≥18, would prove the hypothesis at N.

(iv) Line (5) applies ∀E to the hypothesis “for every integer k with 18≤k≤n, P(k)” at k=n−3. That is a bounded quantifier, and its elimination needs the line “18≤n−3” (Logic and Proof, Proposition 6.1.1); for n≤20 that line is false. The proof checked only half of the bound, n−3<n.

(v) Run the same argument with base 14=7⋅2: it “proves” that every integer n≥14 is 4a+7b. That conclusion is false at 17: with b=0,1,2 the remainder 17−7b is 17,10,3, none a multiple of 4, and b≥3 makes it negative. The step that breaks is line (5) at n=16: it takes P(13) from the hypothesis, but 13<14 is outside it, and 13 is not of the form (13 and 6 are not multiples of 4). At n=16 the induction hypothesis is true (14=7⋅2, 15=4⋅2+7, 16=4⋅4), and the step concludes the false P(17). So line (5) is an illegal step, not merely an unlucky one.

(vi) Take four base cases, 18,19,20,21, as in (i), and run the step only for n≥21, where n−3≥18. In the form of Theorem 2.2.2: for n∈{18,19,20,21}, P(n) holds directly; for n≥22, n−4≥18 and n−4<n, so the hypothesis gives n−4=4a+7b and n=4(a+1)+7b.

Marking scheme. (10 points) - 2: judges the conclusion true, with the small cases 18, 19, 20, 21 written as 4a+7b. - 3: identifies the failing line exactly: the appeal to the hypothesis for n−3, for n=18,19,20. - 2: states the reason as a hypothesis used outside its range (∀E at a k with k<18). - 2: gives a counterexample to the step: the same step carrying a true statement to a false one (for example, base 14 and the failure at 17), not merely a false conclusion. - 1: gives a correct repair (four base cases, or any equivalent). Fatal errors (0 for the item): calling the conclusion false; blaming the base case.

Exercise (C2: Lowest terms, used later)

Prove that every rational number can be written as p/q with p∈Z, q∈Z>0, and no common divisor d≥2 of p and q: there is no integer d≥2 with d∣p and d∣q.

Solution (Hint 1). Follow the proof of Lemma 2.2.4, step by step.

Solution (Hint 2). Suppose r∈Q has no such representation, and let m be the least element of F:={q∈Z>0:r=p/q for some p∈Z}.

Solution. Fix r∈Q, and suppose that r has no representation of the required kind. Let F be as in Hint 2. By the definition of Q, F is non-empty, and F⊆Z>0⊆N, so by Theorem 2.1.3 it has a least element m. Write r=p/m with p∈Z.

By the supposition, this representation fails: there is an integer d≥2 with d∣p and d∣m, say p=dp′ and m=dm′ with p′,m′∈Z. Since m>0 and d>0, m′=m/d>0, so m′∈Z>0 by Proposition 2.1.2 (b). Then r=dp′/(dm′)=p′/m′, so m′∈F. And m=dm′≥2m′>m′, since d≥2 and m′>0. So m′ is an element of F smaller than its least element, a contradiction. Hence r has a representation p/q with no common divisor d≥2.

The statement contains Lemma 2.2.4, since d=2 is one of the excluded common divisors. The only change in the proof is the size of the step down: m′=m/d instead of m/2, and d≥2 is what makes it a step down.

Marking scheme. (10 points) - 2: sets up the smallest counterexample: fixes r, supposes no good representation, and defines the set of denominators. - 2: shows that set is a non-empty subset of N and takes its least element by Theorem 2.1.3. - 3: extracts the common divisor d≥2 and writes the reduced representation p′/m′, checking m′∈Z>0. - 2: shows m′<m, using d≥2 and m′>0. - 1: concludes, with the contradiction to the choice of m. A strong induction on the denominator earns the same points step for step. Fatal errors (0 for the step): taking a least element of a set not shown to lie in N; dividing by d without d≠0.

Exercise (C3: Smallest, not largest)
  • (a) Prove that a set A⊆R has at most one least element.
  • (b) Deduce that a claim “P(n) for every n∈N” that is false has exactly one smallest counterexample.
  • (c) Show that a false claim about N need not have a largest counterexample, by examining the claim “n<5 for every n∈N”.

Solution. (a) Let m and m′ be least elements of A. Since m′∈A and m is least, m≤m′; since m∈A and m′ is least, m′≤m. Hence m=m′.

(b) The smallest counterexamples are the least elements of the set F:={n∈N:P(n) is false}. The claim is false, so F is non-empty, and Theorem 2.1.3 gives a least element. By (a), there is only one.

(c) The claim is false, and its counterexamples form F={n∈N:n≥5}, which is non-empty. It has no greatest element: for every n∈F, also n+1∈N by (NS), and n+1≥5, so n+1∈F and n+1>n. So the claim has a smallest counterexample, 5, and no largest one. Well-ordering has no upward twin in N: a non-empty subset of N has a greatest element when it is bounded above (Exercise (C1: A greatest element from a least upper bound)), and not in general.