|
|
A151353
|
|
Number of walks within N^2 (the first quadrant of Z^2) starting and ending at (0,0) and consisting of n steps taken from {(-1, -1), (-1, 0), (0, -1), (1, 1)}.
|
|
0
|
|
|
1, 0, 1, 2, 2, 14, 21, 76, 252, 566, 2282, 6248, 19958, 69356, 205129, 720868, 2340178, 7692570, 26681224, 87814024, 302838250, 1035805496, 3526054994, 12286338876, 42255768876, 147090631152, 513835481206, 1790785075144, 6298459417432, 22120204885156, 77965202090697, 275780508039312, 975587671958542
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,4
|
|
LINKS
|
|
|
MATHEMATICA
|
aux[i_Integer, j_Integer, n_Integer] := Which[Min[i, j, n] < 0 || Max[i, j] > n, 0, n == 0, KroneckerDelta[i, j, n], True, aux[i, j, n] = aux[-1 + i, -1 + j, -1 + n] + aux[i, 1 + j, -1 + n] + aux[1 + i, j, -1 + n] + aux[1 + i, 1 + j, -1 + n]]; Table[aux[0, 0, n], {n, 0, 25}]
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,walk
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|