OFFSET
1,3
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,1,-1).
FORMULA
a(n) = 7*floor((n-1)/5) + ((n-1) mod 5). - Gary Detlefs, Mar 09 2010
G.f.: x^2*(1 + x + x^2 + x^3 + 3*x^4) / ( (1 + x + x^2 + x^3 + x^4)*(x-1)^2 ). - R. J. Mathar, Dec 04 2011
a(n) = floor((7/6)*floor(6*(n-1)/5)). - Bruno Berselli, May 03 2016
MATHEMATICA
DeleteCases[Range[0, 80], _?(Mod[#, 7]>4&)] (* Harvey P. Dale, Aug 21 2013 *)
PROG
(Magma) [n: n in [0..150] | n mod 7 in [0..4]]; // Vincenzo Librandi, May 04 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved