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?
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 .
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.