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

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A361297 Number of n-dimensional cubic lattice walks with 2n steps from origin to origin and avoiding early returns to the origin. 3

%I #20 May 27 2023 06:54:44

%S 1,2,20,996,108136,19784060,5389230384,2031493901304,1009373201680848,

%T 638377781979995244,500510427096797296240,476433596774288713285352,

%U 541348750963243079098368768,723928411313545718524263072248,1125748074023593276830674831519936

%N Number of n-dimensional cubic lattice walks with 2n steps from origin to origin and avoiding early returns to the origin.

%C a(n) is a multiple of 2n for n>=1.

%H Alois P. Heinz, <a href="/A361297/b361297.txt">Table of n, a(n) for n = 0..212</a>

%F a(n) = A361397(n,n).

%F From _Vaclav Kotesovec_, Apr 23 2023: (Start)

%F a(n) ~ c * d^n * n^(2*n), where d = 1.138128465642... and c = 1.72802011936...

%F a(n) ~ A303503(n). (End)

%p b:= proc(n, l) option remember; add(add((h-> `if`(n<=

%p add(v, v=h), 0, `if`(n=1, 1, `if`(h[-1]=0, 0,

%p b(n-1, h)))))(sort(subsop(i=abs(l[i]+j), l))),

%p j=[-1, 1]), i=1..nops(l))

%p end:

%p a:= n-> `if`(n=0, 1, b(2*n, [0$n])):

%p seq(a(n), n=0..15);

%p # second Maple program:

%p b:= proc(n, i) option remember; `if`(n=0 or i=1, 1,

%p add(b(n-j, i-1)*binomial(n, j)^2, j=0..n))

%p end:

%p g:= proc(n, k) option remember; `if` (n<1, -1,

%p -add(g(n-i, k)*(2*i)!*b(i, k)/i!^2, i=1..n))

%p end:

%p a:= n-> abs(g(n$2)):

%p seq(a(n), n=0..15);

%t b[n_, i_] := b[n, i] = If[n == 0 || i == 1, 1, Sum[b[n - j, i - 1]*Binomial[n, j]^2, {j, 0, n}]];

%t g[n_, k_] := g[n, k] = If [n < 1, -1, -Sum[g[n - i, k]*(2i)!* b[i, k]/i!^2, {i, 1, n}]];

%t a[n_] := Abs[g[n, n]];

%t Table[a[n], {n, 0, 15}] (* _Jean-François Alcover_, May 27 2023, from 2nd Maple program *)

%Y Main diagonal of A361397.

%Y Cf. A005843, A303503.

%K nonn,walk

%O 0,2

%A _Alois P. Heinz_, Mar 08 2023

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | 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 July 16 16:26 EDT 2024. Contains 374358 sequences. (Running on oeis4.)