Solution (source code)

= Solution

Under frequency-dependent <law of mass action>[mass-action kinetics], if $I(t)$ of the $N(t)$ individuals are infectious, the force of infection is
$$
\lambda(t)=\beta\frac{I(t)}{N(t)}.
$$
One newly infectious person in an otherwise susceptible population transmits at total rate approximately $\beta$ for mean infectious duration $1/\gamma$. Hence the <basic reproduction number> is
$$
R_0=\frac\beta\gamma=\beta d_I,
$$
where $d_I$ is the infectious, rather than latent-plus-infectious, duration.