OFFSET
1,2
COMMENTS
Apart from initial term(s), dimension of the space of weight 2*n cusp forms for Gamma_0(17).
Nonnegative k such that k*(k + 2)/6 is an integer. - Bruno Berselli, Mar 06 2018
LINKS
Bruno Berselli, Table of n, a(n) for n = 1..10000
William A. Stein, Dimensions of the spaces S_k(Gamma_0(N)).
William A. Stein, The modular forms database.
Index entries for linear recurrences with constant coefficients, signature (1,1,-1).
FORMULA
From Bruno Berselli, Jun 24 2010: (Start)
G.f.: 2*x^2*(2 + x)/((1 + x)*(1 - x)^2).
a(n) = a(n-1) + a(n-2) - a(n-3) for n>3.
a(n) = (6*n + (-1)^n - 5)/2. (End)
a(n) = 6*n - a(n-1) - 8 for n>1, a(1)=0. - Vincenzo Librandi, Aug 05 2010
Sum_{n>=2} (-1)^n/a(n) = log(3)/4 - sqrt(3)*Pi/36. - Amiram Eldar, Dec 13 2021
E.g.f.: 2 + ((6*x -5)*exp(x) + exp(-x))/2. - David Lovler, Aug 25 2022
MATHEMATICA
Flatten[{#, #+4}&/@(6Range[0, 30])] (* Harvey P. Dale, Jul 07 2013 *)
PROG
(PARI) forstep(n=0, 200, [4, 2], print1(n", ")) \\ Charles R Greathouse IV, Oct 17 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved