Problem:
Let be an infinite sequence where each term is independently and uniformly random in the set . Define an infinite sequence recursively by and . Compute the expected value of the smallest positive integer such that .
, 2023
Solution
Solution:
Do casework on what is.
If then .
If then .
If then
- if , then
- if or , then
- if , then you make no progress.
So in expectation it requires .
If then
- if or , then
- if , then
- if , then it can be checked that if we get , if or then , and if then we make no progress. Thus, this case is equivalent to the case of except shifted over by one, so it is in expectation.
So this case is in expectation.
This means the answer is .
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.