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!)
A290187 Minimum number of moves to rearrange a Tower of Hanoi puzzle with 3 colors. There are 3 rods with n discs in descending sizes. On the first rod there are n red discs, on the 2nd n blue discs and on the 3rd n white ones. 1
5, 23, 68, 168, 377, 801, 1657, 3377, 6825, 13729, 27545, 55185 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Like the known Tower of Hanoi you have 3 rods with n discs in descending sizes. But here on the first rod there are n red discs, on the 2nd n blue discs and on the 3rd n white ones.
The task is to rearrange the discs so that red ones go to rod 2, the blue ones to rod 3 and the white ones to rod 1. Sequence lists the number of minimum moves needed to rearrange the discs.
I have written a program to find the minimum moves, it might be improved for higher values.
LINKS
Bodo Zinser, Tower of Hanoi with three colors (explanation of the algorithm)
EXAMPLE
For n=1 the moves are 23-12-32-31-23 (meaning to moves a disc from rod 2 to 3, then 1 to 2, ...
For n=2 the moves are 31-21-23-13-13-13-12-31-31-31-32-12-12-12-31-21-21-21-23-13-13-12-31.
CROSSREFS
Cf. A000225, A055622 (another 3-color variant of the Towers of Hanoi).
Sequence in context: A106956 A084671 A284648 * A243442 A064395 A230497
KEYWORD
nonn,more
AUTHOR
Bodo Zinser, Jul 23 2017
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 17:51 EDT 2024. Contains 371962 sequences. (Running on oeis4.)