OFFSET
1,11
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (-1,0,1,1,1,1,0,-1,-1).
FORMULA
a(n) = floor((n+1)/6)+floor((n-1)/6)-floor(n/6)+floor((n-1)/5)-floor(n/5).
G.f.: x*(2*x^8 + 2*x^7 + x^6)/((1+x)*(1-x^3)*(1-x^5)). - Ralf Stephan, Oct 12 2013
a(n) = floor((n-3)/2)-floor((n-3)/3)+floor((n-1)/5)-floor(n/5). - Mircea Merca, Nov 27 2013
MAPLE
seq(floor((n+1)*(1/6))+floor((n-1)*(1/6))-floor((1/6)*n)+floor((n-1)*(1/5))-floor((1/5)*n), n=1..99)
MATHEMATICA
CoefficientList[Series[(2 x^8 + 2 x^7 + x^6)/((1 + x) (1 - x^3) (1 - x^5)), {x, 0, 100}], x] (* Vincenzo Librandi, Oct 13 2013 *)
PROG
(Magma) [Floor((n+1)*(1/6))+Floor((n-1)*(1/6))-Floor((1/6)*n)+Floor((n-1)*(1/5))-Floor((1/5)*n): n in [1..80]]; // Vincenzo Librandi, Oct 13 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mircea Merca, Oct 11 2013
STATUS
approved