Maths Olympiad Prep

Library / /636 of 740

, 2022

Combinatorics Difficulty 5.4 AIME, harder Prove it United States

Problem:

A string consisting of letters AA, CC, GG, and UU is untranslatable if and only if it has no AUGAUG as a consecutive substring. For example, ACUGGACUGG is untranslatable.

Let ana_{n} denote the number of untranslatable strings of length nn. It is given that there exists a unique triple of real numbers (x,y,z)(x, y, z) such that an=xan1+yan2+zan3a_{n}=x a_{n-1}+y a_{n-2}+z a_{n-3} for all integers n100n \geq 100. Compute (x,y,z)(x, y, z).

Proposed by: Pitchayut Saengrungkongka

Solution

Solution:

If a sequence is untranslatable, the first n1n-1 letters must form an untranslatable sequence as well. Therefore, we can count ana_{n} by
- Append any letter to an untranslatable sequence of length n1n-1, so 4an14 a_{n-1} ways.
- Then, subtract with the case when the sequence ends with AUGAUG. There are an3a_{n-3} sequences in this case.

Thus, an=4an1an3a_{n}=4 a_{n-1}-a_{n-3} for all integers n3n \geq 3, so the answer is (4,0,1)(4,0,-1)

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.