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!)
A094060 Number of walks of length n on hexagonal grid that start and end at the origin. Intermediate returns to the origin are not permitted. 2
1, 0, 6, 12, 54, 216, 1032, 4896, 24606, 125040, 651348, 3432168, 18331992, 98814816, 537343632, 2942475552, 16214888286, 89835783264, 500116783740, 2795958732024, 15690597591636, 88354191756816, 499060719941616, 2826794871554112, 16052536475622792 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..1291 (first 97 terms from Ludovic Schwob)
FORMULA
INVERTi transform of A002898. - R. J. Mathar, Sep 29 2020
MAPLE
b:= proc(n) option remember; `if`(n<3, [1, 0, 6][n+1], ((n-1)*
n*b(n-1) +24*(n-1)^2*b(n-2) +36*(n-1)*(n-2)*b(n-3))/n^2)
end:
a:= proc(n) option remember; `if`(n=0, 1,
b(n)-add(a(n-i)*b(i), i=1..n-1))
end:
seq(a(n), n=0..23); # Alois P. Heinz, Dec 07 2020
MATHEMATICA
b[n_] := b[n] = If[n<3, {1, 0, 6}[[n+1]], ((n-1)n b[n-1] + 24(n-1)^2* b[n-2] + 36(n-1)(n-2) b[n-3])/n^2];
a[n_] := a[n] = If[n==0, 1, b[n] - Sum[a[n-i] b[i], {i, 1, n-1}]];
a /@ Range[0, 23] (* Jean-François Alcover, Jan 14 2021, after Alois P. Heinz *)
CROSSREFS
Sequence in context: A117866 A365691 A290999 * A341893 A324529 A076722
KEYWORD
nonn,walk
AUTHOR
Gareth McCaughan (gareth.mccaughan(AT)pobox.com), Jun 10 2004
STATUS
approved

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 April 24 13:30 EDT 2024. Contains 371957 sequences. (Running on oeis4.)