a tribe called Ababab uses only letters A and B to create words
Source: 2001 Estonia National Olympiad Final Round grade 10 p5
March 12, 2020
Wordscombinatorics
Problem Statement
A tribe called Ababab uses only letters and , and they create words according to the following rules:
(1) is a word;
(2) if is a word, then and are also words, where is obtained from by replacing all letters with and all letters with ( denotes the concatenation of and )
(3) all words are created by rules (1) and (2).
Prove that any two words with the same number of letters differ exactly in half of their letters.