login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A148162 Number of walks within N^3 (the first octant of Z^3) starting at (0,0,0) and consisting of n steps taken from {(-1, -1, 1), (-1, 1, 1), (0, 0, -1), (1, 0, 0)}. 1

%I #8 Apr 12 2019 09:34:38

%S 1,1,2,4,11,31,91,267,813,2557,8236,26786,87847,291227,977068,3308866,

%T 11278661,38653717,133227658,461825572,1608935543,5628584683,

%U 19762998641,69637415101,246214217449,873256171561,3105884952236,11074941003322,39586724293339,141826521919151,509214076570561,1831934157570821

%N Number of walks within N^3 (the first octant of Z^3) starting at (0,0,0) and consisting of n steps taken from {(-1, -1, 1), (-1, 1, 1), (0, 0, -1), (1, 0, 0)}.

%H Robert Israel, <a href="/A148162/b148162.txt">Table of n, a(n) for n = 0..220</a>

%H Alin Bostan and Manuel Kauers, <a href="https://arxiv.org/abs/0811.2899">Automatic Classification of Restricted Lattice Walks</a>, arXiv:0811.2899 [math.CO], 2008-2009.

%F Empirical: -63*(k+3)*(k+2)*(k+1)*a(k)-2*(2*k-1)*(k+3)*(k+2)*a(k+1)+(k+3)*(6*k^2+32*k+31)*a(k+2)-(2*k+9)*(2*k^2+18*k+39)*a(k+3)+(k+4)*(k+6)^2*a(k+4) = 0. - _Robert Israel_, Apr 11 2019

%p Steps:= [[-1,-1,1],[-1,1,1],[0,0,-1],[1,0,0]]:

%p f:= proc(n, p) option remember;

%p if n <= min(p) then return 4^n fi;

%p add(procname(n-1, t), t=remove(has, map(`+`, Steps, p), -1));

%p end proc:

%p A:= map(f, [$0..100], [0, 0, 0]); # _Robert Israel_, Apr 11 2019

%t aux[i_Integer, j_Integer, k_Integer, n_Integer] := Which[Min[i, j, k, n] < 0 || Max[i, j, k] > n, 0, n == 0, KroneckerDelta[i, j, k, n], True, aux[i, j, k, n] = aux[-1 + i, j, k, -1 + n] + aux[i, j, 1 + k, -1 + n] + aux[1 + i, -1 + j, -1 + k, -1 + n] + aux[1 + i, 1 + j, -1 + k, -1 + n]]; Table[Sum[aux[i, j, k, n], {i, 0, n}, {j, 0, n}, {k, 0, n}], {n, 0, 10}]

%K nonn,walk

%O 0,3

%A _Manuel Kauers_, Nov 18 2008

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 19 16:34 EDT 2024. Contains 376014 sequences. (Running on oeis4.)