Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2022/ia/paper-2/12f/d/solution

Divide the keystrokes into disjoint blocks of five, and let be the event that block is exactly HELLO. The events are independent events, and
Consequently
Part (c) shows that infinitely many of these block events occur almost surely. Each occurrence is an occurrence of HELLO in the full typed sequence, so

New to topics? Read the docs here!