🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Solving Recurrences: all 15 questions

Quiz: Solving Recurrences · Question 9 of 15

Which generating function produces the Fibonacci numbers 0, 1, 1, 2, 3, 5, …?

Which generating function produces the Fibonacci numbers 0, 1, 1, 2, 3, 5, …?

  1. A.1 / (1 − 2x)
  2. B.x / (1 − x − x²)
  3. C.1 / (1 − x)²
  4. D.x / (1 + x + x²)
Answer & explanation

Correct answer: x / (1 − x − x²)

From G(x) − x = xG(x) + x²G(x); the series division in the lesson printed the Fibonacci numbers.

Can you get the rest right without peeking?

Take the timed Quiz: Solving Recurrences quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →