The Lumenary · Early undergraduate
Recurrences and generating functions
Name: ______________________
Date: ______________________
You will learn to
- Solve linear recurrences with constant coefficients using the characteristic polynomial, including repeated roots and inhomogeneous terms, and prove that the solution is determined by its initial values
- Prove Binet's formula in two ways, by characteristic roots and by generating functions
- Work with ordinary generating functions as formal power series, and use them to solve recurrences and counting problems
- Prove that the Catalan numbers count balanced bracket sequences, by a reflection argument and by a generating function
- Compare growth rates with , , , and , and solve the divide-and-conquer recurrence on powers of two
- 1.
In how many ways can a strip be tiled by squares and dominoes?
- 2.
Find the characteristic roots of the recurrence . Enter them as a set, e.g.
4, -1. - 3.
The sequence satisfies with and . Find a closed formula for and use it to compute .
- 4.
Which formula describes all solutions of (with , arbitrary constants)?
- A.
- B.
- C.
- D.
- 5.
The power series converges only at . Which statement about it, as an element of the ring of formal power series, is true?
- A.It has a multiplicative inverse in .
- B.It is not a valid element of , because it diverges.
- C.It can be added to other series but not multiplied, because products would diverge.
- D.It is invertible only if we restrict to .
- 6.
Which of these statements are true? (Choose all that apply.)
- A.
- B.
- C.
- D.
- E.
- F.
- 7.
In the proof of Lemma 2 (two solutions of with the same and agree everywhere), the induction proves the statement " and " rather than just "". Why?
- A.To deduce from the recurrence we need equality at two consecutive indices, so the inductive hypothesis must carry both.
- B.Because or might be zero.
- C.Because ordinary induction is not valid for sequences.
- D.Because the characteristic roots might be repeated.
- 8.
Using the lesson's definition
IsSol p q a(meaning∀ n, a (n + 2) = p * a (n + 1) + q * a n), which Lean statement correctly formalises: every real sequence satisfying with and is the Fibonacci sequence?- A.
∀ a : ℕ → ℝ, IsSol 1 1 a → a 0 = 0 → a 1 = 1 → ∀ n, a n = Nat.fib n - B.
∀ a : ℕ → ℝ, IsSol 1 1 a → ∀ n, a n = Nat.fib n - C.
∃ a : ℕ → ℝ, IsSol 1 1 a ∧ a 0 = 0 ∧ a 1 = 1 - D.
∀ a : ℕ → ℝ, a 0 = 0 → a 1 = 1 → ∀ n, a n = Nat.fib n
- A.
- 9.
In how many ways can the product be fully bracketed, keeping the factors in order? (For three factors there are two: and .)
- 10.
Write
series_inverse(a, N)that returns the firstNcoefficients of , whereais the list of coefficients of a power series witha[0] == 1(missing coefficients count as ). Use the recursion from the Proposition on inverses: and . Then check that gives the Fibonacci numbers .Computational — Practice