OFFSET
1,2
COMMENTS
Also, the number of walks within Z^2 starting and ending at (0,0) and consisting of 2n steps taken from {(-1, 0), (0, -1), (0, 1), (1, 0)} such that the walk does not stay inside the half plane N X Z. - Richard Ehrenborg, Jun 18 2026
LINKS
Richard Ehrenborg, Gábor Hetyei and Margaret Readdy, Parking trees and the toric g-vector of nestohedra,arXiv:2511.04815 [math.CO], 2026.
Richard J. Mathar, Random Walk on the Square Lattice: Return to (0,0) with or without passing (1,0) (Sep 2020)
FORMULA
a(n) = A001791(n)^2.
G.f.: x*4F3(3/2, 3/2, 2, 2; 1, 3, 3; 16*x).
D-finite with recurrence (n-1)^2*(n+1)^2*a(n) - 4*n^2*(2*n-1)^2*a(n-1) = 0.
a(n) = (2n)!*[x^(2n)] BesselI(0, 2x)*BesselI(2, 2x). - Peter Luschny, Dec 05 2024
a(n) ~ 16^n / (Pi*n). - Amiram Eldar, Oct 16 2025
EXAMPLE
a(2) = 16 counts the walks RRRL, RRLR, RLRR, LRRR, RRUD, RRDU, RDRU, RURD, RUDR, RDUR, URRD, DRRU, URDR, DRUR, UDRR, DURR of length 4.
MAPLE
egf := BesselI(0, 2*x)*BesselI(2, 2*x): ser := series(egf, x, 40):
seq((2*n)!*coeff(ser, x, 2*n), n = 1..19); # Peter Luschny, Dec 05 2024
MATHEMATICA
a[n_] := Binomial[2*n, n-1]^2; Array[a, 20, 0] (* Amiram Eldar, Oct 16 2025 *)
CROSSREFS
KEYWORD
nonn,easy,walk,changed
AUTHOR
R. J. Mathar, Sep 29 2020
STATUS
approved
