%I #21 Jan 28 2019 08:10:05
%S 0,1,4,11,30,83,236,687,2026,6023,17984,53819,161254,483451,1449876,
%T 4348903,13045602,39135119,117402792,352204467,1056607454
%N Magnetic Tower of Hanoi, total number of moves, optimally solving the [NEUTRAL ; NEUTRAL ; NEUTRAL] pre-colored puzzle.
%C A. The Magnetic Tower of Hanoi puzzle is described in link 1 listed below. The Magnetic Tower is pre-colored. Pre-coloring is [NEUTRAL ; NEUTRAL ; NEUTRAL], given in [Source ; Intermediate ; Destination] order. Thus, the tower in this case is "natural" or "free". The solution algorithm producing the sequence is optimal (the sequence presented gives the minimum number of moves to solve the "free" Magnetic Tower of Hanoi puzzle). Optimal solutions are discussed and their optimality is proved in link 2 listed below.
%C B. Number of moves to solve the given puzzle, for large N, is close to 0.5*(20/33)*3^N ~ 0.5*0.606*3^(N). Series designation: S606(N).
%C C. The large N ratio of number of moves to solve the [NEUTRAL ; NEUTRAL ; NEUTRAL] puzzle to the number of moves to solve the [RED ; BLUE ; BLUE] or [RED ; RED ; BLUE] puzzle is 20/33 or about 60.6% (see link 2).
%D "The Magnetic Tower of Hanoi", Uri Levy, Journal of Recreational Mathematics, Volume 35 Number 3 (2006), 2010, pp 173.
%H Uri Levy, <a href="http://arxiv.org/abs/1003.0225">The Magnetic Tower of Hanoi</a>, arXiv:1003.0225 [math.CO], 2010.
%H Uri Levy, <a href="http://arxiv.org/abs/1011.3843">Magnetic Towers of Hanoi and their Optimal Solutions</a>, arXiv:1011.3843 [math.CO], 2010.
%H Web applet, <a href="http://www.weizmann.ac.il/zemed/davidson_online/mtoh/MTOHeng.html">to play The Magnetic Tower of Hanoi</a>
%H <a href="/index/Rec#order_05">Index entries for linear recurrences with constant coefficients</a>, signature (4,-2,-2,-5,6).
%F G.f. x*(-2*x^4-4*x^3-3*x^2+1)/(-6*x^5+5*x^4+2*x^3+2*x^2-4*x+1).
%F Recurrence Relations (a(n)=S606(n) as in referenced paper):
%F S606(n) = S636(n-1)+ S636(n-2)+ S909(n-2)+ 3^(n-2)+ 2; n >= 2; S909(0) = 0; S636(0) = 0
%F Note: S636(n) and S909(n) are sequences A183116 and A183112 respectively.
%F Closed-Form Expression: Let
%F λ1 = [1+sqrt(26/27)]^(1/3) + [1-sqrt(26/27)]^(1/3)
%F λ2 = -0.5*λ1 + 0.5*i*{[sqrt(27)+sqrt(26)]^(1/3)- [sqrt(27)-sqrt(26)]^(1/3)}
%F λ3 = -0.5*λ1 - 0.5*i*{[sqrt(27)+sqrt(26)]^(1/3)- [sqrt(27)-sqrt(26)]^(1/3)}
%F AS = [(7/11)* λ2* λ3 - (10/11)*(λ2 + λ3) + (19/11)]/[(λ2 - λ1)*( λ3 - λ1)]
%F BS = [(7/11)* λ1* λ3 - (10/11)*(λ1 + λ3) + (19/11)]/[(λ1 - λ2)*( λ3 - λ2)]
%F CS = [(7/11)* λ1* λ2 - (10/11)*(λ1 + λ2) + (19/11)]/[(λ2 - λ3)*( λ1 - λ3)]
%F Then, for n > 0:
%F S606(n) = (10/33)*3^n + 0.5*AS*[(λ1 + 1)^2]*λ1^(n-1) + 0.5*BS*[(λ2 + 1)^2]*λ2^(n-1) + 0.5*CS*[(λ3 + 1)^2]*λ3^(n-1) - 2
%t Join[{0}, LinearRecurrence[{4, -2, -2, -5, 6}, {1, 4, 11, 30, 83}, 20]] (* _Jean-François Alcover_, Jan 28 2019 *)
%Y A183117 is an "original" sequence describing the number of moves of disk number k, optimally solving the pre-colored puzzle at hand. The integer sequence listed above is the partial sums of the A183117 original sequence.
%Y A003462 "Partial sums of A000244" is the sequence (also) describing the total number of moves solving [RED ; BLUE ; BLUE] or [RED ; RED ; BLUE] pre-colored Magnetic Tower of Hanoi puzzle.
%Y A183111 through A183125 are related sequences, all associated with various solutions of the pre-coloring variations of the Magnetic Tower of Hanoi.
%K nonn
%O 0,3
%A _Uri Levy_, Jan 01 2011