OFFSET
1,29
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..1275
FORMULA
EXAMPLE
n\k | 1 2 3 4 5 6 7 8 9 10
1: 1
2: 0 1
3: 0 0 1
4: 0 0 0 1
5: 0 0 0 0 1
6: 1 1 1 0 0 1
7: 1 1 0 1 0 0 1
8: 2 1 1 1 1 0 0 1
9: 2 2 2 1 1 1 0 0 1
10: 3 2 2 1 2 1 1 0 0 1
PROG
(PARI) T(n, k) = {my(m=n-k); if(m>0, polcoef(prod(j=1, m, 1+x^j + O(x*x^m))/(1+x^k) + prod(j=1, m, 1-x^j + O(x*x^m))/(1-x^k), m)/2, m==0)} \\ Andrew Howroyd, Apr 29 2020
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Mircea Merca, Feb 26 2014
EXTENSIONS
Terms a(79) and beyond from Andrew Howroyd, Apr 29 2020
STATUS
approved