OFFSET
1,3
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,1,-1).
FORMULA
G.f.: x^2*(1+x)*(x^3 + x^2 + 1) / ( (x^4 + x^3 + x^2 + x + 1)*(x-1)^2 ). - R. J. Mathar, Oct 08 2011
Sum_{n>=2} (-1)^n/a(n) = (3-2*sqrt(3))*Pi/36 + log(2+sqrt(3))/sqrt(3). - Amiram Eldar, Dec 17 2021
a(n) = n + floor(n/5) - 1. - Aaron J Grech, Oct 03 2024
MATHEMATICA
Flatten[# + {0, 1, 2, 3, 5} & /@ (6 Range[0, 11])] (* or *)
Select[Range[0, 67], MemberQ[{0, 1, 2, 3, 5}, Mod[#, 6]] &] (* Robert G. Wilson v, Sep 26 2016 *)
LinearRecurrence[{1, 0, 0, 0, 1, -1}, {0, 1, 2, 3, 5, 6}, 60] (* Harvey P. Dale, Jul 20 2020 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved