Maths Olympiad Prep

Library / /1188 of 1394

, 2023

Combinatorics Difficulty 5.8 AIME, harder Prove it United States

Problem:
Let a0,a1,a2,a_{0}, a_{1}, a_{2}, \ldots be an infinite sequence where each term is independently and uniformly random in the set {1,2,3,4}\{1,2,3,4\}. Define an infinite sequence b0,b1,b2,b_{0}, b_{1}, b_{2}, \ldots recursively by b0=1b_{0}=1 and bi+1=aibib_{i+1}=a_{i}^{b_{i}}. Compute the expected value of the smallest positive integer kk such that bk1(mod5)b_{k} \equiv 1 \pmod{5}.

Solution

Solution:
Do casework on what a0a_{0} is.

If a0=1a_{0}=1 then k=1k=1.

If a0=4a_{0}=4 then k=2k=2.

If a0=3a_{0}=3 then
- if a1=1a_{1}=1, then k=2k=2
- if a1=2a_{1}=2 or 44, then k=3k=3
- if a1=3a_{1}=3, then you make no progress.
So in expectation it requires E=(2+3+(E+1)+3)/4E=3E=(2+3+(E+1)+3)/4 \Longrightarrow E=3.

If a0=2a_{0}=2 then
- if a1=1a_{1}=1 or 44, then k=2k=2
- if a1=2a_{1}=2, then k=3k=3
- if a1=3a_{1}=3, then it can be checked that if a2=1a_{2}=1 we get k=3k=3, if a2=2a_{2}=2 or 44 then k=4k=4, and if a2=3a_{2}=3 then we make no progress. Thus, this case is equivalent to the case of a0=3a_{0}=3 except shifted over by one, so it is 3+1=43+1=4 in expectation.
So this case is (2+3+4+2)/4(2+3+4+2)/4 in expectation.

This means the answer is (1+(11/4)+3+2)/4=35/16(1+(11/4)+3+2)/4=35/16.

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.