12.4 Genus formulas

Sage can compute the genus of $ X_0(N)$ , $ X_1(N)$ , and related curves. Here are some examples of the syntax:

sage: sage.modular.dims.g0(22)
2
sage: sage.modular.dims.g0(30)
3
sage: sage.modular.dims.g1(30)
9

See the code for computing dimensions of spaces of modular forms (in sage/modular/dims.py) or the paper by Oesterlé and Cohen [CO] for some details.

See About this document... for information on suggesting changes.