OFFSET
0,4
LINKS
Index entries for linear recurrences with constant coefficients, signature (2,-2,2,-2,2,-1).
FORMULA
a(n) = a(n-6) + 6, for n >= 6.
a(n) = cos(2*Pi*n/3)/6-sqrt(3)*sin(2*Pi*n/3)/6+cos(Pi*n/3)/2-sqrt(3)*sin(Pi*n/3)/6+(3n-2)/3.
G.f.: x^2*(x^3+x^2+1) / ((x-1)^2*(x^2-x+1)*(x^2+x+1)). - Colin Barker, Jun 27 2013
Sum_{n>=2} (-1)^n/a(n) = 5*Pi/(12*sqrt(3)) - log(3)/4 + log(2)/3. - Amiram Eldar, Apr 04 2023
MATHEMATICA
fix[n_]:=Which[Divisible[n, 6], {n, n}, Mod[n, 6]==4, {}, True, n]; Flatten[ fix/@ Range[0, 70]] (* Harvey P. Dale, Aug 21 2014 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Feb 13 2007
STATUS
approved