Palindromes out of two letters and coprime integers
Source: 5th German TST 2005, problem 1, not from the shortlist
May 12, 2005
inductionLaTeXcombinatorics proposedcombinatorics
Problem Statement
In the following, a word will mean a finite sequence of letters "" and "". The length of a word will mean the number of the letters of the word. For instance, is a word of length . There exists exactly one word of length , namely the empty word.
A word of length consisting of the letters , , ..., in this order is called a palindrome if and only if holds for every such that . For instance, is a palindrome; so is the empty word.
For two words and , let denote the word formed by writing the word directly after the word . For instance, if and , then .
Let , , be nonnegative integers satisfying . Prove that there exist palindromes , , with lengths , , , respectively, such that , if and only if the integers and are coprime.