OFFSET
0,2
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..3000
Index entries for linear recurrences with constant coefficients, signature (6,-15,20,-15,6,-2).
FORMULA
a(n) = Sum_{k=0..floor(n/6)} (-1)^k*binomial(n+5,6*k+5).
a(n) = 6*a(n-1) - 15*a(n-2) + 20*a(n-3) - 15*a(n-4) + 6*a(n-5) - 2*a(n-6) for n > 5.
MATHEMATICA
CoefficientList[Series[1/((1 - x)^6 + x^6), {x, 0, 31}], x] (* Amiram Eldar, May 25 2021 *)
LinearRecurrence[{6, -15, 20, -15, 6, -2}, {1, 6, 21, 56, 126, 252}, 40] (* Harvey P. Dale, May 31 2021 *)
PROG
(PARI) {a(n) = sum(k=0, n\6, (-1)^k*binomial(n+5, 6*k+5))}
(PARI) N=66; x='x+O('x^N); Vec(1/((1-x)^6+x^6))
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Seiichi Manyama, Mar 17 2019
STATUS
approved