OFFSET
1,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,1,-1).
FORMULA
G.f.: x*(1 + 2*x + x^2 + x^3 + x^4 + x^5) / ( (x^4 + x^3 + x^2 + x + 1)*(x-1)^2 ). - R. J. Mathar, Oct 25 2011
a(n) = a(n-1) + a(n-5) - a(n-6). - Wesley Ivan Hurt, Mar 09 2023
MATHEMATICA
Select[Range[100], MemberQ[{1, 3, 4, 5, 6}, Mod[#, 7]]&] (* Harvey P. Dale, Mar 30 2011 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved