OFFSET
0,3
REFERENCES
G. van der Geer, Hilbert Modular Surfaces, Springer-Verlag, 1988; p. 188.
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,-1,1,-2,1).
FORMULA
a(n) = 2 + ceiling((n^2 - n)/3) for n >= 2. - Robert Israel, May 20 2014
MATHEMATICA
CoefficientList[Series[(1-x^4)*(1-x^10)/((1-x)*(1-x^2)^2*(1-x^3)*(1-x^5)), {x, 0, 50}], x] (* G. C. Greubel, Dec 20 2017 *)
(* Alternative: *)
Join[{1, 1}, LinearRecurrence[{2, -1, 1, -2, 1}, {3, 4, 6, 9, 12}, 30]] (* G. C. Greubel, Dec 20 2017 *)
(* Alternative: *)
Join[{1, 1}, Table[2 + Ceiling[n*(n-1)/3], {n, 2, 30}]] (* G. C. Greubel, Dec 20 2017 *)
PROG
(PARI) x='x+O('x^30); Vec((1-x^4)*(1-x^10)/((1-x)*(1-x^2)^2*(1-x^3)*(1-x^5))) \\ G. C. Greubel, Dec 20 2017
(PARI) for(n=0, 30, print1(if(n==0, 1, if(n==1, 1, 2 + ceil(n*(n-1)/3))), ", ")) \\ G. C. Greubel, Dec 20 2017
(Magma) [1, 1] cat [2 + Ceiling(n*(n-1)/3): n in [2..30]]; // G. C. Greubel, Dec 20 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Sep 05 2004
STATUS
approved
