OFFSET
0,4
FORMULA
T(n, k) = (2^k - (-1)^k + n*(2^(k + 1) + (-1)^k))/3.
G.f.: (x*(y-1) - y)/((x - 1)^2*(y + 1)*(2*y - 1)). - Stefano Spezia, Jul 13 2022
EXAMPLE
MATHEMATICA
T[n_, k_] := (2^k - (-1)^k + n*(2^(k + 1) + (-1)^k))/3; Table[T[n - k, k], {n, 0, 10}, {k, 0, n}] // Flatten (* Amiram Eldar, Jul 13 2022 *)
CROSSREFS
KEYWORD
AUTHOR
Paul Curtz, Jul 13 2022
STATUS
approved