This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A029937 #44 Dec 17 2021 05:35:52 %S A029937 0,0,0,0,0,0,0,0,0,0,1,0,2,1,1,2,5,2,7,3,5,6,12,5,12,10,13,10,22,9,26, %T A029937 17,21,21,25,17,40,28,33,25,51,25,57,36,41,45,70,37,69,48,65,55,92,52, %U A029937 81,61,85,78,117,57,126,91,97 %N A029937 Genus of modular curve X_1(n). %C A029937 Also the dimension of the space of cusp forms of weight two on Gamma1(n). [_Steven Finch_, Apr 03 2009] %D A029937 F. Hirzebruch et al., Manifolds and Modular Forms, Vieweg, 2nd ed. 1994, p. 161. %H A029937 T. D. Noe, <a href="/A029937/b029937.txt">Table of n, a(n) for n = 1..1000</a> %H A029937 S. R. Finch, <a href="/A000521/a000521_1.pdf">Modular forms on SL_2(Z)</a>, December 28, 2005. [Cached copy, with permission of the author] %H A029937 Chang Heon Kim, Ja Kyung Koo, <a href="http://dx.doi.org/10.1017/S0004972700017755">On the genus of some modular curves of level N</a>, Bull Austral. Math. Soc. 54 (1996) 291-297. %H A029937 A. V. Sutherland, <a href="http://www-math.mit.edu/~drew/MazursTheoremSubsequentResults.pdf">Torsion subgroups of elliptic curves over number fields</a>, 2012. - From _N. J. A. Sloane_, Feb 03 2013 %F A029937 a(n) = 1 + A115000(n) - A029935(n)/4, n > 4. [Kim and Koo, Theorem 1] %p A029937 with(numtheory); A029937 := proc(n) local i,j; j := 1+(1/24)*phi(n)*A001615(n); for i in divisors(n) do j := j-(1/4)*phi(i)*phi(n/i) od; j; end; %t A029937 a[n_ /; n<5] = 0; a[n_] := 1+Sum[d^2*MoebiusMu[n/d]/24 - EulerPhi[d]*EulerPhi[n/d]/4, {d, Divisors[n]}]; Table[a[n], {n, 1, 100}] (* _Jean-François Alcover_, Jan 13 2014 *) %o A029937 (PARI) %o A029937 A029935(n) = { %o A029937 my(f = factor(n), fsz = matsize(f)[1], %o A029937 g = prod(k=1, fsz, f[k,1]), %o A029937 h = prod(k=1, fsz, sqr(f[k,1]-1)*f[k,2] + sqr(f[k,1])-1)); %o A029937 return(h*n\sqr(g)); %o A029937 }; %o A029937 a(n) = { %o A029937 if (n < 5, return(0)); %o A029937 my(f = factor(n), fsz = matsize(f)[1], %o A029937 g = prod(k=1, fsz, f[k,1]), %o A029937 h = prod(k=1, fsz, sqr(f[k,1]) - 1)); %o A029937 return(1 + sqr(n\g)*h/24 - A029935(n)/4); %o A029937 }; %o A029937 vector(63, n, a(n)) \\ _Gheorghe Coserea_, Oct 23 2016 %Y A029937 Cf. A001617, A029938. [_Steven Finch_, Apr 03 2009] %K A029937 nonn,nice,easy %O A029937 1,13 %A A029937 _N. J. A. Sloane_