OFFSET
0,8
COMMENTS
Expected time to reach one of the boundaries at +n or -k for the first time is n*k, i.e. A004247.
FORMULA
T(n, k) =nk(n^2+k^2-2)/3 =T(n+1, k-1)/2+T(n-1, k+1)/2+(n-k)^2 with T(n, 0)=T(0, k)=0. T(n, n)=n^2*(n^2-1)*2/3=8*A002415(n).
EXAMPLE
Rows start 0,0,0,0,0,0,0,...; 0,0,2,8,20,40,70...; 0,2,8,22,48,90,152...; 0,8,22,48,92,160,258...; etc.
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Henry Bottomley, Apr 29 2002
STATUS
approved