MathDB
shortest words in 2 letter language (Olimpiada de Mayo) 2017 L2 P5

Source:

September 24, 2021
combinatorics

Problem Statement

Ababa plays with a word made up of the letters of his name and has set certain rules: If you find an AA followed immediately by a BB, you can substitute BAABAA for them. If you find two consecutive BB's, you can delete them. If you find three consecutive AA's, you can delete them. Ababa begins with the word ABABABAABAABABABABAABAAB. With the above rules, how many letters do you have the shortest word you can come up with? Why can't you come up with one more word shorter?