Embarrassingly, I've always struggled to remember the form of the Riemann-Roch theorem for curves. Does anyone have any intuition to share about how to remember the some of the terms in the formula?
Recall that for $C$ a Riemann surface and $D$ a divisor on $C$, the Riemann-Roch theorem says that: \begin{equation} h^0(D) - h^0(K-D) = \mathrm{deg}(D) + 1 - g \end{equation} where $K$ is the canonical divisor on $C$. I'm happy with the interpretation of the terms on the left hand side (it's some kind of Euler characteristic), but is anyone able to give an informal explanation for the quantity on the right hand side? Why $\mathrm{deg}(D) + 1 - g$? In particular, why should I expect the left hand side to grow like $\mathrm{deg}(D)$, with a correction of $1-g$? I understand that there's some very classical way to think about this, but I've never seen it explained anywhere.