OFFSET
1,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,0,0,1,-1).
FORMULA
a(n) = floor(floor((7n + 2)/2)/2).
a(n) = floor((7n-5)/4). - Gary Detlefs, Mar 07 2010
G.f.: x^2*(2+2*x+x^2+2*x^3) / ( (1+x)*(x^2+1)*(x-1)^2 ). - R. J. Mathar, Dec 04 2011
From Wesley Ivan Hurt, Dec 03 2014: (Start)
a(n) = a(n-1) + a(n-4) - a(n-5), n>5;
a(n) = (14*n-13-(-1)^n+2*i^n*(-1)^((3+(-1)^n)/4))/8, where i = sqrt(-1);
MAPLE
MATHEMATICA
Select[Range[0, 100], MemberQ[{0, 2, 4, 5}, Mod[#, 7]]&] (* Harvey P. Dale, Apr 10 2014 *)
PROG
(Magma) [Floor((7*n-5)/4) : n in [1..100]]; // Wesley Ivan Hurt, Dec 03 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved