Lecture 1 - Proof Techniques - Induction and Contradiction

Why Proofs?

This is a theory course, and in a theory course the proof is the deliverable. A proof is a complete chain of reasoning that starts from definitions and previously proved facts and ends at the claim, written so that a skeptical reader can check every step without trusting you. Examples, pictures, and intuition are how we find proofs, and they will appear all over these notes, but they are never the proof itself: checking a claim for the first million cases does not establish it for all cases, and Lecture 2 will show claims that hold for every case anyone has ever checked yet resist all known proofs.

Two habits will be enforced all semester, in every problem set and on every exam:

  1. Be wordy; err on the side of detail. Write for a skeptical reader: justify each step, name the fact or assumption it uses, and spell out reasoning you might be tempted to wave off as obvious. Extra detail never costs you; a gap does.
  2. Label the skeleton of the proof. Say what you are assuming, say what you are trying to show, and when the technique has named parts (base case, inductive hypothesis, inductive step), label them.

Every example below follows both habits; hold your own write-ups in the exercises at the end of each lecture, and on the exams, to the same standard.

Direct Proof

The plainest way to prove "if PP, then QQ" is to assume PP, then reason forward until QQ appears. One tiny example, done in full, to fix the format.

Definition. An integer nn is even if n=2kn = 2k for some integer kk, and odd if n=2k+1n = 2k + 1 for some integer kk.

Example 1: the sum of two odd integers is even

Claim. If mm and nn are odd integers, then m+nm + n is even.

Proof. By the definition of odd, there must be integers jj and kk such that m=2j+1m = 2j + 1 and n=2k+1n = 2k + 1. Then

m+n=(2j+1)+(2k+1)=2(j+k+1).m + n = (2j + 1) + (2k + 1) = 2(j + k + 1).

Since j+k+1j + k + 1 is an integer, m+nm + n matches the definition of even. \blacksquare

What to notice

The entire proof is definitions and algebra. We never say "odd plus odd is clearly even". Instead, we produce the integer (j+k+1j + k + 1) that the definition of even demands.

Example 1's skeleton is not a one-off. The next two facts reuse it, and both feed directly into the 2\sqrt{2} proof later in this lecture.

Your turn in class

We will build Examples 2 and 3 together on the board, with volunteers leading. Try each one yourself before reading the write-up; the versions here are for checking your work afterward.

Example 2: if nn is odd, then n2n^2 is odd

Claim. If nn is an odd integer, then n2n^2 is odd.

Proof. By the definition of odd, there must be an integer kk such that n=2k+1n = 2k + 1. Then

n2=(2k+1)2=4k2+4k+1=2(2k2+2k)+1.n^2 = (2k + 1)^2 = 4k^2 + 4k + 1 = 2(2k^2 + 2k) + 1.

Since 2k2+2k2k^2 + 2k is an integer, n2n^2 matches the definition of odd. \blacksquare

What to notice

Same skeleton as Example 1: start with the definition, do the algebra, move things around so that the definition of the conclusion appears.

Example 3: if n2n^2 is even, then nn is even

Try proving this directly and you hit a wall: assuming n2n^2 is even gives an equation about n2n^2, and there is no clean algebraic road from a fact about n2n^2 down to a fact about nn.

The way out is the contrapositive: the statement "if PP, then QQ" is true exactly when "if not QQ, then not PP" is true, because each one says there is no situation where PP is true and QQ is false. Proving either form proves both.

Claim. If nn is an integer and n2n^2 is even, then nn is even.

Proof. We prove the contrapositive: if nn is not even, then n2n^2 is not even. Every integer is either even or odd and not both (divide by 2 and look at the remainder, which is 0 or 1), so "not even" means odd, and the contrapositive reads: if nn is odd, then n2n^2 is odd. That is exactly Example 2, already proved. Since a statement and its contrapositive are equivalent, the claim holds. \blacksquare

What to notice

Two lessons. First, when the hypothesis hands you nothing workable, flip to the contrapositive so the assumption arrives in usable form: "nn is odd" gives you n=2k+1n = 2k + 1 to compute with, while "n2n^2 is even" gives an equation about the wrong quantity. Second, the proof cited Example 2 instead of reproving it: proofs are built from previously proved facts, and a precise citation is good style, not laziness. Keep Example 3 on a shelf; the 2\sqrt{2} proof uses it.

Proof by Contradiction

To prove a statement PP by contradiction, we assume PP is false and derive something impossible. Valid steps from a true assumption can only produce truths, so if the derivation lands on something impossible, the assumption must have been false, and PP is true. The general approach is:

  1. Announce it: "Suppose, for the sake of contradiction, that PP is false."
  2. Write out exactly what "not PP" says.
  3. Derive a statement that is obviously false.
  4. Conclude PP.

Example 4: there is no smallest positive rational number

Definition. A real number xx is rational if x=a/bx = a/b for some integers aa and bb with b0b \neq 0, and irrational otherwise.

Claim. There is no smallest positive rational number.

Proof. Suppose, for the sake of contradiction, that there does exist a smallest positive rational number. Let's call it qq. By the definition of rational, q=a/bq = a/b for some integers aa and bb with b0b \neq 0. Then q/2=a/(2b)q/2 = a/(2b), and since 2b2b is a nonzero integer, q/2q/2 is rational by that same definition. Moreover, half of a positive number is positive, so 0<q/20 < q/2, and since qq is positive, q/2<qq/2 < q. So q/2q/2 is a positive rational smaller than the smallest positive rational, which is impossible. Therefore, no smallest positive rational exists. \blacksquare

Example 5: 2\sqrt{2} is irrational

Claim. 2\sqrt{2} is irrational.

Proof. Suppose, for contradiction, that 2\sqrt{2} is rational. Then 2=a/b\sqrt{2} = a/b for some integers a,ba, b with b0b \neq 0. A rational number has many such forms (1/2=2/4=3/6=1/2 = 2/4 = 3/6 = \cdots), and we are free to pick which form to work with, so pick one in lowest terms, meaning aa and bb share no common factor greater than 1. Why is this possible? If our aa and bb do share a common factor d>1d > 1, divide both by dd: the fraction's value is unchanged and the numerator shrinks. Repeating this cannot go on forever (the numerator's absolute value gets strictly smaller each time), so it eventually stops, and it stops exactly when no common factor greater than 1 remains. We may therefore assume from the start that aa and bb share no common factor greater than 1. Squaring both sides and clearing denominators:

2b2=a2.2b^2 = a^2.

So a2a^2 is even. By Example 3, aa is even, say a=2ca = 2c. Substituting: 2b2=4c22b^2 = 4c^2, so b2=2c2b^2 = 2c^2, so b2b^2 is even, so bb is even. Now aa and bb are both even, contradicting the choice that they share no common factor greater than 1. Hence 2\sqrt{2} is irrational. \blacksquare

What to notice

Three moves carried the proof: taking the fraction in lowest terms (always extract the strongest form of your assumption), the lemma from Example 3 (small direct proofs get reused inside big ones), and parity bookkeeping. The same skeleton proves 3\sqrt{3}, 5\sqrt{5}, or k\sqrt{k} for any kk that is not a perfect square, with the parity argument replaced by divisibility by a prime factor of kk. The problem set asks you to run that generalization.

Common failure modes

The most common mistake is assuming the conclusion (using 2\sqrt 2's irrationality somewhere inside the argument), and negating the claim incorrectly (the negation of "xx is irrational" is "x=a/bx = a/b for some integers", not "for all"). If your contradiction proof never uses the negated assumption, it is actually a direct proof (or it is wrong).

Induction

Induction proves statements of the form "for every natural number nn0n \geq n_0, P(n)P(n) holds."

Principle of mathematical induction. Let P(n)P(n) be a statement about a natural number nn, and let n0n_0 be a natural number. If

  1. P(n0)P(n_0) holds (base case), and
  2. for every nn0n \geq n_0, if P(n)P(n) holds then P(n+1)P(n+1) holds (inductive step, where the assumption "P(n)P(n) holds" is the inductive hypothesis),

then P(n)P(n) holds for every nn0n \geq n_0.

Why do these two parts cover every case? The base case establishes the claim for one concrete value, n0n_0. On its own that proves nothing about the rest. The inductive step is what reaches them: it shows that truth at any value forces truth at the next one, so the base case sets off a chain. P(n0)P(n_0) holds by the base case; the inductive step applied at n0n_0 then gives P(n0+1)P(n_0 + 1); applied again it gives P(n0+2)P(n_0 + 2); and every nn0n \geq n_0 is reached after finitely many of these hand-offs. The usual picture is a line of dominoes: the base case tips the first one, and the inductive step guarantees each domino knocks over the next.

In this course an induction proof must label all three parts. Here is the template at full detail.

Example 6: the sum of the first nn positive integers

Claim. For every n1n \geq 1: i=1ni=n(n+1)2\displaystyle\sum_{i=1}^{n} i = \frac{n(n+1)}{2}.

Proof. By induction on nn. Let P(n)P(n) be the statement i=1ni=n(n+1)/2\sum_{i=1}^{n} i = n(n+1)/2.

Base case (n=1n = 1). The left side is 11; the right side is 12/2=11 \cdot 2 / 2 = 1. Equal, so P(1)P(1) holds.

At this point we know the claim holds for one value, n=1n = 1, and nothing more. The inductive step must supply every remaining case. We do this by showing that the claim holding at any nn forces it to hold at n+1n + 1: combined with the base case, that reaches 22, then 33, and so on through every n1n \geq 1.

Inductive step. Let n1n \geq 1 and assume the inductive hypothesis P(n)P(n): i=1ni=n(n+1)/2\sum_{i=1}^{n} i = n(n+1)/2. We must show P(n+1)P(n+1). Splitting off the last term of the sum and applying the hypothesis:

i=1n+1i=(i=1ni)+(n+1)=n(n+1)2+(n+1)=(n+1)(n+2)2,\sum_{i=1}^{n+1} i = \left(\sum_{i=1}^{n} i\right) + (n+1) = \frac{n(n+1)}{2} + (n+1) = \frac{(n+1)(n+2)}{2},

which is exactly P(n+1)P(n+1). By induction, P(n)P(n) holds for all n1n \geq 1. \blacksquare

What to notice

The inductive step has a fixed rhythm: peel off the last piece, apply the hypothesis to what remains, do algebra until the target appears. Note where the hypothesis was used; if your inductive step never uses the inductive hypothesis, you did not write an induction proof, and you should either be suspicious or notice you found a direct proof.

Example 7: guess the formula, then prove it

Induction shines when paired with a guess-then-verify workflow.

Question. What is 1+3+5++(2n1)1 + 3 + 5 + \cdots + (2n - 1), the sum of the first nn odd numbers?

Compute small cases: 11, 1+3=41+3 = 4, 1+3+5=91+3+5 = 9, 1+3+5+7=161+3+5+7 = 16.

The values are 1,4,9,161, 4, 9, 16: perfect squares!

Claim. For every n1n \geq 1: i=1n(2i1)=n2\displaystyle\sum_{i=1}^{n} (2i - 1) = n^2.

Proof. By induction on nn. Base case (n=1n=1): both sides are 11. Inductive step: let n1n \geq 1, assume i=1n(2i1)=n2\sum_{i=1}^{n}(2i-1) = n^2, and split off the last term:

i=1n+1(2i1)=n2+(2(n+1)1)=n2+2n+1=(n+1)2.  \sum_{i=1}^{n+1} (2i - 1) = n^2 + (2(n+1) - 1) = n^2 + 2n + 1 = (n+1)^2. \;\blacksquare
What to notice

The computation of small cases is scratch work and proves nothing, but it gives you a hint at where to start.

Example 8: the base case is a choice

Induction does not have to start at 11, and sometimes it cannot.

Claim. For every n5n \geq 5: 2n>n22^n > n^2.

First, why 55? Check small cases: at n=2,3,4n = 2, 3, 4 we get 4=44 = 4, 8<98 < 9, 16=1616 = 16, so the claim is false! At n=5n = 5 we get 32>2532 > 25.

Proof. By induction on nn. Base case (n=5n = 5): 25=32>25=522^5 = 32 > 25 = 5^2.

Inductive step. Let n5n \geq 5 and assume 2n>n22^n > n^2. We must show 2n+1>(n+1)22^{n+1} > (n+1)^2. Justifying every link:

2n+1=22ndefinition of powers>2n2inductive hypothesis (2n>n2)=n2+n2n2+5nsince n5, so nn5n>n2+2n+1since 5n=2n+3n2n+3>2n+1=(n+1)2.factoring  \begin{aligned} 2^{n+1} &= 2 \cdot 2^n && \text{definition of powers} \\ &> 2n^2 && \text{inductive hypothesis } (2^n > n^2) \\ &= n^2 + n^2 \\ &\geq n^2 + 5n && \text{since } n \geq 5 \text{, so } n \cdot n \geq 5n \\ &> n^2 + 2n + 1 && \text{since } 5n = 2n + 3n \geq 2n + 3 > 2n + 1 \\ &= (n+1)^2. && \text{factoring} \;\blacksquare \end{aligned}
What to notice

The inductive step is a chain of inequalities, and every link is justified by either the hypothesis or the standing assumption n5n \geq 5. When a problem asks you for the smallest valid starting point n0n_0, small-case checking finds the candidate and the induction certifies everything from it onward. This idea will return with force in Lecture 4 - Asymptotic Notation and Growth Rates, where "eventually, for all large nn" is the whole subject.

A famous failure mode: all horses are the same color

Induction can go wrong in a way that is easy to miss, and the classic demonstration is a "proof" of something absurd. Read it and try to find the flaw before continuing; every step will look reasonable.

"Claim." In any group of nn horses, all the horses are the same color.

"Proof." By induction on nn. Base case (n=1n = 1): a group of one horse is trivially all one color. Inductive step: let n1n \geq 1 and assume any group of nn horses is all one color. Take any group of n+1n + 1 horses, numbered 11 through n+1n+1. Removing horse 11 leaves the group {2,,n+1}\{2, \ldots, n+1\} of nn horses, all one color by the hypothesis. Removing horse n+1n+1 instead leaves the group {1,,n}\{1, \ldots, n\}, also all one color by the hypothesis. The two groups share horses 22 through nn, so both groups have the color of the shared horses, and all n+1n + 1 horses are the same color. By induction, every group of horses is monochrome, so all horses are the same color. "\blacksquare"

The flaw: the gluing move needs the two groups to overlap. The shared horses {2,,n}\{2, \ldots, n\} carry the color from one group to the other, but when n=1n = 1 (that is, going from 11 horse to 22), the two groups are {2}\{2\} and {1}\{1\} and the shared set is empty: nothing links the two horses' colors. The inductive step is perfectly valid for every n2n \geq 2 and fails only at n=1n = 1, which is exactly the hand-off the base case feeds. The chain never gets started, and one broken link is all it takes.

Strong induction

Sometimes P(n+1)P(n+1) does not follow from P(n)P(n) but from earlier cases further back. Strong induction allows that.

Principle of strong induction. Let P(n)P(n) be a statement about a natural number nn0n \geq n_0. If for every nn0n \geq n_0, the implication "if P(k)P(k) holds for all n0k<nn_0 \leq k < n, then P(n)P(n) holds" is true, then P(n)P(n) holds for every nn0n \geq n_0. (The base case is the n=n0n = n_0 instance of the implication, where the hypothesis is vacuous and P(n0)P(n_0) must be shown outright.)

Example 9: every integer at least 2 is a product of primes

Definition. An integer p2p \geq 2 is prime if its only positive divisors are 11 and pp. A single prime counts as a product of primes (a product with one factor).

Claim. Every integer n2n \geq 2 is a product of primes.

Proof. By strong induction on nn. Let n2n \geq 2 and assume every integer kk with 2k<n2 \leq k < n is a product of primes. If nn is prime, it is a product of primes by itself. Otherwise, nn has a divisor other than 11 and nn, so n=abn = ab with 2a,b<n2 \leq a, b < n. By the inductive hypothesis applied to each factor, aa and bb are products of primes, so their product nn is too. \blacksquare

What to notice

Ordinary induction is helpless here: knowing that nn factors into primes says nothing about n+1n + 1. The factors aa and bb land somewhere unpredictable below nn. Strong induction allows us to use any earlier case. Note the case nn prime plays the role of a base case scattered through the integers. Strong induction reappears in Unit 1 as structural induction on automata and grammars, where "earlier cases" become "smaller machines and subexpressions."

Example 10: there are infinitely many primes

The capstone: a proof by contradiction that also uses the strong-induction fact we just proved.

Claim. There are infinitely many primes.

Proof. Suppose, for the sake of contradiction, that there are only finitely many primes. List all of them as p1,p2,,pmp_1, p_2, \ldots, p_m. Let

N=p1p2pm+1.N = p_1 p_2 \cdots p_m + 1.

Since N2N \geq 2, Example 9 says NN is a product of primes, so some prime pp divides NN. That pp appears on our list, so pp also divides the product p1p2pmp_1 p_2 \cdots p_m. Then pp divides the difference Np1p2pm=1N - p_1p_2\cdots p_m = 1, which is impossible for a prime. So the list could not have contained all primes, and thus there must be infinitely many. \blacksquare

What to notice

Two techniques in one proof: contradiction supplies the finite list, and the previously proved induction fact supplies the prime divisor of NN. Proofs compose; this is why we insist small facts get proved cleanly and cited, not rederived fuzzily inline. A common misreading: the proof does not claim NN itself is prime (it often is not), only that its prime divisors are new.

Quantifiers

Every definition in this course is a quantified statement: to prove "for all xx, P(x)P(x)" you take an arbitrary xx; to prove "there exists xx with P(x)P(x)" you exhibit one; and to prove either by contradiction you must negate it correctly. The negation rules:

  • not (for all xx: P(x)P(x)) is: there exists xx with not P(x)P(x).
  • not (there exists xx with P(x)P(x)) is: for all xx: not P(x)P(x).

When quantifiers are nested, apply these rules one layer at a time: the "not" starts outside, moves past each quantifier in turn (flipping for-all to there-exists and there-exists to for-all), and finally lands on the innermost statement. For example:

not (for all x, there exists y with P(x,y))=there exists x with, not (there exists y with P(x,y))=there exists x such that for all y: not P(x,y).\begin{aligned} &\text{not } (\text{for all } x \text{, there exists } y \text{ with } P(x, y)) \\ &\quad = \text{there exists } x \text{ with, not } (\text{there exists } y \text{ with } P(x, y)) \\ &\quad = \text{there exists } x \text{ such that for all } y \text{: not } P(x, y). \end{aligned}

The quantifiers keep their order; only their flavors flip, and the "not" ends up attached to the innermost claim, where it usually simplifies (not "f(n)cg(n)f(n) \leq c \cdot g(n)" becomes "f(n)>cg(n)f(n) > c \cdot g(n)"). Order itself matters too: "every lock has a key that opens it" and "there is a key that opens every lock" are different claims.

You will use this mechanically in Lecture 4 - Asymptotic Notation and Growth Rates: the definition of f(n)=O(g(n))f(n) = O(g(n)) has the form "there exist cc and n0n_0 such that for all nn0n \geq n_0, f(n)cg(n)f(n) \leq c \cdot g(n)", so proving a function is not O(g(n))O(g(n)) means proving "for all cc and n0n_0 there exists nn0n \geq n_0 with f(n)>cg(n)f(n) > c \cdot g(n)": given an arbitrary cc and n0n_0, you must produce a specific nn0n \geq n_0 that violates the inequality. The same discipline is the entire content of the pumping lemma arguments in Lecture 7 - The Pumping Lemma and Nonregular Languages.

Exercises

These are not collected or graded, they are your study material! The warm-ups and exams will look alot like them. Each exercise is a variation of an example above.

Exercise 1

Prove that the sum of an odd integer and an even integer is odd (see Example 1).

Solution

Let mm be odd and nn be even. By the definitions, there must be integers jj and kk such that m=2j+1m = 2j + 1 and n=2kn = 2k. Then

m+n=(2j+1)+2k=2(j+k)+1.m + n = (2j + 1) + 2k = 2(j + k) + 1.

Since j+kj + k is an integer, m+nm + n matches the definition of odd. \blacksquare

Exercise 2

Prove by contradiction that there is no largest negative rational number (see Example 4).

Solution

Suppose, for the sake of contradiction, that there does exist a largest negative rational number; call it qq. By the definition of rational, q=a/bq = a/b for some integers aa and bb with b0b \neq 0. Then q/2=a/(2b)q/2 = a/(2b), and since 2b2b is a nonzero integer, q/2q/2 is rational. Moreover, half of a negative number is negative, so q/2<0q/2 < 0, and since qq is negative, q<q/2q < q/2. So q/2q/2 is a negative rational larger than the largest negative rational, which is impossible. Therefore, no largest negative rational exists. \blacksquare

Exercise 3

Prove that 3\sqrt{3} is irrational (see Example 5). Where does your argument break if you try to run it on 4\sqrt{4}?

Solution

First a lemma mirroring Example 3: if n2n^2 is divisible by 3, then nn is divisible by 3. We prove the contrapositive. If nn is not divisible by 3, then n=3k+1n = 3k + 1 or n=3k+2n = 3k + 2 for some integer kk. In the first case n2=9k2+6k+1=3(3k2+2k)+1n^2 = 9k^2 + 6k + 1 = 3(3k^2 + 2k) + 1; in the second n2=9k2+12k+4=3(3k2+4k+1)+1n^2 = 9k^2 + 12k + 4 = 3(3k^2 + 4k + 1) + 1. Either way n2n^2 leaves remainder 1, so it is not divisible by 3.

Now suppose, for the sake of contradiction, that 3\sqrt{3} is rational, and write 3=a/b\sqrt{3} = a/b in lowest terms. Squaring and clearing denominators gives 3b2=a23b^2 = a^2, so a2a^2 is divisible by 3, so aa is divisible by 3 by the lemma, say a=3ca = 3c. Substituting gives 3b2=9c23b^2 = 9c^2, so b2=3c2b^2 = 3c^2, so bb is divisible by 3 too. Both aa and bb divisible by 3 contradicts lowest terms. \blacksquare

Where it breaks for 4\sqrt{4}: the lemma fails with 4 in place of 3. From "a2a^2 is divisible by 4" you cannot conclude "aa is divisible by 4" (take a=2a = 2). And indeed 4=2/1\sqrt{4} = 2/1 satisfies 4b2=a24b^2 = a^2 with a=2a = 2, b=1b = 1 in lowest terms, no contradiction anywhere. The prime-ness of 3 is what powers the lemma.

Exercise 4

Prove by induction that for every n1n \geq 1: i=1ni2=n(n+1)(2n+1)6\displaystyle\sum_{i=1}^{n} i^2 = \frac{n(n+1)(2n+1)}{6} (Example 6's rhythm).

Solution

By induction on nn. Let P(n)P(n) be the statement i=1ni2=n(n+1)(2n+1)/6\sum_{i=1}^{n} i^2 = n(n+1)(2n+1)/6.

Base case (n=1n = 1). The left side is 11; the right side is 123/6=11 \cdot 2 \cdot 3 / 6 = 1. Equal, so P(1)P(1) holds.

Inductive step. Let n1n \geq 1 and assume the inductive hypothesis P(n)P(n). Splitting off the last term and applying the hypothesis:

i=1n+1i2=n(n+1)(2n+1)6+(n+1)2=(n+1)[n(2n+1)+6(n+1)]6=(n+1)(2n2+7n+6)6=(n+1)(n+2)(2n+3)6,\sum_{i=1}^{n+1} i^2 = \frac{n(n+1)(2n+1)}{6} + (n+1)^2 = \frac{(n+1)\left[n(2n+1) + 6(n+1)\right]}{6} = \frac{(n+1)(2n^2 + 7n + 6)}{6} = \frac{(n+1)(n+2)(2n+3)}{6},

which is exactly P(n+1)P(n+1) (substitute n+1n+1 into the formula and compare). By induction, P(n)P(n) holds for all n1n \geq 1. \blacksquare

Exercise 5

Prove by induction that n3nn^3 - n is divisible by 33 for every n1n \geq 1 (Example 6's rhythm with different algebra).

Solution

By induction on nn. Let P(n)P(n) be the statement "n3nn^3 - n is divisible by 3," that is, n3n=3mn^3 - n = 3m for some integer mm.

Base case (n=1n = 1). 131=0=301^3 - 1 = 0 = 3 \cdot 0, so P(1)P(1) holds.

Inductive step. Let n1n \geq 1 and assume the inductive hypothesis: n3n=3mn^3 - n = 3m for some integer mm. Then

(n+1)3(n+1)=n3+3n2+3n+1n1=(n3n)+3(n2+n)=3(m+n2+n).(n+1)^3 - (n+1) = n^3 + 3n^2 + 3n + 1 - n - 1 = (n^3 - n) + 3(n^2 + n) = 3(m + n^2 + n).

Since m+n2+nm + n^2 + n is an integer, (n+1)3(n+1)(n+1)^3 - (n+1) is divisible by 3, which is P(n+1)P(n+1). By induction, P(n)P(n) holds for all n1n \geq 1. \blacksquare

Exercise 6

Find the smallest integer n0n_0 such that 2n>10n2^n > 10 n for every nn0n \geq n_0, then prove your answer by induction (Example 8, both halves).

Solution

Finding the candidate. Check small cases: 21=2102^1 = 2 \leq 10, 22=4202^2 = 4 \leq 20, 23=8302^3 = 8 \leq 30, 24=16402^4 = 16 \leq 40, 25=32502^5 = 32 \leq 50, and 26=64>602^6 = 64 > 60. So the candidate is n0=6n_0 = 6, and the failures at n=1,,5n = 1, \ldots, 5 show no smaller start works.

Certifying it by induction. Base case (n=6n = 6): 26=64>60=1062^6 = 64 > 60 = 10 \cdot 6. Inductive step: let n6n \geq 6 and assume 2n>10n2^n > 10n. Then

2n+1=22ndefinition of powers>20ninductive hypothesis=10n+10n10n+60since n6>10n+10=10(n+1).\begin{aligned} 2^{n+1} &= 2 \cdot 2^n && \text{definition of powers} \\ &> 20n && \text{inductive hypothesis} \\ &= 10n + 10n && \\ &\geq 10n + 60 && \text{since } n \geq 6 \\ &> 10n + 10 = 10(n+1). && \blacksquare \end{aligned}

Exercise 7

Write out the negation of: "for every ϵ>0\epsilon > 0 there exists δ>0\delta > 0 such that for all xx, if x<δ|x| < \delta then f(x)<ϵ|f(x)| < \epsilon." Push the negation all the way inward, one quantifier at a time.

Solution

One layer at a time, flipping each quantifier as the "not" passes it:

not (for all ϵ>0, there exists δ>0, for all xx<δ    f(x)<ϵ)=there exists ϵ>0: not (there exists δ>0, for all x)=there exists ϵ>0, for all δ>0: not (for all xx<δ    f(x)<ϵ)=there exists ϵ>0, for all δ>0, there exists x: not (x<δ    f(x)<ϵ)=there exists ϵ>0, for all δ>0, there exists xx<δ and f(x)ϵ.\begin{aligned} &\text{not } (\text{for all } \epsilon > 0 \text{, there exists } \delta > 0 \text{, for all } x \text{: } |x| < \delta \implies |f(x)| < \epsilon) \\ &\quad = \text{there exists } \epsilon > 0 \text{: not } (\text{there exists } \delta > 0 \text{, for all } x \text{: } \ldots) \\ &\quad = \text{there exists } \epsilon > 0 \text{, for all } \delta > 0 \text{: not } (\text{for all } x \text{: } |x| < \delta \implies |f(x)| < \epsilon) \\ &\quad = \text{there exists } \epsilon > 0 \text{, for all } \delta > 0 \text{, there exists } x \text{: not } (|x| < \delta \implies |f(x)| < \epsilon) \\ &\quad = \text{there exists } \epsilon > 0 \text{, for all } \delta > 0 \text{, there exists } x \text{: } |x| < \delta \text{ and } |f(x)| \geq \epsilon. \end{aligned}

The last step uses that the negation of "if PP then QQ" is "PP and not QQ": an implication fails only when the hypothesis holds and the conclusion does not.

Created · Updated
Copyright © 2026 Jared Coleman. All rights reserved.