OFFSET
0,2
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..242
EXAMPLE
a(0) = 1: 1.
a(1) = 2: 213, 312.
a(2) = 6: 23154, 24153, 25143, 34152, 35142, 45132.
MAPLE
b:= proc(u, o) option remember; `if`(u+o=0, 1,
add(b(o-1+j, u-j), j=1..u))
end:
a:= n-> binomial(2*n, n)*b(n, 0)^2:
seq(a(n), n=0..20);
PROG
(Python)
from itertools import accumulate
from math import comb
def A362581(n):
if n <= 1: return n+1
blist = (0, 1)
for _ in range(n-1):
blist = tuple(accumulate(reversed(blist), initial=0))
return blist[-1]**2*comb(n<<1, n) # Chai Wah Wu, Apr 25 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Apr 25 2023
STATUS
approved