Number & Algebra
Mathematics · Cheatsheet

Number & Algebra

Chapter 2 · Proof

📋 Reference · always available
Proof
A valid step-by-step argument that establishes the truth of a mathematical statement. Examples DON'T constitute proof — they merely suggest.
Why prove?
Cautionary: f(n)=n2+n+41f(n)=n^2+n+41 gives primes for n=0,,39n = 0, \dots, 39 — then fails at n=40n=40 where f(40)=412f(40)=41^2. Patterns that hold for many cases can still be false.
Direct proof — method
Start from what's given; use algebra + known facts; reach the conclusion in steps with no leaps. Mark the end with \blacksquare.
Direct proof — even sum
2m+2n=2(m+n)2m + 2n = 2(m+n)
Sum of two evens is even. Template: 'Let m,nZm, n \in \mathbb{Z}. Then 2m,2n2m, 2n are even. Their sum is 2(m+n)2Z2(m+n) \in 2\mathbb{Z}. \blacksquare'
Algebraic forms
even:2k,  odd:2k+1,  mult of 3:3k,  3 consec:n,n+1,n+2\text{even}: 2k,\;\text{odd}: 2k+1,\;\text{mult of 3}: 3k,\;\text{3 consec}: n, n+1, n+2
Building blocks for nearly every algebraic direct proof.
Even/odd squares
p2 even    p evenp^2 \text{ even} \iff p \text{ even}
Used constantly in number-theory proofs.
Counterexample — when to use
To disprove a 'for all' statement. ONE failing case is enough; no need to find more.
Counterexample — example
'Every prime is odd' — counterexample: n=2n=2 is prime AND even. Claim disproved.
Limitation
Counterexamples DISPROVE universal claims only. They can't disprove existence claims like 'there exists xx with …'.
Contradiction — method
(1) Assume the negation of the statement. (2) Derive a logical impossibility or contradiction with known fact. (3) Conclude the original must be true. \blacksquare
$\sqrt 2$ irrational (template)
Assume 2=p/q\sqrt 2 = p/q in lowest terms. Square: p2=2q2pp^2 = 2q^2 \Rightarrow p even. Then 4k2=2q2q4k^2 = 2q^2 \Rightarrow q also even. But p,qp, q share factor 2 — contradicts 'lowest terms'.
Infinitely many primes (Euclid)
Assume primes finite: p1,,pnp_1, \dots, p_n. Let N=p1p2pn+1N = p_1 p_2 \cdots p_n + 1. Then NN has a prime divisor distinct from all pip_i — contradiction.
Induction — structure
(1) Base case: show P(1)P(1) (or P(n0)P(n_0) where the claim starts). (2) Inductive step: assume P(k)P(k), prove P(k+1)P(k+1). Conclude P(n)P(n) for all nn0n \ge n_0. \blacksquare
Induction — domino picture
Base case knocks the first domino. Inductive step says each falling domino knocks the next. Conclude: all fall. Both parts essential — omit either and the chain breaks.
Inductive hypothesis (IH)
The assumed statement P(k)P(k). To bridge to P(k+1)P(k+1): add the (k+1)(k+1)-th term to both sides (for sums), or multiply both sides by the relevant factor.
Induction — sum example
P(n):  r=1nr=n(n+1)2P(n):\;\sum_{r=1}^{n} r = \tfrac{n(n+1)}{2}
Base: 1=12/21 = 1\cdot2/2 ✓. Step: add (k+1)(k+1) to IH ⇒ k(k+1)2+(k+1)=(k+1)(k+2)2\tfrac{k(k+1)}{2} + (k+1) = \tfrac{(k+1)(k+2)}{2} ✓.
Induction — inequality example
Prove 2n>n22^n > n^2 for n5n \ge 5. Base n=5n=5: 32>2532 > 25 ✓. Step: 2k+1=22k>2k2(k+1)22^{k+1} = 2\cdot 2^k > 2k^2 \ge (k+1)^2 since 2k2(k+1)2=k22k1>02k^2-(k+1)^2 = k^2-2k-1 > 0 for k5k \ge 5.
Choosing a method — quick guide
'For all nZ+n \in \mathbb{Z}^+' → induction. 'For all xRx \in \mathbb{R}, PP' → direct proof. 'For all …' suspected false → counterexample. 'No such xx' or 'xx is irrational' → contradiction.
Pitfall (induction)
You MUST use the inductive hypothesis P(k)P(k) inside the proof of P(k+1)P(k+1). If the hypothesis is never invoked, your 'proof' isn't induction — it's just direct.
Pitfall (contradiction)
Make sure the negation is fully derived to a CONTRADICTION (e.g. 'aa both even and odd', '0=10 = 1'). Just 'this doesn't look right' is not enough.
Pitfall (counterexample)
A single example does NOT prove a 'for all' claim — it only suggests. Don't try to 'prove' by finding one positive case.