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

GoalRoots usedBase cases matched
upper bound onlyone (inequality)
lower bound onlyone
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