OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,-1,0,0,0,0,0,0,1,-2,1).
FORMULA
G.f.: (1+x^5)/((1-x)^2*(1-x^9)).
Nearest integer to (n+3)^2/9. [Corrected by Gerald Hillier, Dec 24 2017]
a(n) = a(n-4) + n. - Paul Barry, Jul 14 2004
a(n) = 2*a(n-1) - a(n-2) + a(n-9) - 2*a(n-10) + a(n-11).
a(n) = floor((n^2 + 6*n + 12)/9). - Tani Akinari, Aug 19 2013
MATHEMATICA
CoefficientList[Series[(1+x^5)/((1-x)^2(1-x^9)), {x, 0, 70}], x] (* Harvey P. Dale, Aug 27 2011 *)
Floor[((Range[0, 70]+3)^2 + 3)/9] (* G. C. Greubel, Aug 03 2019 *)
PROG
(PARI) vector(70, n, n--; ((n+3)^2+3)\9) \\ G. C. Greubel, Aug 03 2019
(Magma) [Floor((n+3)^2+3)/9: n in [0..70]]; // G. C. Greubel, Aug 03 2019
(Sage) [floor((n+3)^2+3)/9 for n in (0..70)] # G. C. Greubel, Aug 03 2019
(GAP) List([0..70], n-> Int(((n+3)^2+3)/9)); # G. C. Greubel, Aug 03 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved