MathDB
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 AA and BB, and they create words according to the following rules: (1) AA is a word; (2) if ww is a word, then wwww and www\overline{w} are also words, where w\overline{w} is obtained from ww by replacing all letters AA with BB and all letters BB with AA ( xyxy denotes the concatenation of xx and yy) (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.