OFFSET
0,4
COMMENTS
This sequence has the form (0+4k,0+4k,1+4k,2+4k,2+4k,2+4k,3+4k) for k>=0.
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,0,0,1,-1).
FORMULA
a(n + 7*k) = a(n) + 4*k.
G.f.: (x^7+x^6+x^3+x^2)/(x^8-x^7-x+1). - Alois P. Heinz, Jun 26 2017
MATHEMATICA
Table[Count[Mod[Table[2(2(n-1)^2 +k)-1, {k, 1, 4 n-2}], 7], 0], {n, 0, 100}]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ralf Steiner, Jun 26 2017
STATUS
approved