Skip to content
The Lumenary

Practice · Early undergraduate

Recurrences and generating functions

Recurrences and generating functions

Warm-upHuman

In how many ways can a 1×91 \times 9 strip be tiled by 1×11 \times 1 squares and 1×21 \times 2 dominoes?

Recurrences and generating functions

Warm-upHuman

Find the characteristic roots of the recurrence an+2=an+1+6ana_{n+2} = a_{n+1} + 6a_n. Enter them as a set, e.g. 4, -1.

Write elements separated by commas. Order and repeats don’t matter — just like in a set!

Recurrences and generating functions

CoreHuman

The sequence (an)(a_n) satisfies an+2=an+1+6ana_{n+2} = a_{n+1} + 6a_n with a0=2a_0 = 2 and a1=1a_1 = 1. Find a closed formula for ana_n and use it to compute a5a_5.

Recurrences and generating functions

CoreHuman

Which formula describes all solutions of an+2=6an+1−9ana_{n+2} = 6a_{n+1} - 9a_n (with AA, BB arbitrary constants)?

Choose one

Recurrences and generating functions

CoreHuman

The power series ∑n≥0n! xn\sum_{n \ge 0} n!\,x^n converges only at x=0x = 0. Which statement about it, as an element of the ring Q[[x]]\Q[[x]] of formal power series, is true?

Choose one

Recurrences and generating functions

CoreHuman

Which of these statements are true? (Choose all that apply.)

Choose all that apply

Recurrences and generating functions

CoreHuman

In the proof of Lemma 2 (two solutions of an+2=p an+1+q ana_{n+2} = p\,a_{n+1} + q\,a_n with the same a0a_0 and a1a_1 agree everywhere), the induction proves the statement "an=bna_n = b_n and an+1=bn+1a_{n+1} = b_{n+1}" rather than just "an=bna_n = b_n". Why?

Choose one

Recurrences and generating functions

CoreFormal

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 an+2=an+1+ana_{n+2} = a_{n+1} + a_n with a0=0a_0 = 0 and a1=1a_1 = 1 is the Fibonacci sequence?

Choose one

Recurrences and generating functions

CoreHuman

In how many ways can the product x1x2x3x4x5x6x_1 x_2 x_3 x_4 x_5 x_6 be fully bracketed, keeping the factors in order? (For three factors there are two: (x1x2)x3(x_1x_2)x_3 and x1(x2x3)x_1(x_2x_3).)

Recurrences and generating functions

StretchComputational

Write series_inverse(a, N) that returns the first N coefficients of 1/A(x)1/A(x), where a is the list of coefficients of a power series A(x)A(x) with a[0] == 1 (missing coefficients count as 00). Use the recursion from the Proposition on inverses: b0=1b_0 = 1 and bn=−∑i=1naibn−ib_n = -\sum_{i=1}^{n} a_i b_{n-i}. Then check that 1/(1−x−x2)1/(1 - x - x^2) gives the Fibonacci numbers Fn+1F_{n+1}.

Runs entirely in your browser, in an isolated worker. Nothing is sent to a server.