Fibonacci Sequence
Context: FIT1058_MOC, FIT2004_MOC ยท a two-term recurrence with no obvious closed form ยท bounded by Mathematical Induction ยท closed form built from a quadraticโs roots FIT2004 use: ยง4 and the Proof Blueprint (Applied 2 P7) โ the matrix identity and the doubling identities that turn the naive recursion into a halving one โ Analysing Recursive Algorithms (Time and Auxiliary Space)
Quick Revision
- ๐ฏ Objective: โ .
- ๐ฆ Core Components: two base cases โ strong induction bounds โ Binet closed form.
- โก Key Constraint: , ; exact formula needs both roots of .
๐ Core
1. The Recurrence
- Definition โ , ().
- Two base cases โ the rule only applies for .
- Standard example โ bounding a sequence before/instead of an exact formula.
2. Bounding by Induction
- Upper โ (basis ; step ).
- Lower โ ( chosen so both bases hold).
- Sharp โ , .
3. Exact (Binet) Formula
- Characteristic โ roots of : , .
- Form โ , matched by .
Key identities:
4. Matrix Form and the Doubling Identities (FIT2004)
- โ ๏ธ Indexing shifts here โ FIT2004 uses , ; FIT1058 starts at . The two agree for every โ only the extra is new โ but a proof written in the wrong convention fails its own base case.
- The matrix identity โ one matrix power encodes two consecutive Fibonacci numbers:
- Doubling falls straight out of โ squaring the right-hand side and reading off entries gives
- The elimination step is the marked one โ the required identity contains no , so rearranging the defining recurrence into and substituting is what closes the derivation.
- Why an algorithms unit cares โ both identities express index in terms of index , so evaluating them halves the index each step โน recursion depth against the naive recurrenceโs depth and time. Same move as
power_fast: divide the parameter instead of decrementing it. - appears twice in each identity โ compute it once and reuse it, or the halving is spent on a binary call tree and the win evaporates โ the duplicate-call trap in Analysing Recursive Algorithms (Time and Auxiliary Space).
๐งฎ Proof Blueprint โ the matrix identity by induction
Theorem. for all , where and . Strategy. Induction on ; peel one factor off the power, invoke the hypothesis, and let the defining recurrence re-fold the entries.
Base case ():
Inductive step. Assume for some . Then
- The whole proof is one factorisation โ writing is what creates a place for the hypothesis to be used; students who expand directly have nothing to substitute into.
- The recurrence does the re-folding โ every entry of the product is a sum of two consecutive Fibonacci numbers, so converts the product back into -shape. No arithmetic beyond that is needed.
โ๏ธ Core Decision Matrix
| Goal | Roots used | Base cases matched |
|---|---|---|
| upper bound | only | one (inequality) |
| lower bound | only | one |
| exact Binet | and | two (equality) |
| growth |
When It Flips: a bound of form needs (one free constant, one base case); an exact formula needs equality and both roots (two constants, two base cases). can't be a bound but is essential in Binet. Ratio (golden ratio).
๐ Exam Execution Trace
Applied Exercise
Problem: Compute and verify Binet at . Derivation Proof / Hand-Calculation Walkthrough:
Final Extracted Output: from both recurrence and Binet.
โ ๏ธ Common Mistakes
- ๐ก Two base cases required โ the step uses the hypothesis at and (strong induction), so must be checked separately.
- ๐ก Mixing the two indexing conventions โ the matrix identityโs base case reads in the bottom-right corner; carrying FIT1058โs into it makes wrong and the induction unprovable.
- ๐ก Expanding instead of factorising it โ the inductive hypothesis can only be invoked once appears literally, so the step must start from .
๐ง Active Recall
Why does proving require two base cases?
- Hint: Strong induction.
Answer
- Short answer: The rule holds only for ; checked directly, and the step uses and .
- Why: Two predecessors โ needs two consecutive base cases.
The doubling identities express and via and . Why is that an algorithmic result, not just an algebraic curiosity?
- Hint: Compare how the index moves against the naive recurrence.
Answer
- Short answer: the naive recurrence decrements the index and branches, giving depth and time; the doubling identities halve it, so the depth drops to .
- Why: Divide the parameter, donโt decrement it โ this is the same shift that separates
powerfrompower_fast, and it only pays off if the repeated term is computed once and reused โ otherwise the halved depth is refilled by a binary call tree โ Analysing Recursive Algorithms (Time and Auxiliary Space).
Why do bounds need only one root but Binet needs both?
- Hint: Inequality vs equality.
Answer
- Short answer: A bound has one free constant (one base case, inequality); an exact formula matches two base cases with equality, needing both roots.
- Why: โ breaks the basis as a bound but is indispensable in Binet.