OFFSET
0,2
COMMENTS
This is the case r = 2 of the more general recurrence: T(n, k, r) = T(n-1, k, r) + r^(n-1)*T(n - 2, k - 1, r), if k > 0 and T(n, 0, r) = 1 + (r^n - 1)/(r - 1) if r > 1. Consider the sequence b(n) = Sum_{k=0..n-1} b(n - k - 1)*T(n - 1, k, r)*(-1)^k, with b(0) = 1. The sequence b(n) will have an ordinary generating function which can be represented as the continued fraction expansion: 1/(1 - x/(1 - r^0*x/(1 - r^1*x/(1 - r^2*x/(1 - r^3*x/(...)))))). In short b(n) will have the ordinary generating function 1/(1-G(x)*x), where G(x) is the generating function of the Carlitz-Riordan q-Catalan numbers for q = r. The Hankel determinant of b(0)..b(2*n) will be r^A016061(n). The Hankel determinant of b(1)..b(2*n+1) will be r^A002412(n).
FORMULA
Column k has o.g.f.: x^(2*k)*2^(k^2)/((1 - 2^(k+1)*x)*Product_{m=1..k}(1 - 2^(m-1)*x)).
EXAMPLE
Triangle begins:
n\k 0 | 1 | 2 | 3 | 4 | 5
[0] 1,
[1] 2, 0
[2] 4, 2, 0
[3] 8, 10, 0, 0
[4] 16, 42, 16, 0, 0
[5] 32, 170, 176, 0, 0, 0
PROG
(PARI) T(n, k) = if(n < 0, return(0), return(if(k == 0, return(2^n), T(n-1, k) + 2^(n-1)*T(n-2, k-1))))
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Thomas Scheuerle, Oct 17 2024
STATUS
approved
