Simulate
Check the claim with numbers
Some rules reach back two terms. Start with and , and for build the next term from the two before it: . The terms 1, 5, 19, 65 suggest a formula, .
The first seven terms match, up to 2059, and the last line prints True: all forty agree. Now keep the rule and the first term, but change the second term to 4.
The first term still fits, but from on every term misses: 4, 14, 46 against 5, 19, 65. Both starting terms matter, because the rule uses two terms at a time.
Conjecture
The sequence with , and for has, for every whole number ,
Forty terms agree. That is evidence, not a proof. A proof needs an inductive step that uses two earlier cases at once.
Strong induction
Ordinary induction (lesson PG3.1) assumes only the case before, , and proves . Here needs both and , so the step needs and together.
Strong induction allows that. Its inductive step assumes every case up to , not only the last one.
Rule: Strong induction
The induction hypothesis is that are all true. The step may use any of them, as many as it needs.
The argument of lesson PG3.1 shows that this is valid, without change. At the smallest failure , every case below is true, which is exactly what the strong step assumes. So holds after all, a contradiction.
How many base cases
Look at how far back the step reaches. Our step uses , which exists only when . So it proves only for : it gives , and so on, but never .
So and are both base cases, checked directly. The simulation showed what goes wrong without the second one. With a different , the first term still fits, but the formula fails from on.
In general, if the step reaches back cases, check the first cases directly. The step then covers every case after them.
Format 2
Fill the gap
The strong induction proof of the conjecture, with its key steps left out. Type each missing piece as you would a quick answer, such as 2^(k+1) or 7, then check.
Write for the claim . The step reaches back two terms, so the proof checks two base cases.
Base cases: , which is . And , which is . So and are true.
Inductive step: fix and assume . Since , the hypothesis includes and , so the rule gives
Collect the powers of 3: , which is .
The powers of 2 work the same way: , which is .
So , which is . The step uses , so it needs , which is why needed its own check. By strong induction, is true for every .
How to type answers
- Powers with
^, brackets round a power that is a sum:r^k,r^(k+1). - Fractions with
/and brackets:(1-r)/(1+r). Multiply with*or side by side:2k+1. - Press Enter in any box to check them all.
A step that reaches further back
In the recursion, the step looks back one or two cases. Strong induction earns its name when the step needs a case far below , and nobody can say in advance which one.
Take this claim: every whole number is a prime or a product of primes. A prime is a whole number above 1 whose only divisors are 1 and itself, such as 2, 3, 5 and 7.
Try it
factor(n) looks for a divisor of with . If it finds one, it factors the two smaller numbers and and joins the lists; if not, is prime.
84 splits into 2 and 42, then 42 into 2 and 21, and so on, giving [2, 2, 3, 7]. 83 and 97 have no such divisor, so they are prime.
The function calls itself on smaller numbers, whichever they turn out to be. The proof does the same, by strong induction starting at (lesson PG3.1 allows any start).
Base case. 2 is a prime.
Inductive step. Fix , and assume that every whole number with is a prime or a product of primes. If is prime, there is nothing to prove.
Otherwise has a divisor with , and for a whole number . Since , ; since , . So and .
By the hypothesis, and are each a prime or a product of primes. Putting the two lists of primes together writes as a product of primes.
Conclusion. By strong induction, every whole number is a prime or a product of primes.
The step needs the cases and , which may lie far below : 84 needs 2 and 42. Ordinary induction from the case 83 would not help, since 83 is prime and says nothing about 84.
Format 3
Find the error
A shorter proof of the recursion claim. One line claims more than the lines before it have shown. Select it.
Summary card
- Strong induction proves the base cases, then proves assuming all of . The step may use any earlier case.
- It is valid for the same reason as ordinary induction: at a smallest failure, every earlier case is true.
- Count the base cases. If the step reaches back cases, check the first directly: needs two.
- The sequence , , has .
- Every whole number is a prime or a product of primes. Its step uses two smaller cases, wherever they lie.