Problem

Source: Final Round Grade 12 Pro 5

Tags: induction, combinatorics unsolved, combinatorics



The Ababi alphabet consists of letters A and B, and the words in the Ababi language are precisely those that can be formed by the following two rules: 1) A is a word. 2) If s is a word, then $ s \oplus s$ and $ s \oplus \bar{s}$ are words, where $ \bar{s}$ denotes a word that is obtained by replacing all letters A in s with letters B, and vice versa; and $ x \oplus y$ denotes the concatenation of x and y. The Ululu alphabet consists also of letters A and B and the words in the Ululu language are precisely those that can be formed by the following two rules: 1) A is a word. 2) If s is a word, $ s \oplus s$ and $ s \oplus \bar{s}$ are words, where $ \bar{s}$ is defined as above and $ x \oplus y$ is a word obtained from words x and y of equal length by writing the letters of x and y alternatingly, starting from the first letter of x. Prove that the two languages consist of the same words.