Sign in

Libre University uses your GitHub account. Signing in is only needed to sit a final test, so the score is kept on your profile.

Generating functions

1.[1p]

What is the coefficient of x5 in 1+x1-3x?

CorrectNot quite: 324

2.[2p]

What is the coefficient of x6 in 1(1-x)4?

CorrectNot quite: 84

3.[2p]

Three ordinary dice are thrown. Using the coefficient of x9 in (x+x2+⋯+x6)3, in how many ways can they total 9, counting the dice as distinguishable?

CorrectNot quite: 25

4.[2p]

In how many ways can 15p be made from 1p, 2p and 5p coins, with any number of each and order ignored?

CorrectNot quite: 18

5.[3p]

In how many ways can 30p be made from 1p, 2p, 5p and 10p coins, with any number of each and order ignored?

CorrectNot quite: 98

6.[3p]

The sequence an=3an-1+4an-2 has a0=2 and a1=3. Find its generating function, split it into partial fractions, and give a5.

CorrectNot quite: 1023

7.[1p]

How many ways are there to write 6 pairs of matched brackets, the Catalan number C6?

CorrectNot quite: 132

8.[1p]

With F0=0, F1=1 and Fn=Fn-1+Fn-2, what is the generating function ∑Fnxn of the Fibonacci numbers?

Correct
The answer is: $\frac{x}{1 - x - x^2}$
The answer is: $\frac{x}{1 - x - x^2}$
The answer is: $\frac{x}{1 - x - x^2}$

9.[2p]

Match each sequence, starting from n=0, to its generating function.

  • 1,2,4,8,…

  • 1,2,3,4,…

  • 1,0,1,0,…

  • 1,-1,1,-1,…

  • 1(1-x)2

  • 11-x2

  • 11+x

  • 11-2x

Show the answer

1,2,4,8,…: 11-2x 1,2,3,4,…: 1(1-x)2 1,0,1,0,…: 11-x2 1,-1,1,-1,…: 11+x