Solution

ID: past-exam-of-the-year-1-of-the-computer-science-course-of-the-university-of-oxford/2022/discrete-mathematics-continuous-mathematics-and-probability-resit/8/b/i/solution

For , the first digits must all differ from and the next digit must be . Independence gives
Thus has the geometric distribution counting trials up to and including the first success, with success probability . For completeness, its mean follows from the tail-sum formula:
The sum of the geometric series also proves finiteness of this expectation.

New to topics? Read the docs here!