Petro has to plant trees in a row: apple trees or oak trees. There is one restriction: there has to be no apple trees between any two oak trees. For example, such planting or are not allowed, and is allowed. How many different plantings are possible?
Problem 206
Official solution
Obviously, all oaks have to be planted together as one group no matter where this group will be situated. Let us count how many oaks can possibly be.
If there are no oak trees, then the option of planting is only one.
If there are oaks, , there are options:
, , , .
Together we have .