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!)
A192208 Number of n-step prudent self-avoiding walks on hexagonal [= triangular] lattice. 3

%I #44 Feb 23 2022 11:22:47

%S 1,6,30,138,606,2610,11070,46386,192606,793938,3253038,13261746,

%T 53832462,217707762,877594086,3527521794,14142930774,56574143754,

%U 225841103190,899866007610,3579435531846,14215941861138,56378805654510,223297285830858,883326046736814

%N Number of n-step prudent self-avoiding walks on hexagonal [= triangular] lattice.

%C The hexagonal lattice is the familiar 2-dimensional lattice in which each point has 6 neighbors. This is sometimes called the triangular lattice.

%C A prudent walk never takes a step pointing towards a vertex it has already visited. Prudent walks are self-avoiding but not reversible in general.

%H Alois P. Heinz, <a href="/A192208/b192208.txt">Table of n, a(n) for n = 0..61</a>

%H Mireille Bousquet-Mélou, <a href="https://arxiv.org/abs/0804.4843">Families of prudent self-avoiding walks</a>, arXiv:0804.4843. J. Combin. Theory Ser. A 117 no. 3 (2010) 313-344.

%H Enrica Duchi, <a href="https://hal.archives-ouvertes.fr/hal-00159320">On some classes of prudent walks</a>, in: FPSAC'05, Taormina, Italy, 2005.

%H Wikipedia, <a href="https://en.wikipedia.org/wiki/Self-avoiding_walk">Self-avoiding walk</a>

%e Two 5-step self-avoiding walks on hexagonal lattice from (S) to (E), the walk at left is prudent while the walk at right is not prudent:

%e . o---o...o...o...o---o

%e . . \ . \ . . . . . \ . \

%e . o..(S)..o...o...o..(E)..o

%e . . . . / . . . . . . . /

%e . (E)--o...o...o..(S)--o

%p i:= n-> max(n, 0)+1: d:= n-> max(n-1, -1):

%p b:= proc(n, x, y, z, u, v, w) option remember;

%p `if`(n=0, 1, `if`(x>y, b(n, y, x, w, v, u, z),

%p b(n-1, d(x), d(y), z, i(u), i(v), w)+

%p `if`(min(y, z)<=0 or x=-1,

%p b(n-1, d(y), d(z), u, i(v), i(w), x), 0)+

%p `if`(min(z, u)<=0 or y=-1,

%p b(n-1, d(z), d(u), v, i(w), i(x), y), 0)+

%p `if`(min(v, w)<=0 or x=-1,

%p b(n-1, d(v), d(w), x, i(y), i(z), u), 0)+

%p `if`(min(w, x)<=0 or y=-1,

%p b(n-1, d(w), d(x), y, i(z), i(u), v), 0)))

%p end:

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

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

%t i[n_]:= Max[n, 0]+1; d[n_]:= Max[n-1, -1];

%t b[n_, x_, y_, z_, u_, v_, w_] := b[n, x, y, z, u, v, w] = If[n==0, 1, If[x>y, b[n, y, x, w, v, u, z], b[n-1, d[x], d[y], z, i[u], i[v], w]+ If[Min[y, z]<=0 || x==-1, b[n-1, d[y], d[z], u, i[v], i[w], x], 0]+ If[Min[z, u]<=0 || y==-1, b[n-1, d[z], d[u], v, i[w], i[x], y], 0]+ If[Min[v, w]<=0 || x==-1, b[n-1, d[v], d[w], x, i[y], i[z], u], 0]+ If[Min[w, x]<=0 || y==-1, b[n-1, d[w], d[x], y, i[z], i[u], v], 0]]];

%t a[n_]:= If[n==0, 1, 6*b[n-1, -1,-1, 0, 1,1, 0]];

%t Table[a[n],{n,0,20}] (* _Jean-François Alcover_, Aug 10 2017, translated from Maple *)

%Y Cf. A001334, A192871.

%K nonn,walk

%O 0,2

%A _Alois P. Heinz_, Jul 05 2011

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 19 13:29 EDT 2024. Contains 374394 sequences. (Running on oeis4.)