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.
5, 23, 68, 168, 377, 801, 1657, 3377, 6825, 13729, 27545, 55185
Offset: 1
Examples
For n=1 the moves are 23-12-32-31-23 (meaning to move 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.
Links
- Cut The Knot, 3-Colors Tower of Hanoi
- Bodo Zinser, Tower of Hanoi with three colors (explanation of the algorithm)
- Index entries for sequences related to Towers of Hanoi
Comments