import sympy as sp
k = sp.Symbol("k", positive=True, integer=True)
left = k*(k + 1)/2 + (k + 1)
right = (k + 1)*(k + 2)/2
sp.simplify(left - right)\(\displaystyle 0\)
Mathematical induction is a proof technique for statements numbered by integers: P(1), P(2), P(3), and so on. It lets us prove infinitely many statements with a finite argument.
After this lesson you should be able to:
P(n);Imagine infinitely many dominoes in a line.
Together, these prove that every domino falls.
A basic induction proof has this structure:
P(1) or another starting case.P(k) for an arbitrary integer k in the range.P(k+1).P(n) is true for all integers in the range.The base case proves the first statement directly. If the theorem starts at n=1, prove P(1). If it starts at n=0, prove P(0).
The induction hypothesis is the temporary assumption that P(k) is true. You do not assume the final result for every n. You assume one arbitrary case so you can prove the next case.
The induction step proves
P(k) -> P(k+1)
This is the part that makes the chain continue.
Prove
1 + 2 + ... + n = n(n+1)/2
for all positive integers n.
Base case: when n=1, the left side is 1 and the right side is 1(2)/2 = 1. The base case is true.
Induction hypothesis: assume for some k >= 1 that
1 + 2 + ... + k = k(k+1)/2
Induction step: prove the formula for k+1.
1 + 2 + ... + k + (k+1)
= k(k+1)/2 + (k+1)
= (k+1)(k/2 + 1)
= (k+1)(k+2)/2
That is exactly the formula with n=k+1. Therefore the statement is true for all positive integers.
Prove that 3 divides 4^n - 1 for all n >= 1.
Base case: when n=1, 4^1 - 1 = 3, which is divisible by 3.
Induction hypothesis: assume 4^k - 1 is divisible by 3. That means 4^k - 1 = 3m for some integer m.
Induction step:
4^(k+1) - 1 = 4*4^k - 1
= 4(4^k - 1) + 3
= 4(3m) + 3
= 3(4m + 1)
So 4^(k+1)-1 is divisible by 3.
P(k+1) instead of proving it.k and k+1.n >= 0”?n=0.P(k) for an arbitrary k in the allowed range.P(k+1) from P(k).1+2+...+k with k(k+1)/2.Induction is a proof template, not a calculation trick. The goal is to show that truth starts and then passes from one case to the next.
P(n)Guess first. In “prove 1 + 2 + ... + n = n(n+1)/2,” what is P(n)?
Guided exercise.
P(n) is the whole statement depending on n:
P(n): 1 + 2 + ... + n = n(n+1)/2
You do not prove a number; you prove a statement about every allowed n.
Checkpoint. Write P(n) for the claim “2^n >= n + 1 for all n >= 1.”
Guess first. If a theorem begins at n = 1, which case is checked first?
Guided exercise.
For the sum formula:
left side at n=1: 1
right side at n=1: 1(1+1)/2 = 1
Both sides match, so the base case is true.
Checkpoint. Prove the base case for 2^n >= n + 1 when n = 1.
Guess first. During the induction step, are you allowed to assume P(k+1)?
Guided exercise.
You assume P(k) temporarily:
1 + 2 + ... + k = k(k+1)/2
Then you add the next term (k+1) to build the k+1 case. You are not allowed to assume the thing you are trying to prove.
Checkpoint. In a proof about 4^n - 1 being divisible by 3, write the induction hypothesis in the form 4^k - 1 = 3m for some integer m.
Guess first. Why does adding (k+1) help prove the sum formula?
Guided exercise.
Start from the k+1 left side and use the induction hypothesis on the first k terms:
1 + 2 + ... + k + (k+1)
= k(k+1)/2 + (k+1)
= (k+1)(k/2 + 1)
= (k+1)(k+2)/2
This is the formula with n = k+1, so truth passes to the next case.
Checkpoint. Complete the induction step for the claim 1 + 3 + 5 + ... + (2n - 1) = n^2.
P(n) is the statement 2^n >= n + 1.n = 1, 2^1 = 2 and 1 + 1 = 2, so the base case is true.4^k - 1 = 3m for some integer m.1 + 3 + ... + (2k - 1) = k^2. Then add the next odd number: k^2 + (2(k+1)-1) = k^2 + 2k + 1 = (k+1)^2.Use SymPy to check algebra in an induction step.
\(\displaystyle 0\)
A result of 0 confirms that the algebraic expressions match. It does not replace the proof structure.