OFFSET
0,2
FORMULA
T(x,y) = (x+y+1) * binomial(x+y+2,x+1) * binomial(x+y,x) - binomial(2*x+2*y+2,2*x+1) / 2.
EXAMPLE
T(1,1) = 26, because the two lattice paths are DR and RD. (DR,DR) and (RD,RD) have three common points, (DR,RD) and (RD,DR) have two common points, and 2*3^2+2*2^2 = 26. - Charlie Neder, Jun 26 2019
The triangle begins:
1,
4, 26,
9, 92, 474,
16, 240, 1704, 8084,
25, 520, 4879, 29560, 134450,
...
PROG
(PARI) a(x, y) = (x+y+1)*binomial(x+y+2, x+1)*binomial(x+y, x)-binomial(2*x+2*y+2, 2*x+1)/2;
for (n=0, 10, for (k=0, n, print1(a(n, k), ", ")); print) \\ Michel Marcus, Apr 08 2019
CROSSREFS
KEYWORD
AUTHOR
Günter Rote, Mar 05 2019
STATUS
approved