OFFSET
0,3
COMMENTS
See Dershowitz (2017) for precise definition.
LINKS
Nachum Dershowitz, Touchard’s Drunkard, Journal of Integer Sequences, Vol. 20 (2017), #17.1.5.
FORMULA
PROG
(Python)
from math import comb as binomial
def row(n: int) -> list[int]:
return sum(binomial(n, k)*binomial(k, k//2)//(k//2+1)*((k+1) %2)*binomial(n-k, (n-k)//2)**2 for k in range(n+1))
for n in range(26): print(row(n)) # Mélika Tebni, Nov 27 2024
CROSSREFS
KEYWORD
nonn,walk
AUTHOR
N. J. A. Sloane, Apr 09 2018
EXTENSIONS
a(13)-a(25) from Mélika Tebni, Nov 27 2024
STATUS
approved