OFFSET
0,6
COMMENTS
FORMULA
EXAMPLE
[n\k 0 1 2 3 4 5 6 7]
[0] 1,
[1] 0, 1,
[2] 1, 0, 2,
[3] 0, 2, 0, 4,
[4] 1, 0, 5, 0, 9,
[5] 0, 3, 0, 12, 0, 21,
[6] 1, 0, 9, 0, 30, 0, 51,
[7] 0, 4, 0, 25, 0, 76, 0, 127.
PROG
(Sage)
@CachedFunction
def T(p, q):
if p == 0 and q == 0: return 1
if p < 0 or p > q: return 0
return T(p-2, q) + T(p-1, q-1) + T(p, q-2)
[[T(p, q) for p in (0..q)] for q in (0..9)]
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Peter Luschny, Mar 05 2014
STATUS
approved