How many sequences of 0s and 1s of length 19 are there that begin with a 0, end with a 0, contain no two consecutive 0s, and contain no three consecutive 1s?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
As Vicky Ye described, after the first 0 there can be one or 2 1's and then there has to be another 0. Now, the sequence basically starts over with a new length of 17 or 16.
This means we can define a sequence { a n } n ∈ N for the number of sequences with length n recursively as a n = a n − 2 + a n − 3 .
The starting values are a 3 = 1 , a 4 = 1 and a 5 = 1 , which complete our recursive definition
a n = { 1 a n − 2 + a n − 3 for n = 3 , 4 , 5 for n ≥ 6
These numbers are called Padovan numbers and the 19th term is 65 .