There are 1 6 books on a shelf, the 1 6 parts of a series in order. A set of books picked out of these is g o o d if
1 . no two consecutive books are picked, and
2 . no four consecutive books are left on the shelf.
How many g o o d sets containing exactly 5 books can be picked from the shelf?
This problem is a part of Tessellate S.T.E.M.S.
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.
The answer is the coefficient of x 1 1 in the product ( 1 + x + x 2 + x 3 ) ( x + x 2 + x 3 ) 4 ( 1 + x + x 2 + x 3 ) . The first polynomial and the last polynomial represent the choices of a number of books before the first book in the set, and a number of books after the last book in the set, respectively; the middle polynomial represents the four choices for the numbers of books in between each pair of books in the set (there is no constant term because the set cannot contain consecutive books).
Simplifying a bit, this is the coefficient of x 7 in the product ( 1 + x + x 2 + x 3 ) 2 ( 1 + x + x 2 ) 3 . To be honest, I just multiplied this out using a computer algebra package. Perhaps there is a fancy way to do it. Anyway, I got 2 2 0 .
Problem Loading...
Note Loading...
Set Loading...
Let's consider C o m b ( A ) the set of all the ( 5 1 6 ) possible combinations with no repetition of A = { 1 , . . . , 1 6 } . The g o o d sets are ( a 1 , . . . , a 5 ) ∈ C o m b ( A ) such that a 1 ∈ [ 1 , 2 , 3 , 4 ] , a 5 ∈ [ 1 3 , 1 4 , 1 5 , 1 6 ] and 1 < a k − a k − 1 ≤ 4 , k ∈ { 2 , 3 , 4 } . With such condition, it's possible to code an algorithm to count all possible occurrences.