Solution (source code)

= Solution

The first event causes extinction precisely when it is recovery of the sole initially infectious individual. An infection would instead give two infectious individuals. The <competing exponential clocks> calculation therefore gives \b[the first-event extinction probability]
$$
\boxed{\frac{\gamma}{\beta N+\gamma}.}
$$