Solution (source code)

= Solution

The geodesic curvature is the tangential component of $α\prime\prime$, namely $k_g=\langle α\prime\prime,N\times α\prime\rangle$ up to orientation; a curve is geodesic when $k_g=0$. <Gauss-Bonnet theorem> for a compact region says $\int K+\int_{\partial}k_g+\sum\text{exterior angles}=2πχ$.

For $K=0$, a flat cylinder has infinitely many parallel closed geodesics.