login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A005665 Tower of Hanoi with cyclic moves only.
(Formerly M3857)
3
0, 1, 5, 15, 43, 119, 327, 895, 2447, 6687, 18271, 49919, 136383, 372607, 1017983, 2781183, 7598335, 20759039, 56714751, 154947583, 423324671, 1156544511, 3159738367, 8632565759, 23584608255, 64434348031, 176037912575, 480944521215, 1313964867583, 3589818777599, 9807567290367 (list; graph; refs; listen; history; internal format)
OFFSET

0,3

COMMENTS

This looks like sequence A(0,1;2,2;3) of the family of sequences [a,b:c,d:k] considered by G. Detlefs, and treated as A(a,b;c,d;k) in the W. Lang link given below [From Wolfdieter Lang, Oct 18 2010]

REFERENCES

J.-P. Allouche, Note on the cyclic towers of Hanoi, Theoret. Comput. Sci., 123 (1994), 3-7.

M. D. Atkinson, The Cyclic Towers of Hanoi, Info. Proc. Letters, 13 (1981), 118-119.

R. L. Graham, D. E. Knuth and O. Patashnik, Concrete Mathematics. Addison-Wesley, Reading, MA, 1990, p. 18.

Math. Mag., vol. 67, no. 5, p. 339, Dec '94.

D. G. Poole, The towers and triangles of Professor Claus (or, Pascal knows Hanoi), Math. Mag., 67 (1994), 323-344.

N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

LINKS

Vincenzo Librandi, Table of n, a(n) for n = 0..1000

S. Alejandre, Legend of Towers of Hanoi

S. Plouffe, Approximations de S\'{e}ries G\'{e}n\'{e}ratrices et Quelques Conjectures, Dissertation, Universit\'{e} du Qu\'{e}bec \`{a} Montr\'{e}al, 1992.

S. Plouffe, 1031 Generating Functions and Conjectures, Universit\'{e} du Qu\'{e}bec \`{a} Montr\'{e}al, 1992.

W. Lang, Notes on certain inhomogeneous three term recurrences. [From Wolfdieter Lang (wolfdieter.lang(AT)physik.uni-karlsruhe.de), Oct 18 2010]

FORMULA

G.f.: x*(1+2*x)/(1-3*x+2*x^3); a(n)=((sqrt(3)+1)^(n+1)+(sqrt(3)-1)^(n+1)*(-1)^n)*sqrt(3)/6-1; - Paul Barry, Sep 05 2006

a(n) = 2*a(n-1) + 2*a(n-2) + 3 - John W. Layman.

a(n) = (1/(2*s3))*((1+s3)^(n+1)-(1-s3)^(n+1))-1 where s3 = sqrt(3).

a(n) = 3*a(n-1) - 2*a(n-3), a(0)=0, a(1)=1, a(2)=5 (from the given o.g.f.). Obverved by G. Detlefs. See the W. Lang link. [From Wolfdieter Lang, Oct 18 2010]

MAPLE

A005665:=z*(1+2*z)/(z-1)/(2*z**2+2*z-1); [Conjectured (correctly) by S. Plouffe in his 1992 dissertation.]

MATHEMATICA

a[n_] := Simplify[ ((1 + Sqrt[3])^(n+1) - (1 - Sqrt[3])^(n+1))*Sqrt[3]/6 - 1]; Table[a[n], {n, 0, 30}] (* From Jean-François Alcover, Dec 14 2011, after Paul Barry *)

PROG

(MAGMA) [Floor(((Sqrt(3)+1)^(n+1)+(Sqrt(3)-1)^(n+1)*(-1)^n)*Sqrt(3)/6-1): n in [0..30] ]; // Vincenzo Librandi, Aug 19 2011

CROSSREFS

Cf. A007664, A007665.

Sequence in context: A200760 A032193 A178965 * A025471 A064453 A059251

Adjacent sequences:  A005662 A005663 A005664 * A005666 A005667 A005668

KEYWORD

nonn,nice

AUTHOR

N. J. A. Sloane (njas(AT)research.att.com).

EXTENSIONS

More terms from Vincenzo Librandi, Aug 19 2011

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 17 13:24 EST 2012. Contains 206031 sequences.