OFFSET
1,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (2,-1,0,0,0,1,-2,1).
FORMULA
G.f.: x^2*(x^6-2*x^5-x^3-x^2-x-2) / ((x-1)^3*(x+1)*(x^2-x+1)*(x^2+x+1)). - Colin Barker, Aug 15 2014
a(n) = floor( A024196(n)/(1+n)^2). - R. J. Mathar, Sep 23 2016
a(n) = (n^2 + n - 2)/2 - floor(n/6), n>=1. - Muslim Alaa, Apr 01 2026
MATHEMATICA
LinearRecurrence[{2, -1, 0, 0, 0, 1, -2, 1}, {0, 2, 5, 9, 14, 19, 26, 34}, 55] (* Hugo Pfoertner, Mar 30 2026 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved
