DR.WANG Mathematics中文

2011 USAJMO · Question 4

Counting & combinatorics · sequences

Problem outline

Begin with two one-letter words W0=aW_0=a and W1=bW_1=b. For n≥2n\ge2 concatenate Wn−2W_{n-2} and Wn−1W_{n-1}, in that order, to form WnW_n. Prove that W1W2⋯WnW_1W_2\cdots W_n reads identically from left to right and right to left for every n≥1n\ge1.

Show answer and methods 1 methods

Answer

Each prefix product W1⋯WnW_1\cdots W_n is a palindrome.

Method 1 Identify the alternating two-letter prefixes

Let Sn=W1⋯WnS_n=W_1\cdots W_n, with S0S_0 empty. For k≥2k\ge2, let DkD_k be the two-letter word abab for even kk and baba for odd kk. We claim Wk=DkSk−2W_k=D_kS_{k-2}. For k=2,3k=2,3, this is W2=abW_2=ab and W3=babW_3=bab.

For k≥4k\ge4, substitute this claim at k−2k-2 into the recursion. It gives Wk=Dk−2Sk−4Wk−1=DkSk−4Wk−3Wk−2=DkSk−2W_k=D_{k-2}S_{k-4}W_{k-1}=D_kS_{k-4}W_{k-3}W_{k-2}=D_kS_{k-2}, proving the claim for both parities.

Now S0S_0 and S1=bS_1=b are palindromes. For n≥2n\ge2, split the same word in two ways. Its definition gives Sn=Sn−1Wn=Sn−1DnSn−2S_n=S_{n-1}W_n=S_{n-1}D_nS_{n-2}. Combining its last two blocks gives Sn=Sn−2Wn+1=Sn−2Dn+1Sn−1S_n=S_{n-2}W_{n+1}=S_{n-2}D_{n+1}S_{n-1}.

Suppose Sn−1,Sn−2S_{n-1},S_{n-2} are palindromes. Reversing the first factorisation reverses the block order and replaces DnD_n by Dn+1D_{n+1}. It therefore gives exactly the second factorisation. Induction proves SnS_n is unchanged on reversal.

Source and attribution

The outline and worked methods on this page were prepared for DR.WANG Mathematics.

Original question (external)