OFFSET
1,11
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,1,0,0,0,1,0,-1).
FORMULA
G.f.: x^5/(1-x^2-x^6+x^8).
a(n) = A264041(n) - n*(n+1)/2, 0<n<=26 (conjectured for n>26).
a(n) = (1-(-1)^n)*floor(n/6+1/3)/2. [Bruno Berselli, Nov 10 2015]
MAPLE
with(numtheory): P:= proc(q) local n; for n from 0 to q do
print((1-(-1)^n)*floor(n/6+1/3)/2); od; end: P(100); # Paolo P. Lava, Nov 12 2015
MATHEMATICA
LinearRecurrence[{0, 1, 0, 0, 0, 1, 0, -1}, {0, 0, 0, 0, 1, 0, 1, 0}, 100]
Table[(1 - (-1)^n) (Floor[n/6 + 1/3]/2), {n, 1, 90}] (* Bruno Berselli, Nov 10 2015 *)
PROG
(PARI) concat(vector(4), Vec(x^5/(1-x^2-x^6+x^8) + O(x^100))) \\ Altug Alkan, Nov 10 2015
(SageMath) [(1-(-1)^n)*floor(n/6+1/3)/2 for n in (1..90)] # Bruno Berselli, Nov 10 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jean-François Alcover and Paul Curtz, Nov 09 2015
STATUS
approved
