alphabet of language BAU consists of letters B, A, and U
Source: 2004 Estonia National Olympiad Final Round grade 11 p5
March 25, 2020
alphabetcombinatorics
Problem Statement
The alphabet of language consists of letters , and . Independently of the choice of the word of length n from which to start, one can construct all the words with length n using iteratively the following rules:
(1) invert the order of the letters in the word;
(2) replace two consecutive letters: or .
Given that is a word, does have
a) the word ?
b) the word ?