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.

Recurrences

1.[1p]

What is the fewest number of moves that transfers a Tower of Hanoi of 10 discs to another peg?

CorrectNot quite: 1023

2.[2p]

In the version of the Tower of Hanoi where a disc may only move to a neighbouring peg, the natural strategy satisfies an=3an-1+2 with a0=0. How many moves does it use for 4 discs, carried from one end peg to the other?

CorrectNot quite: 80

3.[2p]

Unroll an=3an-1+4 with a0=1 and find a5.

CorrectNot quite: 727

4.[2p]

How many bit strings of length 12 contain no two consecutive 1s?

CorrectNot quite: 377

5.[3p]

How many strings of length 6 over the alphabet {a,b,c} contain no two consecutive as?

CorrectNot quite: 448

6.[2p]

Into how many regions do 12 lines in general position cut the plane?

CorrectNot quite: 79

7.[2p]

Six circles are drawn so that every two cross at two points and no three pass through one point. How many regions do they make?

CorrectNot quite: 32

8.[1p]

With F0=0 and F1=1, which Fibonacci number counts the bit strings of length n with no two consecutive 1s?

Correct
The answer is: $F_{n+2}$
The answer is: $F_{n+2}$
The answer is: $F_{n+2}$

9.[3p]

Match each problem to its recurrence.

  • Tower of Hanoi moves

  • Bit strings with no two consecutive 1s

  • Regions cut by lines in general position

  • Regions cut by circles crossing in pairs

  • bn=bn-1+bn-2

  • Rn=Rn-1+n

  • Cn=Cn-1+2(n-1)

  • Tn=2Tn-1+1

Show the answer

Tower of Hanoi moves: Tn=2Tn-1+1 Bit strings with no two consecutive 1s: bn=bn-1+bn-2 Regions cut by lines in general position: Rn=Rn-1+n Regions cut by circles crossing in pairs: Cn=Cn-1+2(n-1)