Search the atlas

Mathematical induction

Build proofs by induction and check how the base case and inductive step interact with recursive definitions.

The principle of mathematical induction

Mathematical induction is a proof technique for statements indexed by the natural numbers. Here we use the convention

N={0,1,2,3,…},\mathbb N=\{0,1,2,3,\ldots\},

adopted in the entry on number systems. An induction can begin at any specified index n0∈Nn_0\in\mathbb N.

A base case starts the chain. An implication valid at every admissible index carries the result from each case to its successor.

Statement of the principle

Let P(n)P(n) be a statement defined for every n∈Nn\in\mathbb N satisfying n≥n0n\ge n_0, where n0∈Nn_0\in\mathbb N. To establish

∀n∈N,n≥n0:P(n),\forall n\in\mathbb N,\quad n\ge n_0:\quad P(n),

prove the following two claims.

First, establish the base case:

P(n0).P(n_0).

Next, establish the inductive step:

∀k∈N,k≥n0:P(k)⇒P(k+1).\forall k\in\mathbb N,\quad k\ge n_0: \quad P(k)\Rightarrow P(k+1).

Fix an arbitrary index k≥n0k\ge n_0. Temporarily assume P(k)P(k) and use that assumption to prove P(k+1)P(k+1). The assumption P(k)P(k) is the induction hypothesis. The implication is conditional: the step cannot assume the new case P(k+1)P(k+1) or the universal statement it aims to establish.

A proof for k=5k=5 or a few selected indices does not establish a step for every admissible index.

Once both base and step have been proved, induction gives

P(n)for every n∈N with n≥n0.P(n)\quad\text{for every }n\in\mathbb N\text{ with }n\ge n_0.

Building an inductive step

Keep track of what is given and what remains to be shown:

Part

Example wording

Index

“Fix an arbitrary k≥n0k\ge n_0.”

Induction hypothesis

“Assume P(k)P(k).”

Goal

“We show P(k+1)P(k+1).”

Conclusion

“The implication holds for every k≥n0k\ge n_0.”

Picture a row of dominoes. The base knocks down domino n0n_0. The step says that whenever domino kk falls, domino k+1k+1 falls too. The first fall and the continuing implication are both needed.

Example: the sum of the first positive integers

Let P(n)P(n) denote the identity

1+2+⋯+n=n(n+1)2for every n≥1.1+2+\cdots+n=\dfrac{n(n+1)}{2} \qquad \text{for every }n\ge1.

The base case P(1)P(1) reads

1=1⋅22.1=\dfrac{1\cdot2}{2}.

Fix an arbitrary k≥1k\ge1 and assume P(k)P(k):

1+2+⋯+k=k(k+1)2.1+2+\cdots+k=\dfrac{k(k+1)}{2}.

Add the next term to both sides:

1+2+⋯+k+(k+1)=k(k+1)2+(k+1)=(k+1)(k+2)2.1+2+\cdots+k+(k+1) =\dfrac{k(k+1)}{2}+(k+1) =\dfrac{(k+1)(k+2)}{2}.

The resulting expression is exactly P(k+1)P(k+1). Since the argument works for every k≥1k\ge1, the identity holds for all n≥1n\ge1.

Choosing the starting index and reaching every case

If the claim is required for n≥4n\ge4, prove the base P(4)P(4) and the step for every k≥4k\ge4. An earlier start is valid only if the statement is defined there and the implications cover the entire range. A later start leaves earlier cases to be checked separately. Alternatively, set

Q(m)=P(n0+m),m∈N,Q(m)=P(n_0+m), \qquad m\in\mathbb N,

and apply induction to QQ from m=0m=0.

Inspect the size of the step. An implication of the form

P(k)⇒P(k+2)P(k)\Rightarrow P(k+2)

gives two chains. To cover every index from n0n_0 onwards, establish both P(n0)P(n_0) and P(n0+1)P(n_0+1) and prove the step for every k≥n0k\ge n_0. In general, a step of size rr requires a starting case for each of the rr residue classes to be covered.

If the step starts only at k≥n1>n0k\ge n_1>n_0, the initial cases from n0n_0 through n1n_1 must be supplied. The shape and starting point of the implication determine how many base cases are needed.

Strong induction

In strong induction, to prove P(k+1)P(k+1) one may assume all cases from the base through index kk:

[∀j∈N,n0≤j≤k:P(j)]⇒P(k+1).\left[ \forall j\in\mathbb N,\quad n_0\le j\le k:\quad P(j) \right] \Rightarrow P(k+1).

Prove the step for every k≥n0k\ge n_0 together with the base P(n0)P(n_0). The new case P(k+1)P(k+1) is still the conclusion of the step.

To recover strong induction from ordinary induction, consider the cumulative statement

Q(k):P(n0)∧P(n0+1)∧⋯∧P(k).Q(k): \quad P(n_0)\land P(n_0+1)\land\cdots\land P(k).

In proving Q(k)⇒Q(k+1)Q(k)\Rightarrow Q(k+1), all previously established cases are retained and P(k+1)P(k+1) is added. Conversely, ordinary induction uses just P(k)P(k) among the preceding cases allowed by strong induction.

Example: factorisation into primes

We show that every integer n≥2n\ge2 is prime or is a product of primes. The base n=2n=2 holds because 22 is prime.

Suppose the claim holds for every integer from 22 through k≥2k\ge2. Consider k+1k+1. If k+1k+1 is prime, we are done. Otherwise there are integers aa and bb satisfying

k+1=ab,2≤a≤k,2≤b≤k.k+1=ab, \qquad 2\le a\le k, \qquad 2\le b\le k.

Both aa and bb are smaller integers in the induction range. Each is a prime or a product of primes. Multiplying their factorisations gives one for k+1k+1. Strong induction is convenient because the two earlier indices needed are not fixed in advance.

Recursive definitions

Recursion and induction serve different purposes:

  • A recursive definition constructs successive objects from initial data.
  • A proof by induction establishes a property of all objects in that construction.

A first-order recursion defining a sequence in a set SS may take the form

a0∈S,an+1=G(n,an)for every n≥0.a_0\in S, \qquad a_{n+1}=G(n,a_n) \quad \text{for every }n\ge0.

If GG is defined on all admissible inputs and maps each into SS, the initial value and update determine a unique term at every step. Without a0a_0, many sequences can satisfy the rule. If GG is undefined at some reachable point or leaves SS, the construction can break down.

A standard explicit recurrence of order rr requires rr initial terms:

a0,a1,…,ar−1∈S,a_0,a_1,\ldots,a_{r-1}\in S, an+r=G(n,an,an+1,…,an+r−1)for every n≥0.a_{n+r} =G(n,a_n,a_{n+1},\ldots,a_{n+r-1}) \quad \text{for every }n\ge0.

For example, the Fibonacci sequence is defined by

F0=0,F1=1,Fn+2=Fn+1+Fnfor every n≥0.F_0=0, \qquad F_1=1, \qquad F_{n+2}=F_{n+1}+F_n \quad \text{for every }n\ge0.

Its two initial values determine F2F_2, then F3F_3, and so on. The factorial also has a recursive definition:

0!=1,(n+1)!=(n+1)n!for every n≥0.0!=1, \qquad (n+1)!=(n+1)n! \quad \text{for every }n\ge0.

To describe the running sum from the earlier example, set

s0=0,sn+1=sn+(n+1)for every n≥0.s_0=0, \qquad s_{n+1}=s_n+(n+1) \quad \text{for every }n\ge0.

Induction then proves the explicit formula

sn=n(n+1)2.s_n=\dfrac{n(n+1)}{2}.

The entry on recursive sequences discusses initial values, order, closed forms, convergence and stability.

Connection with well-ordering

On the natural numbers, induction is equivalent to the well-ordering principle: every nonempty subset of N\mathbb N has a least element.

Suppose PP fails somewhere and let mm be the least counterexample. The base rules out m=n0m=n_0, so m>n0m>n_0. By the minimality of mm, the preceding case P(m−1)P(m-1) holds. The step then gives P(m)P(m), a contradiction. The linked entry proves both directions of the equivalence.

Invariants, termination and modelling

Induction extends a specification from an initial state through an arbitrary sequence of updates. It can establish invariants for software, networks, modular structures or numerical schemes of any finite size. Choose a statement strong enough to support the next step.

For an iterative algorithm, prove that the initial state satisfies the invariant and each update preserves it. This establishes partial correctness. To rule out an infinite loop or recursion, prove termination separately, for example by finding a decreasing rank in a well-founded set.

An index can count nodes, messages, layers or time steps. Match the base to the smallest admissible configuration and check that adding a component preserves the interface assumptions. If the update changes those assumptions, revise the invariant or the model.

Strong induction is useful in dynamic programming, recursive decomposition and higher-order recurrences. Every earlier state invoked must have a smaller index and be covered by the hypotheses. An uninitialised dependency may reveal both an implementation problem and a gap in a proof.

State the domain, initial indices, invariant and transition, including exceptional cases and larger step sizes. Tests can find errors, while a universal implication covers arbitrarily many configurations. Termination and agreement with the physical system are separate questions.

Common errors

Error

Consequence

Omitting the base

The step supplies no starting case.

Choosing a base whose chain misses n0n_0

Some required indices remain uncovered.

Proving the step only for selected values of kk

The step must hold for an arbitrary admissible index.

Assuming P(k+1)P(k+1)

This assumes the very case to be proved.

Using a step of size rr with just one base

Other residue classes may be missed.

Checking many numerical examples

A finite list cannot establish the universal step.

Assuming the new case during strong induction

Only earlier cases are available.

Omitting initial values or a domain in a recurrence

Existence or uniqueness of the required sequence can fail.

A real variable has no immediate successor. Induction nevertheless applies to a family indexed by n∈Nn\in\mathbb N even if every object in the family involves real numbers. There is no analogous automatic step from a real number xx to “the next real number”.

The worked problems on induction and recursion explore base cases, steps, initial indices, recurrences, strong induction and well-ordering, including incomplete proof attempts.

See well-ordering, sequences, recursive sequences, factorials and binomial coefficients.

Worked problems on induction and recursion

These problems apply induction, recursive sequences and well-ordering. They draw on integer arithmetic, divisibility, fractions, proof techniques, sets and operations, number systems, orders and intervals and absolute values.

Throughout, use

N={0,1,2,…}.\mathbb N=\{0,1,2,\ldots\}.

To prove a statement from n0n_0, establish P(n0)P(n_0) and, for an arbitrary admissible n≥n0n\ge n_0, prove P(n)⇒P(n+1)P(n)\Rightarrow P(n+1). A recursive definition instead requires enough initial data and a rule using only already determined terms. Unless otherwise stated, each recurrence holds for every n∈Nn\in\mathbb N.

Nine groups progress from identifying the parts of a proof to choosing a method and repairing incomplete arguments. They cover base cases and reachability, arithmetic identities, finite sets, recursive definitions and invariants, larger steps, simultaneous induction, strong induction and well-ordering.

The problems use elementary finite sums and products, and define powers and factorials recursively before using them. A diagram compares the residue classes reached by different step sizes.

I. Anatomy of induction

Problem 1. Identifying the indexed statement

In the claim

For every n∈Nn\in\mathbb N, the number n(n+1)n(n+1) is even,

identify the statement P(n)P(n).

Aim. Separate the indexed statement from the universal quantifier.

The statement depending on the index is

P(n):n(n+1) is even.P(n):\quad n(n+1)\ \text{is even}.

The complete claim says that P(n)P(n) holds for every n∈Nn\in\mathbb N. Induction operates on the family of statements P(0),P(1),P(2),…P(0),P(1),P(2),\ldots indexed by nn.

Check. Substitution of n=3n=3 gives P(3)P(3): the number 3⋅4=123\cdot4=12 is even.

Problem 2. Identifying the index domain

Compare these statements:

  1. P(n)P(n) holds for every n∈Nn\in\mathbb N.
  2. P(x)P(x) holds for every x∈Rx\in\mathbb R.

Which one has the form required by ordinary induction?

Aim. Recognise the discrete domain on which induction operates.

The first is indexed by the natural numbers, with a first element and a successor. It therefore has the form

P(0), P(1), P(2),…P(0),\ P(1),\ P(2),\ldots

The second ranges over all real numbers. Between any two distinct reals there are infinitely many others. Moving by integer steps cannot reach every real number.

Check. Proving P(x)⇒P(x+1)P(x)\Rightarrow P(x+1) gives no step, for example, from P(0)P(0) to P(12)P\left(\dfrac{1}{2}\right).

Problem 3. Finding the starting index

Consider the claim

n2≥3nfor every n≥3.n^2\ge 3n \qquad \text{for every }n\ge3.

What is the starting index? Which statement supplies the base case?

Aim. Identify the first case that must be established.

The starting index is

n0=3.n_0=3.

Thus the base is P(3)P(3), namely

32≥3⋅3.3^2\ge3\cdot3.

Both sides equal 99, establishing the base.

Check. Verifying n=0n=0 in isolation cannot replace the required starting case 33.

Problem 4. Starting at zero

For the property

P(n):2n+1 is odd,P(n):\quad 2n+1\ \text{is odd},

state and verify the base over N\mathbb N.

Aim. Use the convention 0∈N0\in\mathbb N consistently.

No other starting index is specified, so begin with P(0)P(0):

2⋅0+1=1.2\cdot0+1=1.

The number 11 is odd, as required.

Check. Starting at n=1n=1 would leave P(0)P(0) uncovered.

Problem 5. The induction hypothesis

We want to prove

1+3+⋯+(2n−1)=n2for every n≥1.1+3+\cdots+(2n-1)=n^2 \qquad \text{for every }n\ge1.

Write the induction hypothesis for an arbitrary n≥1n\ge1.

Aim. Identify what can be assumed in the step.

The hypothesis is

1+3+⋯+(2n−1)=n2.1+3+\cdots+(2n-1)=n^2.

Assume this temporarily at an arbitrary n≥1n\ge1 to derive the next case. Assuming the formula for every index would already assume the full conclusion.

Check. The new summand 2n+12n+1 belongs to n+1n+1, not to the hypothesis.

Problem 6. The target of the step

For the same property, write out P(n+1)P(n+1).

Aim. Replace every relevant occurrence of the old index.

The new final odd number is

2(n+1)−1=2n+1.2(n+1)-1=2n+1.

Thus the target identity is

1+3+⋯+(2n−1)+(2n+1)=(n+1)2.1+3+\cdots+(2n-1)+(2n+1)=(n+1)^2.

Check. Replacing n+1n+1 only on the right would leave the sum on the left at the old index.

Problem 7. Putting a proof in order

Arrange these statements in logical order:

  1. Therefore P(n)P(n) holds for every n≥1n\ge1.
  2. Assume P(n)P(n) for arbitrary n≥1n\ge1.
  3. Verify P(1)P(1).
  4. Use the hypothesis to prove P(n+1)P(n+1).

Aim. Recognise the order of an inductive proof.

Method. Separate the starting case, the implication and the conclusion.

The correct order is:

  1. Verify P(1)P(1).
  2. Fix an arbitrary n≥1n\ge1 and assume P(n)P(n).
  3. Deduce P(n+1)P(n+1).
  4. Apply induction.

State the universal conclusion only once the base and step are established.

Check. Neither the final conclusion nor any later case is a premise of the step.

Problem 8. An arbitrary index versus a selected example

A student takes n=10n=10 and proves P(10)⇒P(11)P(10)\Rightarrow P(11). Explain why this does not suffice.

Aim. Distinguish one transition from a universally valid step.

Method. Identify the cases actually reached.

The calculation connects only

P(10)⇒P(11).P(10)\Rightarrow P(11).

The required implication must hold for every nn in the specified range:

for every n≥n0,P(n)⇒P(n+1).\text{for every }n\ge n_0,\qquad P(n)\Rightarrow P(n+1).

Choosing 1010 establishes neither the move from P(3)P(3) to P(4)P(4) nor the one from P(25)P(25) to P(26)P(26).

Check. To generalise, use an arbitrary index and avoid relying on special properties of the chosen value.

Problem 9. Where induction applies

Which statements are directly suited to ordinary induction?

  1. P(n)P(n) for every n∈Nn\in\mathbb N.
  2. Q(k)Q(k) for every integer k≥−3k\ge-3.
  3. R(x)R(x) for every x∈[0,1]x\in[0,1].
  4. S(m)S(m) for m=2,3,…,20m=2,3,\ldots,20.

Aim. Identify sets that can be traversed by successive integer steps.

Method. Find a first index and a discrete step reaching all required cases.

The first statement already has this form. For the second, reindex by setting

Q~(m):=Q(m−3),m∈N.\widetilde Q(m):=Q(m-3), \qquad m\in\mathbb N.

The third ranges over real values that integer increments cannot cover. The fourth is a finite induction with base S(2)S(2) and step S(m)⇒S(m+1)S(m)\Rightarrow S(m+1) for 2≤m<202\le m<20.

Check. Each valid application starts from a base and has a discrete chain covering its entire index set.

Problem 10. A complete proof outline

Give the quantifiers and index ranges needed to prove P(n)P(n) for every n≥4n\ge4.

Aim. Make all conditions on indices explicit.

Assumptions. The claim starts at natural index 44. Nothing is assumed about earlier cases.

Method. Separate the base, the universal step and the final inference.

Use this outline:

  1. Base. Establish P(4)P(4).
  2. Step. Fix any n∈Nn\in\mathbb N with n≥4n\ge4. Assume P(n)P(n) and prove P(n+1)P(n+1).
  3. Conclusion. By induction P(n)P(n) holds for every n∈Nn\in\mathbb N satisfying n≥4n\ge4.

The choice of an arbitrary index prevents the step from depending on a special value.

Check. The base is the first required case, and the step reaches the successor of each admissible index.

II. Base cases and reachable indices

Problem 11. The base case for the sum of the first integers

Verify the base case of the formula

1+2+⋯+n=n(n+1)2,n≥1.1+2+\cdots+n=\dfrac{n(n+1)}{2}, \qquad n\ge1.

Aim. Substitute the initial index on both sides.

At n=1n=1 the sum on the left has only the term 11. On the right,

1(1+1)2=1.\dfrac{1(1+1)}{2}=1.

so both sides agree and P(1)P(1) holds.

Check. The term 22 belongs to the next case.

Problem 12. A shifted starting point

Consider the claim

4+5+⋯+n=n(n+1)2−6,n≥4.4+5+\cdots+n=\dfrac{n(n+1)}{2}-6, \qquad n\ge4.

Verify its base case.

Aim. Interpret a sum whose first and last terms coincide.

At n=4n=4 the left side is 44. The right side is

4⋅52−6=10−6=4.\dfrac{4\cdot5}{2}-6=10-6=4.

establishing the base P(4)P(4).

Check. The notation 4+⋯+44+\cdots+4 denotes one term, not an empty sum.

Problem 13. Failure before the starting index

Suppose n2≥3nn^2\ge3n holds for every n≥3n\ge3 but fails at n=1n=1 and n=2n=2. Can induction still start from 33?

Aim. Distinguish the claimed domain from cases outside it.

Yes. The required chain is

P(3),P(4),P(5),…P(3),P(4),P(5),\ldots

The truth of P(1)P(1) and P(2)P(2) is irrelevant to a claim restricted to n≥3n\ge3. The base P(3)P(3) must still be verified.

Check. We have 1<31<3 and 4<64<6, whereas 9=99=9 for n=3n=3.

Problem 14. A step without a base

On N\mathbb N let

P(n):n≥1.P(n):\quad n\ge1.

Show that P(n)⇒P(n+1)P(n)\Rightarrow P(n+1) holds although the universal claim fails.

Aim. Explain why a step alone cannot start the chain.

If n≥1n\ge1, then n+1≥2n+1\ge2, so P(n+1)P(n+1) holds. However,

P(0):0≥1P(0):\quad 0\ge1

is false. Nothing starts the chain at the required initial index.

Check. The counterexample n=0n=0 refutes “P(n)P(n) for every n∈Nn\in\mathbb N”.

Problem 15. A base without a step

On n≥1n\ge1 let P(n):n≤1P(n):n\le1. Check the base and find a failed step.

Aim. Show why propagation needs its own proof.

Method. Test P(1)P(1) and the first required implication.

The base holds because 1≤11\le1. At n=1n=1 the premise P(1)P(1) holds, while the conclusion

P(2):2≤1P(2):\quad 2\le1

is false. Thus P(1)⇒P(2)P(1)\Rightarrow P(2) fails.

Check. The first successor already disproves the universal claim.

Problem 16. Ten checks are insufficient

A student verifies n<100n<100 for n=0,1,…,9n=0,1,\ldots,9 and claims it holds for every natural number. Find the error.

Aim. Distinguish numerical evidence from a proof for all indices.

Method. Look for an unchecked counterexample.

The ten checks are correct. Outside the tested range, however,

n=100⟹100<100 is false.n=100 \qquad\Longrightarrow\qquad 100<100\ \text{is false}.

The proposed step also fails: n<100n<100 need not imply n+1<100n+1<100, as n=99n=99 shows.

Check. The single counterexample 100100 refutes the universal claim.

Problem 17. A base that cannot start the step

A proof claiming every n≥4n\ge4 verifies only P(1)P(1), then proves P(n)⇒P(n+1)P(n)\Rightarrow P(n+1) for n≥4n\ge4. Is it complete?

Aim. Check that the base starts a chain covered by the step.

Method. Find the first admissible premise.

The step starts at n=4n=4, so it needs P(4)P(4). The stated base P(1)P(1) yields none of P(2)P(2), P(3)P(3) or P(4)P(4), since the intervening implications have not been proved.

Repair the argument by directly checking P(4)P(4).

Check. Now P(4)P(4) implies P(5)P(5) and the chain continues.

Problem 18. Taking steps of two

Assume P(0)P(0) and

P(n)⇒P(n+2)for every n≥0.P(n)\Rightarrow P(n+2) \qquad \text{for every }n\ge0.

Which indices are guaranteed?

Aim. Identify the residue class reached by a step of two.

Method. Iterate the step from the available base.

Starting at P(0)P(0) gives

P(2),P(4),P(6),…P(2),P(4),P(6),\ldots

Every even index is reached. The assumptions supply no starting case for the odd chain, so P(1),P(3),…P(1),P(3),\ldots remain uncovered.

Check. Every index reached has the form 2k2k with k∈Nk\in\mathbb N.

Reading the figure. In the top panel, each arrow preserves the remainder modulo 22. The solid chain starts at P(0)P(0). The dashed odd chain lacks a base. The lower panel shows a step of size +3+3 and one base for each remainder.

With steps of two, starting at zero reaches only even indices. Starting at one reaches odd indices. With steps of three, the bases zero, one and two start all three residue classes.
Residue classes and bases. A step of size $+d$ preserves the remainder modulo $d$. Dots show where the chains continue. Dashes identify the odd chain, which needs the additional base $P(1)$.

Problem 19. Two bases for two chains

Assume P(0)P(0) and P(1)P(1), and suppose that for every n≥0n\ge0

P(n)⇒P(n+2).P(n)\Rightarrow P(n+2).

Show that P(m)P(m) holds for every m∈Nm\in\mathbb N.

Aim. Combine both chains generated by a step of two.

Assumptions. Every natural number is even or odd, and each class has a base.

Method. Apply the step separately at indices of the form 00 and 11.

Set

E(k):P(2k),O(k):P(2k+1).E(k):P(2k), \qquad O(k):P(2k+1).

The base of EE is P(0)P(0) and the step takes E(k)E(k) to E(k+1)E(k+1). The base of OO is P(1)P(1) and the step takes O(k)O(k) to O(k+1)O(k+1). Every natural number has one of the forms

m=2korm=2k+1.m=2k \quad\text{or}\quad m=2k+1.

In the first case P(m)P(m) follows from P(0)P(0), and in the second from P(1)P(1).

Check. The classes are disjoint and their union is all of N\mathbb N.

In the diagram of residue classes, adding P(1)P(1) starts the odd chain. Together the chains cover N\mathbb N.

Problem 20. Shifting the starting index

To prove P(n)P(n) for every n≥5n\ge5, set m=n−5m=n-5. Express the base and step in terms of mm.

Aim. Translate the induction to start at zero while reaching precisely the required indices.

Assumptions. Each n≥5n\ge5 corresponds to exactly one m=n−5∈Nm=n-5\in\mathbb N, and conversely n=m+5n=m+5.

Method. Define a reindexed statement Q(m)Q(m).

Set

Q(m):P(m+5).Q(m):\quad P(m+5).

The base Q(0)Q(0) is exactly P(5)P(5). The step becomes

Q(m)⇒Q(m+1),Q(m)\Rightarrow Q(m+1),

that is,

P(m+5)⇒P(m+6).P(m+5)\Rightarrow P(m+6).

Once Q(m)Q(m) holds for every m∈Nm\in\mathbb N, the original claim P(n)P(n) follows for every n≥5n\ge5.

Check. The case m=0m=0 corresponds to n=5n=5, not n=0n=0.

III. Arithmetic identities and inequalities

Problem 21. Sum of the first positive integers

Prove by induction:

1+2+⋯+n=n(n+1)2,n≥1.1+2+\cdots+n=\dfrac{n(n+1)}{2}, \qquad n\ge1.

Aim. Establish the sum formula at every index.

Problem 11 verified the base n=1n=1. Now assume

1+2+⋯+n=n(n+1)2.1+2+\cdots+n=\dfrac{n(n+1)}{2}.

Add the next term n+1n+1:

1+2+⋯+n+(n+1)=n(n+1)2+(n+1)=(n+1)(n2+1)=(n+1)(n+2)2.\begin{aligned} 1+2+\cdots+n+(n+1) &=\dfrac{n(n+1)}{2}+(n+1)\\ &=(n+1)\left(\dfrac{n}{2}+1\right)\\ &=\dfrac{(n+1)(n+2)}{2}. \end{aligned}

This is the formula with n+1n+1 in place of nn.

Check. For n=3n=3 the formula gives 1+2+3=61+2+3=6 and 3⋅42=6\dfrac{3\cdot4}{2}=6.

Problem 22. Sum of the first odd numbers

Prove the identity

1+3+⋯+(2n−1)=n2,n≥1.1+3+\cdots+(2n-1)=n^2, \qquad n\ge1.

Aim. Identify the next odd term in the sum.

For n=1n=1 both sides are 11. Assume the identity at an arbitrary n≥1n\ge1. The next term is 2n+12n+1, so

1+3+⋯+(2n−1)+(2n+1)=n2+2n+1=(n+1)2.\begin{aligned} 1+3+\cdots+(2n-1)+(2n+1) &=n^2+2n+1\\ &=(n+1)^2. \end{aligned}

This completes the step.

Check. At n=4n=4 the identity reads 1+3+5+7=16=421+3+5+7=16=4^2.

Problem 23. Sum of the first positive even numbers

Prove the identity

2+4+⋯+2n=n(n+1),n≥1.2+4+\cdots+2n=n(n+1), \qquad n\ge1.

Aim. Add the next even term and obtain the claimed expression.

At n=1n=1 we have 2=1⋅22=1\cdot2. Assume

2+4+⋯+2n=n(n+1).2+4+\cdots+2n=n(n+1).

The new term is 2(n+1)2(n+1), giving

2+4+⋯+2n+2(n+1)=n(n+1)+2(n+1)=(n+1)(n+2).\begin{aligned} 2+4+\cdots+2n+2(n+1) &=n(n+1)+2(n+1)\\ &=(n+1)(n+2). \end{aligned}

the required right-hand side at index n+1n+1.

Check. At n=3n=3 both sides equal 1212.

Problem 24. A progression with common difference three

Prove the identity

2+5+⋯+(3n−1)=n(3n+1)2,n≥1.2+5+\cdots+(3n-1)=\dfrac{n(3n+1)}{2}, \qquad n\ge1.

Aim. Work with an arithmetic progression written term by term.

At n=1n=1 we have 2=1(3+1)22=\dfrac{1(3+1)}{2}. Assume the formula at nn. The following term is

3(n+1)−1=3n+2.3(n+1)-1=3n+2.

hence

2+5+⋯+(3n−1)+(3n+2)=n(3n+1)2+3n+2=3n2+7n+42=(n+1)(3n+4)2.\begin{aligned} 2+5+\cdots+(3n-1)+(3n+2) &=\dfrac{n(3n+1)}{2}+3n+2\\ &=\dfrac{3n^2+7n+4}{2}\\ &=\dfrac{(n+1)(3n+4)}{2}. \end{aligned}

Since 3n+4=3(n+1)+13n+4=3(n+1)+1, the inductive step is complete.

Check. For n=3n=3, 2+5+8=152+5+8=15 and 3(10)2=15\dfrac{3(10)}{2}=15.

Problem 25. Two consecutive integers

Show that n(n+1)n(n+1) is even for every n∈Nn\in\mathbb N.

Aim. Apply induction to divisibility.

Method. Compare the products at n+1n+1 and nn.

At the base 0⋅1=00\cdot1=0 is even. Assume n(n+1)n(n+1) is even. Then

(n+1)(n+2)=n(n+1)+2(n+1).\begin{aligned} (n+1)(n+2) &=n(n+1)+2(n+1). \end{aligned}

The first summand is even by hypothesis and the second is a multiple of 22. Their sum is even.

Check. The step works for every nn and the base includes zero.

Problem 26. Three consecutive integers

Prove that

6∣n(n+1)(n+2)for every n∈N.6\mid n(n+1)(n+2) \qquad \text{for every }n\in\mathbb N.

Aim. Combine the induction hypothesis with a fact about consecutive integers.

Method. Subtract the current product from the next one.

At n=0n=0 the product is zero. Assume 6∣n(n+1)(n+2)6\mid n(n+1)(n+2). Then

(n+1)(n+2)(n+3)=n(n+1)(n+2)+3(n+1)(n+2).\begin{aligned} (n+1)(n+2)(n+3) &=n(n+1)(n+2)+3(n+1)(n+2). \end{aligned}

The first term is divisible by 66. Also (n+1)(n+2)(n+1)(n+2) is even as a product of consecutive integers. Multiplication by 33 gives a multiple of 66, so the new product is divisible by 66.

Check. At n=2n=2 the product is 2⋅3⋅4=242\cdot3\cdot4=24.

Problem 27. A square bounds its index

Prove the inequality

n2≥nfor every n∈N.n^2\ge n \qquad \text{for every }n\in\mathbb N.

Aim. Compare the increments on the two sides.

Method. Start from n2≥nn^2\ge n and determine how both sides change.

The base n=0n=0 gives 0≥00\ge0. Assuming n2≥nn^2\ge n, we obtain

(n+1)2=n2+2n+1≥n+2n+1≥n+1,\begin{aligned} (n+1)^2 &=n^2+2n+1\\ &\ge n+2n+1\\ &\ge n+1, \end{aligned}

because 2n≥02n\ge0. This proves the step.

Check. The added inequality 2n≥02n\ge0 uses n∈Nn\in\mathbb N.

Problem 28. A telescoping sum

Prove the identity

11⋅2+12⋅3+⋯+1n(n+1)=nn+1,n≥1.\dfrac{1}{1\cdot2} +\dfrac{1}{2\cdot3} +\cdots +\dfrac{1}{n(n+1)} =\dfrac{n}{n+1}, \qquad n\ge1.

Aim. Keep track of the new fractional term.

Method. Use the induction hypothesis and put the two terms over a common denominator.

At n=1n=1 both sides equal 12\dfrac{1}{2}. Assuming the formula at nn gives

nn+1+1(n+1)(n+2)=n(n+2)+1(n+1)(n+2)=(n+1)2(n+1)(n+2)=n+1n+2.\begin{aligned} \dfrac{n}{n+1} +\dfrac{1}{(n+1)(n+2)} &=\dfrac{n(n+2)+1}{(n+1)(n+2)}\\ &=\dfrac{(n+1)^2}{(n+1)(n+2)}\\ &=\dfrac{n+1}{n+2}. \end{aligned}

the required result at n+1n+1.

Check. All denominators are positive for n≥1n\ge1, so the cancellations are valid.

Problem 29. Summing products of consecutive integers

Prove the identity

1⋅2+2⋅3+⋯+n(n+1)=n(n+1)(n+2)3,n≥1.1\cdot2+2\cdot3+\cdots+n(n+1) =\dfrac{n(n+1)(n+2)}{3}, \qquad n\ge1.

Aim. Establish a cubic expression using factorisation in the step.

Method. Add (n+1)(n+2)(n+1)(n+2) and extract the common factors.

The base n=1n=1 gives 2=1⋅2⋅332=\dfrac{1\cdot2\cdot3}{3}. Assume the formula for nn:

n(n+1)(n+2)3+(n+1)(n+2)=(n+1)(n+2)(n3+1)=(n+1)(n+2)(n+3)3.\begin{aligned} \dfrac{n(n+1)(n+2)}{3} +(n+1)(n+2) &=(n+1)(n+2)\left(\dfrac{n}{3}+1\right)\\ &=\dfrac{(n+1)(n+2)(n+3)}{3}. \end{aligned}

The final expression has n+1n+1 in place of nn.

Check. At n=2n=2 the left-hand side is 2+6=82+6=8 and the right-hand side is 2⋅3⋅43=8\dfrac{2\cdot3\cdot4}{3}=8.

Problem 30. A cube minus its index

Prove the claim

6∣(n3−n)for every n∈N.6\mid(n^3-n) \qquad \text{for every }n\in\mathbb N.

Aim. Compare successive values to establish divisibility.

Method. Show that the increment is always a multiple of 66.

At n=0n=0 the expression is zero. Assume 6∣(n3−n)6\mid(n^3-n). The difference between the next and current values is

((n+1)3−(n+1))−(n3−n)=3n2+3n=3n(n+1).\begin{aligned} \bigl((n+1)^3-(n+1)\bigr)-(n^3-n) &=3n^2+3n\\ &=3n(n+1). \end{aligned}

The product n(n+1)n(n+1) is even, so 3n(n+1)3n(n+1) is divisible by 66. Adding a multiple of 66 gives another multiple of 66.

Check. At n=3n=3 the expression gives 27−3=2427-3=24.

Problem 31. Repeated doubling

For a natural number nn, define recursively

20=1,2n+1=2⋅2n.2^0=1, \qquad 2^{n+1}=2\cdot2^n.

Prove the inequality

2n≥n+1for every n∈N.2^n\ge n+1 \qquad \text{for every }n\in\mathbb N.

Aim. Use the defining recursion in an inductive inequality.

Assumptions. Use only the initial value and doubling rule for powers.

Method. Compare 2n+12^{n+1} with twice the lower bound from the hypothesis.

The base gives 20=1≥12^0=1\ge1. Assume 2n≥n+12^n\ge n+1. Then

2n+1=2⋅2n≥2(n+1)=(n+2)+n≥n+2.\begin{aligned} 2^{n+1} &=2\cdot2^n\\ &\ge2(n+1)\\ &=(n+2)+n\\ &\ge n+2. \end{aligned}

The last inequality uses n≥0n\ge0.

Check. The right side at n+1n+1 is (n+1)+1=n+2(n+1)+1=n+2, as obtained.

Problem 32. The finite triangle inequality

Let x1,…,xn∈Rx_1,\ldots,x_n\in\mathbb R, with n≥1n\ge1. Prove

∣x1+x2+⋯+xn∣≤∣x1∣+∣x2∣+⋯+∣xn∣.\lvert x_1+x_2+\cdots+x_n\rvert \le \lvert x_1\rvert+\lvert x_2\rvert+\cdots+\lvert x_n\rvert.

Aim. Extend the two-term triangle inequality to any finite sum.

Assumptions. Use the known inequality ∣a+b∣≤∣a∣+∣b∣\lvert a+b\rvert\le\lvert a\rvert+\lvert b\rvert for two reals.

Method. Separate the last summand, apply the two-term inequality and use the induction hypothesis.

For n=1n=1 there is equality. Assuming the result for nn terms gives

∣x1+⋯+xn+xn+1∣≤∣x1+⋯+xn∣+∣xn+1∣≤∣x1∣+⋯+∣xn∣+∣xn+1∣.\begin{aligned} \lvert x_1+\cdots+x_n+x_{n+1}\rvert &\le \lvert x_1+\cdots+x_n\rvert+\lvert x_{n+1}\rvert\\ &\le \lvert x_1\rvert+\cdots+\lvert x_n\rvert+\lvert x_{n+1}\rvert. \end{aligned}

The first estimate uses the two-term inequality, and the second uses induction.

Check. For n=2n=2 the statement reduces to the original two-term inequality.

IV. Finite statements in logic and set theory

Problem 33. A finite chain of implications

Suppose that, for n≥2n\ge2,

P1⇒P2,P2⇒P3,…,Pn−1⇒Pn.P_1\Rightarrow P_2,\quad P_2\Rightarrow P_3,\quad\ldots,\quad P_{n-1}\Rightarrow P_n.

Prove by induction on the number of statements that P1⇒PnP_1\Rightarrow P_n.

Aim. Extend transitivity of implication to a finite chain.

For two statements the conclusion is the given implication. Suppose a chain of nn statements gives P1⇒PnP_1\Rightarrow P_n. Adding

Pn⇒Pn+1,P_n\Rightarrow P_{n+1},

gives P1⇒Pn+1P_1\Rightarrow P_{n+1} by transitivity, completing the extension.

Check. Every link is used in the stated direction.

Problem 34. Containing a union

Let n≥1n\ge1 and A1,…,An⊆BA_1,\ldots,A_n\subseteq B. Prove

A1∪A2∪⋯∪An⊆B.A_1\cup A_2\cup\cdots\cup A_n\subseteq B.

Aim. Combine a finite family of inclusions.

For n=1n=1 the claim is A1⊆BA_1\subseteq B. Assume the union of the first nn sets lies in BB. Since also An+1⊆BA_{n+1}\subseteq B,

(A1∪⋯∪An)∪An+1⊆B.(A_1\cup\cdots\cup A_n)\cup A_{n+1}\subseteq B.

which proves the step.

Check. An element in the new union is in the old union or in An+1A_{n+1}. Either possibility puts it in BB.

Problem 35. A set contained in an intersection

Let n≥1n\ge1 and B⊆AiB\subseteq A_i for i=1,…,ni=1,\ldots,n. Prove

B⊆A1∩A2∩⋯∩An.B\subseteq A_1\cap A_2\cap\cdots\cap A_n.

Aim. Express repeated inclusions using a finite intersection.

For n=1n=1 the claim is precisely the hypothesis B⊆A1B\subseteq A_1. Assume

B⊆A1∩⋯∩An.B\subseteq A_1\cap\cdots\cap A_n.

Since B⊆An+1B\subseteq A_{n+1}, every element of BB belongs both to the old intersection and to An+1A_{n+1}. It therefore belongs to the new intersection.

Check. No equality between the sets AiA_i has been assumed.

Problem 36. Maximum of a finite list

Prove that every nonempty finite list x1,…,xnx_1,\ldots,x_n of real numbers has a maximum.

Aim. Construct the maximum by adding one element at a time.

At n=1n=1 the maximum is x1x_1. Suppose the first nn elements have maximum MM. After adding xn+1x_{n+1} the maximum is

{M,if M≥xn+1,xn+1,if xn+1>M.\begin{cases} M, & \text{if }M\ge x_{n+1},\\ x_{n+1}, & \text{if }x_{n+1}>M. \end{cases}

The real numbers are totally ordered, so one of these cases must apply.

Check. The chosen value belongs to the list and is at least as large as every element.

Problem 37. De Morgan’s law for finite unions

For a universe UU and n≥1n\ge1, prove

U∖(A1∪⋯∪An)=(U∖A1)∩⋯∩(U∖An).U\setminus(A_1\cup\cdots\cup A_n) =(U\setminus A_1)\cap\cdots\cap(U\setminus A_n).

Aim. Extend the two-set law to a finite family.

Method. Group the first nn sets and apply the two-set law.

The base n=1n=1 is immediate. Assuming the formula for nn gives

U∖((A1∪⋯∪An)∪An+1)=(U∖(A1∪⋯∪An))∩(U∖An+1)=(U∖A1)∩⋯∩(U∖An+1).\begin{aligned} U\setminus\bigl((A_1\cup\cdots\cup A_n)\cup A_{n+1}\bigr) &=\bigl(U\setminus(A_1\cup\cdots\cup A_n)\bigr) \cap(U\setminus A_{n+1})\\ &=(U\setminus A_1)\cap\cdots\cap(U\setminus A_{n+1}). \end{aligned}

Check. An element on the final right-hand side lies in none of the sets AiA_i, precisely the condition for lying outside their union.

Problem 38. De Morgan’s law for finite intersections

For n≥1n\ge1 prove

U∖(A1∩⋯∩An)=(U∖A1)∪⋯∪(U∖An).U\setminus(A_1\cap\cdots\cap A_n) =(U\setminus A_1)\cup\cdots\cup(U\setminus A_n).

Aim. Establish the complementary finite De Morgan law.

Method. Separate An+1A_{n+1} and apply the two-set identity.

The base is immediate. Assuming the formula for nn gives

U∖((A1∩⋯∩An)∩An+1)=(U∖(A1∩⋯∩An))∪(U∖An+1)=(U∖A1)∪⋯∪(U∖An+1).\begin{aligned} U\setminus\bigl((A_1\cap\cdots\cap A_n)\cap A_{n+1}\bigr) &=\bigl(U\setminus(A_1\cap\cdots\cap A_n)\bigr) \cup(U\setminus A_{n+1})\\ &=(U\setminus A_1)\cup\cdots\cup(U\setminus A_{n+1}). \end{aligned}

Check. Being outside an intersection means failing to belong to at least one of its sets.

Problem 39. Distributing intersection over union

For n≥1n\ge1 prove

B∩(A1∪⋯∪An)=(B∩A1)∪⋯∪(B∩An).B\cap(A_1\cup\cdots\cup A_n) =(B\cap A_1)\cup\cdots\cup(B\cap A_n).

Aim. Extend distributivity to a finite union.

Method. Separate the final set and apply binary distributivity.

For n=1n=1 both sides agree. Assume the formula for nn:

B∩((A1∪⋯∪An)∪An+1)=(B∩(A1∪⋯∪An))∪(B∩An+1)=(B∩A1)∪⋯∪(B∩An+1).\begin{aligned} B\cap\bigl((A_1\cup\cdots\cup A_n)\cup A_{n+1}\bigr) &=\bigl(B\cap(A_1\cup\cdots\cup A_n)\bigr) \cup(B\cap A_{n+1})\\ &=(B\cap A_1)\cup\cdots\cup(B\cap A_{n+1}). \end{aligned}

Check. Both sides describe elements of BB belonging to at least one of the sets AiA_i.

Problem 40. Distributing union over intersection

For n≥1n\ge1 prove

B∪(A1∩⋯∩An)=(B∪A1)∩⋯∩(B∪An).B\cup(A_1\cap\cdots\cap A_n) =(B\cup A_1)\cap\cdots\cap(B\cup A_n).

Aim. Extend the other distributive law.

Method. Separate the last set and use two-set distributivity.

The base is immediate. For the step,

B∪((A1∩⋯∩An)∩An+1)=(B∪(A1∩⋯∩An))∩(B∪An+1)=(B∪A1)∩⋯∩(B∪An+1).\begin{aligned} B\cup\bigl((A_1\cap\cdots\cap A_n)\cap A_{n+1}\bigr) &=\bigl(B\cup(A_1\cap\cdots\cap A_n)\bigr) \cap(B\cup A_{n+1})\\ &=(B\cup A_1)\cap\cdots\cap(B\cup A_{n+1}). \end{aligned}

Check. On either side, an element outside BB must belong to every AiA_i.

Problem 41. Absolute value of a finite product

For n≥1n\ge1 and x1,…,xn∈Rx_1,\ldots,x_n\in\mathbb R, prove

∣x1x2⋯xn∣=∣x1∣∣x2∣⋯∣xn∣.\lvert x_1x_2\cdots x_n\rvert =\lvert x_1\rvert\lvert x_2\rvert\cdots\lvert x_n\rvert.

Aim. Iterate the multiplicative property of absolute values.

Method. Separate the last factor and use ∣ab∣=∣a∣∣b∣\lvert ab\rvert=\lvert a\rvert\lvert b\rvert.

The base n=1n=1 is immediate. Assuming the identity for nn gives

∣x1⋯xnxn+1∣=∣x1⋯xn∣∣xn+1∣=∣x1∣⋯∣xn∣∣xn+1∣.\begin{aligned} \lvert x_1\cdots x_nx_{n+1}\rvert &=\lvert x_1\cdots x_n\rvert\lvert x_{n+1}\rvert\\ &=\lvert x_1\rvert\cdots\lvert x_n\rvert\lvert x_{n+1}\rvert. \end{aligned}

Check. A zero factor makes both sides zero.

Problem 42. Counting subsets

Show that a set with nn elements has 2n2^n subsets, with powers defined by 20=12^0=1 and 2n+1=2⋅2n2^{n+1}=2\cdot2^n.

Aim. Relate one new element to a doubling of the choices.

Method. Partition the subsets according to whether they contain the new element.

The empty set has one subset, giving 1=201=2^0. Let BB have n+1n+1 elements. Choose x∈Bx\in B and put A=B∖{x}A=B\setminus\{x\}. Then AA has nn elements and, by induction, 2n2^n subsets.

Each subset S⊆AS\subseteq A gives exactly two subsets of the enlarged set:

SandS∪{x}.S \qquad\text{and}\qquad S\cup\{x\}.

The two families are disjoint, each of size 2n2^n. The total is 2⋅2n=2n+12\cdot2^n=2^{n+1}.

Check. Every subset belongs to exactly one family according to whether it contains xx.

Problem 43. Counting handshakes

In a group of nn people, every pair shakes hands once. Show that the total is

Hn=n(n−1)2,n≥1.H_n=\dfrac{n(n-1)}{2}, \qquad n\ge1.

Aim. Count by tracking the change when a person joins.

Assumptions. Nobody shakes their own hand, and every pair is counted once.

Method. Add a person to a group of nn.

For n=1n=1 there are no handshakes and the formula gives zero. Assume

Hn=n(n−1)2.H_n=\dfrac{n(n-1)}{2}.

The newcomer shakes hands with the nn people already present, leaving all earlier pairs unchanged. Therefore

Hn+1=Hn+n=n(n−1)2+n=n(n+1)2.\begin{aligned} H_{n+1} &=H_n+n\\ &=\dfrac{n(n-1)}{2}+n\\ &=\dfrac{n(n+1)}{2}. \end{aligned}

which is the formula for n+1n+1 people.

Check. Four people give 4⋅32=6\dfrac{4\cdot3}{2}=6 pairs.

Problem 44. Cardinality of a finite union

For n≥1n\ge1 and finite sets A1,…,AnA_1,\ldots,A_n, prove

∣A1∪⋯∪An∣≤∣A1∣+⋯+∣An∣.\lvert A_1\cup\cdots\cup A_n\rvert \le \lvert A_1\rvert+\cdots+\lvert A_n\rvert.

Aim. Extend a two-set cardinality bound.

Assumptions. The sets may overlap arbitrarily. Use the known bound ∣A∪B∣≤∣A∣+∣B∣\lvert A\cup B\rvert\le\lvert A\rvert+\lvert B\rvert.

Method. Group the first nn sets and apply the two available bounds.

At n=1n=1 there is equality. Assuming the bound for nn sets gives

∣A1∪⋯∪An∪An+1∣≤∣A1∪⋯∪An∣+∣An+1∣≤∣A1∣+⋯+∣An∣+∣An+1∣.\begin{aligned} \lvert A_1\cup\cdots\cup A_n\cup A_{n+1}\rvert &\le \lvert A_1\cup\cdots\cup A_n\rvert+\lvert A_{n+1}\rvert\\ &\le \lvert A_1\rvert+\cdots+\lvert A_n\rvert+\lvert A_{n+1}\rvert. \end{aligned}

Check. Disjoint sets yield equality. Overlap can count an element several times on the right, which remains an upper bound.

V. Recursive definitions

Problem 45. Explicit formulas and recursive rules

Classify the descriptions:

  1. an=3n+2a_n=3n+2.
  2. b0=2b_0=2 and bn+1=bn+3b_{n+1}=b_n+3.
  3. cn=n2c_n=n^2.
  4. d0=1d_0=1, d1=1d_1=1 and dn+2=dn+1+dnd_{n+2}=d_{n+1}+d_n.

Aim. Recognise direct evaluation from the index.

In 1 and 3, the formula uses the index directly. In 2 and 4, later terms are constructed from earlier terms and initial data.

Check. Finding b4b_4 by its rule requires b1,b2,b3b_1,b_2,b_3. Finding a4a_4 only requires substituting n=4n=4.

Problem 46. A first-order recurrence

Given

a0=2,an+1=an+3.a_0=2, \qquad a_{n+1}=a_n+3.

calculate a0,a1,a2,a3,a4a_0,a_1,a_2,a_3,a_4.

Aim. Apply updates in the correct order.

Starting from the initial value gives

a0=2,a1=2+3=5,a2=5+3=8,a3=8+3=11,a4=11+3=14.\begin{aligned} a_0&=2,\\ a_1&=2+3=5,\\ a_2&=5+3=8,\\ a_3&=8+3=11,\\ a_4&=11+3=14. \end{aligned}

Check. Consecutive terms differ by 33 as prescribed.

Problem 47. A second-order recurrence

Given

b0=1,b1=2,bn+2=bn+1+bn.b_0=1, \qquad b_1=2, \qquad b_{n+2}=b_{n+1}+b_n.

calculate the terms up to b5b_5.

Aim. Use both initial values.

The terms are

b0=1,b1=2,b2=2+1=3,b3=3+2=5,b4=5+3=8,b5=8+5=13.\begin{aligned} b_0&=1,& b_1&=2,\\ b_2&=2+1=3,& b_3&=3+2=5,\\ b_4&=5+3=8,& b_5&=8+5=13. \end{aligned}

Check. Each term from b2b_2 onwards is the sum of its two predecessors.

Problem 48. Order and initial data

Find the order and minimum number of initial values for each rule:

an+1=2an−1,bn+2=bn+1+3bn,cn+3=cn+2−cn.a_{n+1}=2a_n-1, \qquad b_{n+2}=b_{n+1}+3b_n, \qquad c_{n+3}=c_{n+2}-c_n.

Aim. Relate the required history to the starting data.

Method. Identify how far each rule looks back.

The first is first order and needs one value, such as a0a_0. The second is second order and needs b0,b1b_0,b_1. The third uses terms as far back as cnc_n to generate cn+3c_{n+3}, so it is third order and needs c0,c1,c2c_0,c_1,c_2.

Check. With those initial values, the first updates produce a1a_1, b2b_2 and c3c_3, respectively.

Problem 49. A rule with no starting value

Does the rule

an+1=an+2a_{n+1}=a_n+2

determine a unique sequence?

Aim. Show what an initial condition contributes.

Method. Find two distinct sequences satisfying the same update.

If a0=0a_0=0, the sequence begins

0,2,4,6,…0,2,4,6,\ldots

Choosing a0=1a_0=1 instead gives

1,3,5,7,…1,3,5,7,\ldots

Both have increment 22, yet they differ.

Check. Specifying a single value such as a0=0a_0=0 removes this ambiguity for the given first-order recurrence.

Problem 50. One missing initial value

Consider

b0=1,bn+2=bn+1+bn.b_0=1, \qquad b_{n+2}=b_{n+1}+b_n.

Show that an initial value is missing.

Aim. Diagnose an incomplete second-order recurrence.

Method. Try to evaluate the first unassigned term.

Computing b2b_2 requires b1b_1 and b0b_0, but b1b_1 is unspecified. If b1=0b_1=0 then b2=1b_2=1, whereas if b1=2b_1=2 then b2=3b_2=3.

Check. Supplying b1b_1 determines b2b_2 and all subsequent terms.

Problem 51. Incompatible data

Examine this specification:

a0=0,a1=2,an+1=an+1(n≥0).a_0=0, \qquad a_1=2, \qquad a_{n+1}=a_n+1 \quad(n\ge0).

Aim. Detect a conflict between given terms and the update.

Method. Apply the rule at the first allowed index.

For n=0n=0 the rule requires

a1=a0+1=1.a_1=a_0+1=1.

The separate value requires a1=2a_1=2. No sequence can satisfy both.

Check. Replace a1=2a_1=2 with a1=1a_1=1 or change the rule to restore consistency.

Problem 52. An update that starts too late

Suppose

a0=4,an+1=an+2for n≥1.a_0=4, \qquad a_{n+1}=a_n+2 \quad\text{for }n\ge1.

Is the sequence uniquely determined?

Aim. Check the range of indices on which the rule applies.

Method. Identify the value needed by the first update.

Starting at n=1n=1, the rule computes a2a_2 from a1a_1. The value a1a_1 is unspecified and cannot be recovered from a0a_0. Uniqueness fails.

Two repairs are possible:

  • Start the rule at n≥0n\ge0.
  • Keep n≥1n\ge1 and also specify a1a_1.

Check. Either repair supplies every input to the first update.

Problem 53. Modelling an update process

A counter starts at 77 and increases by 44 at each stage. Write the recurrence and find its value after three updates.

Aim. Translate a discrete process into a starting value and an update.

Method. Use the index to count completed updates.

Let cnc_n be the value after nn updates. Then

c0=7,cn+1=cn+4.c_0=7, \qquad c_{n+1}=c_n+4.

The first updates give

c1=11,c2=15,c3=19.c_1=11,\qquad c_2=15,\qquad c_3=19.

Check. Index zero is the state before any update.

Problem 54. Defining the even numbers recursively

Let EE be the smallest subset of N\mathbb N satisfying

  1. 0∈E0\in E.
  2. If m∈Em\in E, then m+2∈Em+2\in E.

List the elements of EE no greater than 1010. Why say “smallest”?

Aim. Interpret a recursive set definition.

Method. Start from the base and apply the rule repeatedly.

This gives

0,2,4,6,8,10.0,2,4,6,8,10.

The smallest such set EE contains just the elements generated from the base. Without the minimality condition, all of N\mathbb N would also satisfy the two clauses.

Check. Adding 22 finitely many times produces all the listed numbers and never produces an odd number.

Problem 55. Defining powers and factorials

Let a∈R∖{0}a\in\mathbb R\setminus\{0\}. Define ana^n recursively for n∈Nn\in\mathbb N, and define n!n!. Use only these rules to find a3a^3 and 4!4!.

Aim. Construct both operations from initial values and successor rules.

Assumptions. The exponent and factorial argument are natural numbers. The power base aa is fixed.

Method. Specify the value at zero and the update at a successor.

The definitions are

a0=1,an+1=a⋅an,a^0=1, \qquad a^{n+1}=a\cdot a^n,

and

0!=1,(n+1)!=(n+1)n!.0!=1, \qquad (n+1)!=(n+1)n!.

Successive applications give

a1=a,a2=a⋅a,a3=a⋅a⋅a,1!=1,2!=2,3!=6,4!=24.\begin{aligned} a^1&=a,& a^2&=a\cdot a,& a^3&=a\cdot a\cdot a,\\ 1!&=1,& 2!&=2,& 3!&=6,& 4!&=24. \end{aligned}

Check. Each new value uses an already determined value at a smaller index.

Problem 56. Are the definitions well posed?

For each specification, decide whether it gives exactly one integer sequence. Repair it if necessary.

  1. a0=1a_0=1, an+1=an+2a_{n+1}=a_n+2.
  2. bn+1=bn−1b_{n+1}=b_n-1, with no initial value.
  3. c0=0c_0=0, c1=1c_1=1, cn+2=cn+1+cnc_{n+2}=c_{n+1}+c_n.
  4. d0=1d_0=1, dn+1=dn2d_{n+1}=\dfrac{d_n}{2}, with all dnd_n required to be integers.
  5. e0=0e_0=0, e1=3e_1=3, en+1=en+1e_{n+1}=e_n+1 for n≥0n\ge0.

Aim. Check initial values, order, compatibility and closure of the domain together.

Assumptions. Existence and uniqueness are both required in the specified domain.

Method. Check that the initial values suffice, that they agree with the first update, and that every update stays in the integers.

Case 1 works: one initial value suffices and adding 22 preserves integrality. Case 2 lacks uniqueness until b0b_0 is specified. Case 3 supplies two consistent values for a second-order rule.

In case 4 the rule gives d1=12d_1=\dfrac{1}{2}, which is not an integer. One repair is to specify dn∈Qd_n\in\mathbb Q. To keep the integer domain and the same rule, use d0=0d_0=0, the only initial value that keeps every term integral. In case 5 the rule at n=0n=0 requires e1=1e_1=1 but the separate value is 33.

Check. Cases 1 and 3 generate every term uniquely. Each remaining case fails a different requirement.

VI. Properties of recurrences

Problem 57. An arithmetic recurrence

Given

a0=2,an+1=an+3,a_0=2, \qquad a_{n+1}=a_n+3,

prove an=2+3na_n=2+3n.

Aim. Verify an explicit formula against the recurrence.

The base gives a0=2=2+3⋅0a_0=2=2+3\cdot0. Assuming an=2+3na_n=2+3n, we obtain

an+1=an+3=2+3n+3=2+3(n+1).\begin{aligned} a_{n+1} &=a_n+3\\ &=2+3n+3\\ &=2+3(n+1). \end{aligned}

Check. At n=4n=4 the formula gives 1414, agreeing with problem 46.

Problem 58. Generating the odd numbers

Suppose

o0=1,on+1=on+2.o_0=1, \qquad o_{n+1}=o_n+2.

Prove on=2n+1o_n=2n+1.

Aim. Connect the recursive construction to the explicit formula.

The base is o0=1=2⋅0+1o_0=1=2\cdot0+1. If on=2n+1o_n=2n+1, then

on+1=2n+1+2=2(n+1)+1.o_{n+1}=2n+1+2=2(n+1)+1.

Check. The first terms 1,3,5,7,…1,3,5,7,\ldots agree with the recurrence.

Problem 59. Invariance of nonnegativity

Let a0≥0a_0\ge0 and an+1=an+2a_{n+1}=a_n+2. Show that an≥0a_n\ge0 for every nn.

Aim. Prove that each update preserves a property.

The assumption a0≥0a_0\ge0 gives the base. If an≥0a_n\ge0, then

an+1=an+2≥2≥0.a_{n+1}=a_n+2\ge2\ge0.

so all terms are nonnegative by induction.

Check. No update can move a nonnegative value below zero.

Problem 60. Invariance of parity

Let a0a_0 be odd and suppose an+1=an+2a_{n+1}=a_n+2. Prove that each ana_n is odd.

Aim. Show that an even increment preserves parity.

The base is given. If an=2k+1a_n=2k+1 for an integer kk, then

an+1=2k+1+2=2(k+1)+1,a_{n+1}=2k+1+2=2(k+1)+1,

which is again odd.

Check. The new parameter k+1k+1 is an integer as required.

Problem 61. Invariance of divisibility

Suppose a0a_0 is divisible by 33 and an+1=an+6a_{n+1}=a_n+6. Show that every ana_n is divisible by 33.

Aim. Preserve the property of being a multiple.

Method. Write the current term as a multiple of 33.

The base follows from a0=3k0a_0=3k_0. Assuming an=3ka_n=3k for some integer kk gives

an+1=3k+6=3(k+2).a_{n+1}=3k+6=3(k+2).

Since k+2k+2 is integral, an+1a_{n+1} is divisible by 33.

Check. The increment 66 is itself a multiple of 33.

Problem 62. An invariant interval

Suppose

0≤a0≤1,an+1=an+12.0\le a_0\le1, \qquad a_{n+1}=\dfrac{a_n+1}{2}.

Prove 0≤an≤10\le a_n\le1 for every nn.

Aim. Keep every iterate inside the stated interval.

Method. Transform both bounds in the hypothesis together.

The starting condition is given. If 0≤an≤10\le a_n\le1, then

1≤an+1≤2.1\le a_n+1\le2.

Dividing by 2>02>0 gives

12≤an+12≤1.\dfrac{1}{2}\le\dfrac{a_n+1}{2}\le1.

In particular, 0≤an+1≤10\le a_{n+1}\le1.

Check. The new term satisfies the stronger bound an+1≥12a_{n+1}\ge\dfrac{1}{2}.

Problem 63. A bound on the absolute value

Let M≥0M\ge0 and ∣a0∣≤M\lvert a_0\rvert\le M, and suppose

an+1=an2.a_{n+1}=\dfrac{a_n}{2}.

Prove ∣an∣≤M\lvert a_n\rvert\le M for every nn.

Aim. Show that the update preserves a bound.

Method. Take absolute values in the recurrence.

The base is given. If ∣an∣≤M\lvert a_n\rvert\le M, then

∣an+1∣=∣an∣2≤M2≤M,\lvert a_{n+1}\rvert =\dfrac{\lvert a_n\rvert}{2} \le\dfrac{M}{2} \le M,

because M≥0M\ge0.

Check. The argument includes M=0M=0, in which case every term must vanish.

Problem 64. Generating squares

Suppose

q0=0,qn+1=qn+2n+1.q_0=0, \qquad q_{n+1}=q_n+2n+1.

Show that qn=n2q_n=n^2.

Aim. Recognise the explicit formula arising from successive odd increments.

Method. Substitute the induction hypothesis into the update.

The base gives q0=02q_0=0^2. If qn=n2q_n=n^2, then

qn+1=n2+2n+1=(n+1)2.q_{n+1}=n^2+2n+1=(n+1)^2.

Check. The rule produces 0,1,4,9,…0,1,4,9,\ldots as predicted.

Problem 65. Generating triangular numbers

Suppose

t0=0,tn+1=tn+n+1.t_0=0, \qquad t_{n+1}=t_n+n+1.

Prove the formula

tn=n(n+1)2.t_n=\dfrac{n(n+1)}{2}.

Aim. Relate cumulative increments to a direct expression.

Method. Add the next increment n+1n+1.

The base is t0=0t_0=0. If tn=n(n+1)2t_n=\dfrac{n(n+1)}{2}, then

tn+1=n(n+1)2+n+1=(n+1)(n+2)2.\begin{aligned} t_{n+1} &=\dfrac{n(n+1)}{2}+n+1\\ &=\dfrac{(n+1)(n+2)}{2}. \end{aligned}

Check. At n=3n=3, both recurrence and formula give t3=6t_3=6.

Problem 66. Double and add one

Suppose

a0=1,an+1=2an+1.a_0=1, \qquad a_{n+1}=2a_n+1.

Prove the following identity,

an=2n+1−1,a_n=2^{n+1}-1,

where 20=12^0=1 and 2n+1=2⋅2n2^{n+1}=2\cdot2^n.

Aim. Verify a formula involving recursively defined powers.

Method. Apply the recurrence and factor out 22.

For n=0n=0 we have a0=1=21−1a_0=1=2^1-1. If an=2n+1−1a_n=2^{n+1}-1, then

an+1=2(2n+1−1)+1=2n+2−1.\begin{aligned} a_{n+1} &=2(2^{n+1}-1)+1\\ &=2^{n+2}-1. \end{aligned}

Check. The first values 1,3,7,151,3,7,15 agree with the formula.

Problem 67. Two properties of Fibonacci numbers

Suppose

F0=0,F1=1,Fn+2=Fn+1+Fn.F_0=0,\qquad F_1=1,\qquad F_{n+2}=F_{n+1}+F_n.

Prove that all terms are natural numbers and that Fn+1≥FnF_{n+1}\ge F_n for every n≥0n\ge0.

Aim. Establish two properties that support one another.

Assumptions. The recurrence uses two predecessors. Check the starting data F0,F1F_0,F_1 and preserve nonnegativity for the comparison.

Method. Prove simultaneously that Fn,Fn+1F_n,F_{n+1} are natural numbers in nondecreasing order.

For n=0n=0 we have F0=0F_0=0, F1=1F_1=1 and F1≥F0F_1\ge F_0. Now assume Fn,Fn+1∈NF_n,F_{n+1}\in\mathbb N and Fn+1≥FnF_{n+1}\ge F_n. Then

Fn+2=Fn+1+Fn∈N.F_{n+2}=F_{n+1}+F_n\in\mathbb N.

Furthermore, since Fn≥0F_n\ge0,

Fn+2=Fn+1+Fn≥Fn+1.F_{n+2}=F_{n+1}+F_n\ge F_{n+1}.

Both properties therefore hold for the next pair.

Check. The initial terms 0,1,1,2,3,50,1,1,2,3,5 are natural numbers in nondecreasing order.

Problem 68. Uniqueness from common initial values and a common rule

Let (an)(a_n) and (bn)(b_n) be sequences satisfying

a0=b0,a1=b1,a_0=b_0,\qquad a_1=b_1,

and

an+2=an+1+an,bn+2=bn+1+bn.a_{n+2}=a_{n+1}+a_n, \qquad b_{n+2}=b_{n+1}+b_n.

Prove an=bna_n=b_n for every nn.

Aim. Establish uniqueness for this second-order recursion.

Assumptions. The sequences have the same two initial terms and update rule for all n≥0n\ge0.

Method. Propagate equality of adjacent pairs.

Equality holds at indices 00 and 11. Assume

an=bn,an+1=bn+1.a_n=b_n, \qquad a_{n+1}=b_{n+1}.

Then

an+2=an+1+an=bn+1+bn=bn+2.\begin{aligned} a_{n+2} &=a_{n+1}+a_n\\ &=b_{n+1}+b_n\\ &=b_{n+2}. \end{aligned}

Thus the pair of equalities moves from (n,n+1)(n,n+1) to (n+1,n+2)(n+1,n+2).

Check. Equality only at index zero would still allow the terms at index one to differ.

VII. Shifted bases and steps of different sizes

Problem 69. Starting at four

Prove the identity

4+5+⋯+n=n(n+1)2−6,n≥4.4+5+\cdots+n=\dfrac{n(n+1)}{2}-6, \qquad n\ge4.

Aim. Start at an index other than zero or one.

Problem 12 established the base n=4n=4. Assume the formula for an arbitrary n≥4n\ge4. Adding n+1n+1 gives

4+5+⋯+n+(n+1)=n(n+1)2−6+(n+1)=(n+1)(n+2)2−6.\begin{aligned} 4+5+\cdots+n+(n+1) &=\dfrac{n(n+1)}{2}-6+(n+1)\\ &=\dfrac{(n+1)(n+2)}{2}-6. \end{aligned}

the formula at n+1n+1.

Check. The step uses only indices n≥4n\ge4, exactly the range claimed.

Problem 70. An inequality starting at three

Prove the inequality

n2≥3nfor every n≥3.n^2\ge3n \qquad \text{for every }n\ge3.

Aim. Pick the correct base for a statement that fails at smaller positive indices.

The base n=3n=3 gives equality 9=99=9. Assume n2≥3nn^2\ge3n for some n≥3n\ge3. Then

(n+1)2−3(n+1)=n2−3n+2n−2.\begin{aligned} (n+1)^2-3(n+1) &=n^2-3n+2n-2. \end{aligned}

The first term n2−3nn^2-3n is nonnegative by hypothesis, and 2n−2≥42n-2\ge4 since n≥3n\ge3. Thus the left-hand side is nonnegative.

Check. The cases n=1n=1 and n=2n=2 fail but lie outside the claim.

Problem 71. Alternating rules

Let P(n)P(n) be a property. Assume P(0)P(0) and, for every k∈Nk\in\mathbb N, the two rules

P(2k)⇒P(2k+1),P(2k+1)⇒P(2k+2).P(2k)\Rightarrow P(2k+1), \qquad P(2k+1)\Rightarrow P(2k+2).

Prove P(n)P(n) for every natural number.

Aim. Coordinate two alternating rules.

Method. Group an even index with its odd successor in a single statement.

Define

Q(k):P(2k)∧P(2k+1).Q(k):\quad P(2k)\land P(2k+1).

From P(0)P(0), the first rule with k=0k=0 gives P(1)P(1), proving Q(0)Q(0). Now assume Q(k)Q(k). The second rule gives P(2k+2)P(2k+2), then the first rule with k+1k+1 gives P(2k+3)P(2k+3). Together these establish Q(k+1)Q(k+1).

By induction Q(k)Q(k) holds for every kk. Every index belongs to one of the pairs.

Check. The separate base P(1)P(1) is unnecessary: the first rule gives it from P(0)P(0).

Problem 72. Three base cases for a step of three

Assume P(0),P(1),P(2)P(0),P(1),P(2) and

P(n)⇒P(n+3)(n≥0).P(n)\Rightarrow P(n+3) \qquad(n\ge0).

Prove P(n)P(n) for every natural number.

Aim. Cover all three residue classes.

Method. Group indices by their remainder modulo 33.

Define

P(3k),P(3k+1),P(3k+2).P(3k),\qquad P(3k+1),\qquad P(3k+2).

The bases correspond to k=0k=0. Adding 33 preserves the remainder and advances each grouped index from kk to k+1k+1. The three inductions therefore cover every class.

Check. Every natural number has exactly one of the remainders 0,1,20,1,2 modulo 33.

The lower panel of the residue-class diagram shows the separate chains starting at P(0)P(0), P(1)P(1) and P(2)P(2).

Problem 73. Two predecessors

Suppose a property satisfies P(0)P(0), P(1)P(1) and

P(n)∧P(n+1)⇒P(n+2)(n≥0).P(n)\land P(n+1)\Rightarrow P(n+2) \qquad(n\ge0).

Why do two base cases suffice?

Aim. Match the bases to a step requiring consecutive cases.

Method. Propagate a pair of true statements.

From the initial pair (P(0),P(1))(P(0),P(1)), the rule obtains P(2)P(2), giving the new pair (P(1),P(2))(P(1),P(2)). In general the pair advances from (P(n),P(n+1))(P(n),P(n+1)) to (P(n+1),P(n+2))(P(n+1),P(n+2)).

Check. With only P(0)P(0), the first update would lack P(1)P(1).

Problem 74. Finite descending induction

Let N≥1N\ge1. Suppose P(N)P(N) and

P(k)⇒P(k−1)for 1≤k≤N.P(k)\Rightarrow P(k-1) \qquad \text{for }1\le k\le N.

Prove P(k)P(k) for every 0≤k≤N0\le k\le N.

Aim. Prove a finite chain by moving downwards.

Method. Index by distance from the upper endpoint.

Put Q(j):P(N−j)Q(j):P(N-j) for 0≤j≤N0\le j\le N. The base Q(0)Q(0) says P(N)P(N). If Q(j)Q(j) holds and j<Nj<N, then N−j≥1N-j\ge1, so the downward step gives

P(N−j−1)=Q(j+1).P(N-j-1)=Q(j+1).

Induction on jj reaches every required case through Q(N)=P(0)Q(N)=P(0).

Check. The descent stops at zero, without applying the rule at k=0k=0.

Problem 75. A chain covering only even indices

Examine the claim:

P(0)P(0) holds. If P(n)P(n) holds, then P(n+2)P(n+2) holds. Hence P(n)P(n) holds for every n∈Nn\in\mathbb N.

Evaluate and repair the conclusion.

Aim. Find the exact set of indices covered.

Method. List the reachable indices and identify the missing starting case.

The proof produces only

P(0),P(2),P(4),…P(0),P(2),P(4),\ldots

establishing P(2k)P(2k) for every k∈Nk\in\mathbb N. Add the base P(1)P(1) and apply the same step to the chain P(1),P(3),P(5),…P(1),P(3),P(5),\ldots to cover odd indices too.

Check. Each natural number now lies in exactly one of the two chains.

In the residue-class diagram, P(1)P(1) starts the odd row left uncovered by P(0)P(0).

Problem 76. An alternating recurrence

Suppose

a0=0,an+1=1−an.a_0=0, \qquad a_{n+1}=1-a_n.

Prove both identities

a2n=0,a2n+1=1(n∈N).a_{2n}=0, \qquad a_{2n+1}=1 \qquad(n\in\mathbb N).

Aim. Establish linked formulas at even and odd indices.

Assumptions. The update takes 00 to 11 and 11 to 00. Treat the two formulas as one induction state.

Method. Assume both identities at nn and calculate the next two terms.

For n=0n=0 we have a0=0a_0=0 and

a1=1−a0=1.a_1=1-a_0=1.

Assume a2n=0a_{2n}=0 and a2n+1=1a_{2n+1}=1. Then

a2n+2=1−a2n+1=0,a2n+3=1−a2n+2=1.\begin{aligned} a_{2n+2}&=1-a_{2n+1}=0,\\ a_{2n+3}&=1-a_{2n+2}=1. \end{aligned}

Since 2n+2=2(n+1)2n+2=2(n+1) and 2n+3=2(n+1)+12n+3=2(n+1)+1, the step is complete.

Check. The initial values 0,1,0,1,0,10,1,0,1,0,1 agree with both formulas.

Problem 77. Strengthening the induction claim

Prove

1+12+122+⋯+12n<2(n≥0),1+\dfrac{1}{2}+\dfrac{1}{2^2}+\cdots+\dfrac{1}{2^n}<2 \qquad(n\ge0),

by first establishing the stronger identity

1+12+122+⋯+12n=2−12n.1+\dfrac{1}{2}+\dfrac{1}{2^2}+\cdots+\dfrac{1}{2^n} =2-\dfrac{1}{2^n}.

Aim. Strengthen a bound that leaves too little information for the step.

Assumptions. Powers are defined by 20=12^0=1 and 2n+1=2⋅2n2^{n+1}=2\cdot2^n. All terms are positive.

Method. Prove the exact formula and deduce the inequality.

At n=0n=0 both sides of the identity equal 11. Assuming it at nn gives

2−12n+12n+1=2−22n+1+12n+1=2−12n+1.\begin{aligned} 2-\dfrac{1}{2^n}+\dfrac{1}{2^{n+1}} &=2-\dfrac{2}{2^{n+1}}+\dfrac{1}{2^{n+1}}\\ &=2-\dfrac{1}{2^{n+1}}. \end{aligned}

Since 12n>0\dfrac{1}{2^n}>0, the result is strictly less than 22.

Check. Knowing only that the previous sum is less than 22 gives insufficient information about the margin available for the next term.

Problem 78. Mutual induction for even and odd numbers

Let EE and OO be the smallest subsets of N\mathbb N satisfying these rules:

  • 0∈E0\in E.
  • If m∈Em\in E, then m+1∈Om+1\in O.
  • If m∈Om\in O, then m+1∈Em+1\in E.

Show that EE contains exactly the even numbers and OO exactly the odd numbers.

Aim. Coordinate two interdependent recursive definitions.

Assumptions. Minimality excludes elements that the rules do not generate. The even and odd forms are 2k2k and 2k+12k+1.

Method. Prove 2k∈E2k\in E and 2k+1∈O2k+1\in O simultaneously, then check that the rules preserve the specified parity assignments.

The base gives 0=2⋅0∈E0=2\cdot0\in E, and the second rule gives 1=2⋅0+1∈O1=2\cdot0+1\in O. Assume 2k∈E2k\in E and 2k+1∈O2k+1\in O. The third rule gives

2k+2=2(k+1)∈E,2k+2=2(k+1)\in E,

and the second gives

2k+3=2(k+1)+1∈O.2k+3=2(k+1)+1\in O.

Conversely, each update alternates parity. Even values produce odd ones, and odd values produce even ones. Minimality excludes all other elements.

Check. Every natural number has exactly one of the two parities.

VIII. Strong induction and well-ordering

Problem 79. Choosing ordinary or strong induction

Choose a natural proof method for

  1. A step using only P(n)P(n).
  2. A step using P(n)P(n) and P(n−1)P(n-1).
  3. A step reducing n+1n+1 to an unspecified earlier index.

Aim. Match the hypothesis to the dependencies of the next case.

Ordinary induction suffices in the first case. For the second, establish two bases and propagate a pair of adjacent cases by ordinary induction, or use strong induction. Strong induction is natural in the third case because the useful predecessor could be any smaller index in range.

Check. Strong induction makes earlier cases available as needed while remaining logically equivalent to ordinary induction.

Problem 80. The range of the strong induction hypothesis

We want P(n)P(n) for every n≥2n\ge2. When proving P(8)P(8), which cases may we assume and which must we prove? Give the general step.

Aim. Separate available cases from the new target.

To prove P(8)P(8), assume

P(2),P(3),P(4),P(5),P(6),P(7).P(2),P(3),P(4),P(5),P(6),P(7).

The case P(8)P(8) is the target. For arbitrary n≥2n\ge2, the general hypothesis is that

P(2),P(3),…,P(n)all hold,P(2),P(3),\ldots,P(n) \quad\text{all hold},

from which we must deduce P(n+1)P(n+1).

Check. The largest index assumed is 77, the target index is 88 and no index below 22 enters the proof.

Problem 81. Constructing natural numbers in binary

Starting with 11, allow just these two moves on a number mm already constructed:

m⟼2m,m⟼2m+1.m\longmapsto2m, \qquad m\longmapsto2m+1.

Prove by strong induction that every integer n≥1n\ge1 is reachable in finitely many moves.

Aim. Use a predecessor determined by the parity of the target.

Method. Reduce nn to a smaller natural number.

The base n=1n=1 needs no moves. Assume the integers from 11 through nn are constructible and take target n+1n+1.

If n+1=2kn+1=2k is even, then 1≤k<n+11\le k<n+1. Construct kk and apply the first move. If n+1=2k+1n+1=2k+1 is odd and greater than 11, then 1≤k<n+11\le k<n+1. Construct kk and apply the second move. The useful predecessor kk is half of n+1n+1 in the even case or half of nn in the odd case. It need not be nn.

Check. Examples include 1↦3↦6↦131\mapsto3\mapsto6\mapsto13. The move m↦2m+1m\mapsto2m+1 is one permitted operation. An independent “add one” operation was not given.

Problem 82. Tokens worth four and five

Show that every integer n≥12n\ge12 can be written as

n=4a+5b,a,b∈N.n=4a+5b, \qquad a,b\in\mathbb N.

Aim. Combine several base cases with a fixed reduction.

Method. Verify four consecutive starting values, then add a token worth 44.

The base cases are

12=4⋅3,13=4⋅2+5,14=4+5⋅2,15=5⋅3.\begin{aligned} 12&=4\cdot3,& 13&=4\cdot2+5,\\ 14&=4+5\cdot2,& 15&=5\cdot3. \end{aligned}

Suppose every integer from 1212 to nn is representable, with n≥15n\ge15. For the target n+1n+1, consider

n+1−4=n−3n+1-4=n-3

This is at least 1212 and at most nn. Write it as 4a+5b4a+5b by hypothesis. Adding one token worth 44 represents n+1n+1.

Check. The four starting cases cover all remainders for a step of size 44.

Problem 83. Tiles of lengths two and three

Using tiles of lengths 22 and 33, prove that every integer length n≥2n\ge2 can be covered without gaps or overlaps.

Aim. Build a configuration from a smaller one.

Method. Start with 22 and 33, and add a tile of length 22.

Lengths 22 and 33 each need just one tile. Assume lengths from 22 through nn are attainable, with n≥3n\ge3. For n+1n+1, consider

n+1−2=n−1.n+1-2=n-1.

Since 2≤n−1≤n2\le n-1\le n, this smaller length can be tiled. Adding a tile of length 22 gives n+1n+1.

Check. Length 11 is outside the claim and is never needed as a base.

Problem 84. The least counterexample

Let n0∈Nn_0\in\mathbb N and suppose P(n)P(n) is defined for n≥n0n\ge n_0. Assume P(n0)P(n_0) and P(n)⇒P(n+1)P(n)\Rightarrow P(n+1) for every n≥n0n\ge n_0. Recast the induction proof using well-ordering.

Aim. Express the step as a least-counterexample argument.

Method. Suppose some index violates the claim.

Define

C={n∈N:n≥n0 and P(n) is false}.C=\{n\in\mathbb N:n\ge n_0\ \text{and }P(n)\text{ is false}\}.

If CC were nonempty it would have a least element mm. The base implies m≠n0m\ne n_0, so m−1≥n0m-1\ge n_0. Minimality gives P(m−1)P(m-1), and the step implies P(m)P(m), contradicting m∈Cm\in C.

Check. Invoking a least element requires both C⊆NC\subseteq\mathbb N and the assumption that this set is nonempty.

Problem 85. Prime factorisation

Prove by strong induction that every integer n≥2n\ge2 is prime or has a finite factorisation into primes.

Aim. Use smaller factors that are not known in advance.

Method. Consider separately whether nn is prime or composite.

The base n=2n=2 holds because 22 is prime. Assume the claim for integers from 22 through nn, and consider n+1n+1.

If n+1n+1 is prime it already qualifies. Otherwise, there are integers a,ba,b with

n+1=ab,2≤a≤n,2≤b≤n.n+1=ab, \qquad 2\le a\le n, \qquad 2\le b\le n.

Both aa and bb are primes or products of primes by the strong hypothesis. Multiplying their factorisations gives one for n+1n+1.

Check. Both proper factors are smaller than n+1n+1 and inside the induction range.

Problem 86. Proving termination

Start with two positive integers a,ba,b. As long as they differ, subtract the smaller from the larger. Show that this process terminates.

Aim. Exclude infinite descent by well-ordering.

Assumptions. The entries remain positive integers: if a>ba>b the new pair is (a−b,b)(a-b,b), and the case b>ab>a is symmetric.

Method. Assign the natural-number rank a+ba+b to each state.

If a>b>0a>b>0, the new rank is

(a−b)+b=a<a+b.(a-b)+b=a<a+b.

If b>ab>a, the new rank similarly satisfies b<a+bb<a+b. The rank strictly decreases at every update.

In an infinite run there would be a least visited rank mm. Its next update would produce a smaller positive rank, a contradiction.

Check. Subtracting the smaller value only from the strictly larger one preserves positivity.

Problem 87. A least counterexample to an inequality

Prove again that

2n≥n+1(n∈N)2^n\ge n+1 \qquad(n\in\mathbb N)

using a least counterexample.

Aim. Apply well-ordering to a familiar inequality.

Assumptions. Powers are defined by 20=12^0=1 and 2n+1=2⋅2n2^{n+1}=2\cdot2^n.

Method. Suppose a first index violates the bound.

Let mm be the least natural number such that 2m<m+12^m<m+1. The base 20=12^0=1 implies m≠0m\ne0, hence m−1∈Nm-1\in\mathbb N. Minimality gives

2m−1≥m.2^{m-1}\ge m.

Doubling both sides yields

2m≥2m≥m+1,2^m\ge2m\ge m+1,

because m≥1m\ge1. This contradicts the choice of mm.

Check. Only the preceding case was assumed. The argument does not assume the conclusion for mm.

Problem 88. Comparing three methods

For the token claim in problem 82, compare

  1. Induction with a step of +4+4.
  2. Strong induction with a successor step.
  3. A least-counterexample argument.

Identify the required base cases for each proof.

Aim. Recognise the same dependencies in different proof formats.

Assumptions. The claim covers all integers n≥12n\ge12 represented by 4a+5b4a+5b.

Method. Identify the smaller case that gives each new representation.

For a step of +4+4 use the four bases 12,13,14,1512,13,14,15, one per residue class. Strong induction uses the same four bases. For n≥15n\ge15, obtain n+1n+1 from n−3n-3.

For the third proof, suppose m≥12m\ge12 is the least unrepresentable integer. The bases imply m≥16m\ge16, so the smaller integer m−4≥12m-4\ge12 is representable. Adding 44 then represents mm, a contradiction.

Check. With this fixed reduction, the proof needs a starting value for each of the four residue classes.

IX. Repairing incomplete proofs

Problem 89. A missing quantifier

A step starts “assume P(n)P(n)” and concludes P(n+1)P(n+1), without specifying nn. What is missing?

Aim. State the universal scope of the step.

The missing declaration is

let n≥n0 be an arbitrary natural number.\text{let }n\ge n_0\text{ be an arbitrary natural number}.

Otherwise nn could be a special value or an index outside the range. Prove the implication for every admissible index.

Check. “Arbitrary” and the condition n≥n0n\ge n_0 specify exactly which choices the proof covers.

Problem 90. A step in the wrong direction

A draft establishes P(0)P(0) and proves

P(n+1)⇒P(n)for every n∈N.P(n+1)\Rightarrow P(n) \qquad \text{for every }n\in\mathbb N.

Does P(n)P(n) follow for every natural number? Give a counterexample and repair the proof.

Aim. Distinguish upward and downward propagation.

Method. Ask what the given implication can establish starting from P(0)P(0).

It can give P(0)P(0) from P(1)P(1), but cannot give P(1)P(1) from P(0)P(0). For a counterexample, take

P(n):n=0.P(n):\quad n=0.

The base holds. For every natural number nn, the premise P(n+1)P(n+1) is false. Thus all implications P(n+1)⇒P(n)P(n+1)\Rightarrow P(n) hold vacuously, even though P(1)P(1) fails.

Upward induction requires P(n)⇒P(n+1)P(n)\Rightarrow P(n+1) for every n∈Nn\in\mathbb N. Downward induction on a finite interval can instead start at its upper endpoint.

Check. An implication and its converse need separate proofs.

Problem 91. A missing factor

While proving the sum of the first integers, a draft writes

n(n+1)2+(n+1)=(n+1)22.\dfrac{n(n+1)}{2}+(n+1) =\dfrac{(n+1)^2}{2}.

Find and correct the algebraic error.

Aim. Check the final simplification of an inductive step.

Method. Factor out n+1n+1 while retaining the coefficient of the added term.

The correct calculation is

n(n+1)2+(n+1)=(n+1)(n2+1)=(n+1)(n+2)2.\begin{aligned} \dfrac{n(n+1)}{2}+(n+1) &=(n+1)\left(\dfrac{n}{2}+1\right)\\ &=\dfrac{(n+1)(n+2)}{2}. \end{aligned}

The expression (n+1)22\dfrac{(n+1)^2}{2} would result from the incorrect substitution n2+1=n+12\dfrac{n}{2}+1=\dfrac{n+1}{2}.

Check. At n=1n=1 the original expression gives 33, the incorrect one 22 and the correct one 33.

Problem 92. Assuming the conclusion

A draft reads:

Assume the formula holds for n+1n+1. Substituting it on the left gives the formula for n+1n+1.

Explain the circularity and rewrite the opening step.

Aim. Distinguish the permitted hypothesis from the target.

Method. Compare their indices.

In the step from nn to n+1n+1 the ordinary hypothesis is P(n)P(n). Assuming P(n+1)P(n+1) already grants the conclusion.

Begin instead:

Fix an arbitrary n≥n0n\ge n_0 and assume P(n)P(n). Starting with the expression at n+1n+1, use P(n)P(n) to derive the required form.

Check. In the corrected proof P(n+1)P(n+1) appears only as the goal.

Problem 93. A step valid on a finite range

A proof establishes P(0)P(0) and proves

P(n)⇒P(n+1)only for 0≤n<10.P(n)\Rightarrow P(n+1) \qquad \text{only for }0\le n<10.

What is the strongest conclusion? What would be needed to establish P(n)P(n) for every natural number?

Aim. Respect the index range in the implication.

Method. Find the last index at which the premise may be used.

The base and steps for n=0,1,…,9n=0,1,\ldots,9 give exactly

P(0),P(1),…,P(10).P(0),P(1),\ldots,P(10).

No step with premise P(10)P(10) has been proved, so P(11)P(11) is beyond reach. To cover all naturals, prove P(n)⇒P(n+1)P(n)\Rightarrow P(n+1) for every n≥0n\ge0 or give another argument for all indices after 1010.

Check. A finite range of steps starting at one base proves only a finite range of cases.

Problem 94. A predecessor below the claimed domain

A proof of P(m)P(m) for every m≥4m\ge4 checks only P(4)P(4). To obtain P(n+1)P(n+1) it uses P(n−3)P(n-3). Explain the gap and repair it while keeping this dependence.

Aim. Match the base cases to the earliest required predecessor.

Method. Evaluate the indices needed by the first attempted steps.

At n=4,5,6n=4,5,6 the draft needs P(1),P(2),P(3)P(1),P(2),P(3), respectively. They are outside the claim and unavailable under hypothesis P(4),…,P(n)P(4),\ldots,P(n). The starting case P(4)P(4) alone cannot launch the chain.

Instead verify four bases:

P(4),P(5),P(6),P(7),P(4),P(5),P(6),P(7),

Apply the rule only for n≥7n\ge7. Then

4≤n−3≤n,4\le n-3\le n,

so P(n−3)P(n-3) is available and gives P(n+1)P(n+1).

Check. The first new target P(8)P(8) follows from P(4)P(4). Four starting values cover the residue classes modulo 44.

Problem 95. Four terms cannot certify a formula

Consider the recurrence

a0=1,an+1=2an.a_0=1, \qquad a_{n+1}=2a_n.

and the candidate formula

bn={2n,0≤n≤3,2n−1,n≥4.b_n= \begin{cases} 2^n, & 0\le n\le3,\\ 2^n-1, & n\ge4. \end{cases}

Why is agreement on the first four terms insufficient?

Aim. Test an expression against the update rule itself.

Method. Examine the first index outside the tested range.

For n=0,1,2,3n=0,1,2,3 both ana_n and bnb_n equal 1,2,4,81,2,4,8. But the recurrence requires

a4=2a3=16,a_4=2a_3=16,

whereas the candidate gives

b4=24−1=15.b_4=2^4-1=15.

The first disagreement is n=4n=4. To certify a closed form, show it has the same initial value and satisfies the same recurrence for every allowed index.

Check. The correct formula is an=2na_n=2^n for every natural number.

Problem 96. An invariant for a second-order recurrence

Suppose

u0=1,u1=2,un+2=un+1+2un.u_0=1, \qquad u_1=2, \qquad u_{n+2}=u_{n+1}+2u_n.

Prove the bound

1≤un≤3nfor every n∈N,1\le u_n\le3^n \qquad \text{for every }n\in\mathbb N,

and explain why checking only u0u_0 is insufficient.

Aim. Combine two base cases with positivity and an upper bound.

Assumptions. The second-order recurrence has positive coefficients. Powers satisfy 30=13^0=1 and 3n+1=3⋅3n3^{n+1}=3\cdot3^n.

Method. Check both bases and propagate positivity and the bound for adjacent terms together.

At n=0n=0,

1≤u0=1≤30.1\le u_0=1\le3^0.

At n=1n=1,

1≤u1=2≤3.1\le u_1=2\le3.

Now suppose

1≤un≤3n,1≤un+1≤3n+1.1\le u_n\le3^n, \qquad 1\le u_{n+1}\le3^{n+1}.

Positivity of the coefficients gives

un+2=un+1+2un≥1.u_{n+2}=u_{n+1}+2u_n\ge1.

For the upper bound,

un+2≤3n+1+2⋅3n=5⋅3n≤9⋅3n=3n+2.\begin{aligned} u_{n+2} &\le3^{n+1}+2\cdot3^n\\ &=5\cdot3^n\\ &\le9\cdot3^n\\ &=3^{n+2}. \end{aligned}

Both properties advance to the pair of indices n+1,n+2n+1,n+2. A proof with only base u0u_0 cannot use the step until u1u_1 has been verified.

Check. The first terms 1,2,4,8,161,2,4,8,16 satisfy the bounds 1,3,9,27,811,3,9,27,81.

Back to contents