MathDB
writing words around circle, two letters

Source: VJIMC 2000 2.2

July 27, 2021
combinatorics

Problem Statement

If we write the sequence AAABABBB\text{AAABABBB} along the perimeter of a circle, then every word of the length 33 consisting of letters AA and BB (i.e. AAA\text{AAA}, AAB\text{AAB}, ABA\text{ABA}, BAB\text{BAB}, ABB\text{ABB}, BBB\text{BBB}, BBA\text{BBA}, BAA\text{BAA}) occurs exactly once on the perimeter. Decide whether it is possible to write a sequence of letters from a kk-element alphabet along the perimeter of a circle in such a way that every word of the length ll (i.e. an ordered ll-tuple of letters) occurs exactly once on the perimeter.