no of words of length n is equal to \frac{2^n +2\cdot (-1)^n}{3}
Source: Czech And Slovak Mathematical Olympiad, Round III, Category A 1999 p4
February 20, 2020
combinatorics
Problem Statement
In a certain language there are only two letters, and . We know that
(i) There are no words of length , and the only words of length are and .
(ii) A segment of length is a word if and only if it can be obtained from a word of length less than by replacing each letter by some (not necessarily the same) word.
Prove that the number of words of length is equal to