Self-intersection of a smooth curve on a K3 surface (source code)

= Self-intersection of a smooth curve on a K3 surface
{c}

If a smooth curve $C$ of genus $g$ lies on a <K3 surface>, the <Adjunction formula> and $K_X=0$ give
$$
C^2=2g-2.
$$