A183117
Magnetic Tower of Hanoi, number of moves of disk number k, optimally solving the [NEUTRAL ; NEUTRAL ; NEUTRAL] pre-colored puzzle.
Original entry on oeis.org
0, 1, 3, 7, 19, 53, 153, 451, 1339, 3997, 11961, 35835, 107435, 322197, 966425, 2899027, 8696699, 26089517, 78267673, 234801675, 704402987, 2113205861, 6339612857, 19018831395, 57056483259, 171169433149, 513508274169, 1540524784027, 4621574293547, 13864722791605, 41594168239321
Offset: 0
- Uri Levy, The Magnetic Tower of Hanoi, Journal of Recreational Mathematics, Volume 35 Number 3 (2006), 2010, pp. 173.
A000244 "Powers of 3" is the sequence (also) describing the number of moves of the k-th disk solving [RED ; BLUE ; BLUE] or [RED ; RED ; BLUE] pre-colored Magnetic Tower of Hanoi puzzle.
A183111 through
A183125 are related sequences, all associated with various solutions of the pre-coloring variations of the Magnetic Tower of Hanoi.
-
L1 = Root[-2 - # + #^3&, 1];
L2 = Root[-2 - # + #^3&, 3];
L3 = Root[-2 - # + #^3&, 2];
AP = Root[-2 - 9# - 52 #^2 + 572 #^3&, 1];
BP = Root[-2 - 9# - 52 #^2 + 572 #^3&, 3];
CP = Root[-2 - 9# - 52 #^2 + 572 #^3&, 2];
a[0] = 0;
a[n_] := (1/2) AP (L1+1)^2 L1^(n-1) + (1/2) BP (L2+1)^2 L2^(n-1) + (1/2) CP (L3+1)^2 L3^(n-1) + (20 3^(n-1))/33;
Table[a[n] // Round, {n, 0, 30}] (* Jean-François Alcover, Dec 03 2018 *)
A183116
Magnetic Tower of Hanoi, total number of moves, optimally solving the [RED ; NEUTRAL ; NEUTRAL] or [NEUTRAL ; NEUTRAL ; BLUE] pre-colored puzzle.
Original entry on oeis.org
0, 1, 4, 11, 30, 85, 244, 715, 2118, 6309, 18860, 56475, 169262, 507541, 1522244, 4566155, 13697590, 41091429, 123272252, 369813659, 1109436254
Offset: 0
- "The Magnetic Tower of Hanoi", Uri Levy, Journal of Recreational Mathematics, Volume 35 Number 3 (2006), 2010, pp 173.
A183115 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
A183115 original sequence.
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.
A183111 through
A183125 are related sequences, all associated with various solutions of the pre-coloring variations of the Magnetic Tower of Hanoi.
-
L1 = Root[-2 - # + #^3&, 1];
L2 = Root[-2 - # + #^3&, 3];
L3 = Root[-2 - # + #^3&, 2];
AP = Root[-2 - 9 # - 52 #^2 + 572 #^3&, 1];
BP = Root[-2 - 9 # - 52 #^2 + 572 #^3&, 3];
CP = Root[-2 - 9 # - 52 #^2 + 572 #^3&, 2];
(* b = A183115 *) b[0] = 0; b[n_] := (7/11) 3^(n-1) + AP (L1+1) L1^(n-1) + BP (L2+1) L2^(n-1) + CP (L3+1) L3^(n-1) // Round;
Array[b, 21, 0] // Accumulate (* Jean-François Alcover, Jan 30 2019 *)
A183120
Magnetic Tower of Hanoi, number of moves of disk number k, generated by a certain algorithm, yielding a "forward moving" non-optimal solution of the [RED ; NEUTRAL ; NEUTRAL] or [NEUTRAL ; NEUTRAL ; BLUE] pre-colored puzzle.
Original entry on oeis.org
0, 1, 3, 7, 19, 55, 159, 471, 1403, 4199, 12583, 37735, 113187, 339543, 1018607, 3055799, 9167371, 27502087, 82506231, 247518663, 742555955, 2227667831, 6683003455, 20049010327, 60147030939, 180441092775, 541323278279, 1623969834791, 4871909504323
Offset: 0
- Uri Levy, The Magnetic Tower of Hanoi, Journal of Recreational Mathematics, Volume 35 Number 3 (2006), 2010, pp 173.
- Uri Levy, The Magnetic Tower of Hanoi, arXiv:1003.0225 [math.CO], 2010.
- Uri Levy, Magnetic Towers of Hanoi and their Optimal Solutions, arXiv:1011.3843 [math.CO], 2010.
- Uri Levy, to play The Magnetic Tower of Hanoi, web applet
- Index entries for linear recurrences with constant coefficients, signature (4,-2,-4,3).
Cf.
A100702 - is a sequence also describing the number of moves of disk number k, generated by another algorithm, designated "67", yielding a "forward moving" non-optimal solution of the [RED ; NEUTRAL ; NEUTRAL] or [NEUTRAL ; NEUTRAL ; BLUE] pre-colored puzzle at hand. Recurrence relations for this sequence is a(k) = 3*a(k-1) - 2 and the closed-form expression is (2/3)*3^(k-1)+1. Large k limit is clearly (2/3)*3^(k-1) =~ 0.67*3^(k-1), and sequence designation is thus P67(k). The (non-optimal) "67" algorithm solving the Magnetic Tower of Hanoi with the given pre-coloring configuration yielding the P67(k) sequence (given by
A100702) is explicitly described and discussed in the paper referenced in link 1 above.
Cf.
A000244 - "Powers of 3" is the sequence (also) describing the number of moves of the k-th disk solving [RED ; BLUE ; BLUE] or [RED ; RED ; BLUE] pre-colored Magnetic Tower of Hanoi puzzle.
-
nxt[{a_,b_}]:=Module[{c=3b-2(a+1)},{a+1,If[EvenQ[a+1],c+6,c+8]}]; Join[ {0,1,3,7},Transpose[NestList[nxt,{4,19},25]][[2]]] (* or *) Join[ {0,1,3},LinearRecurrence[{4,-2,-4,3},{7,19,55,159},40]] (* Harvey P. Dale, May 04 2012 *)
A183121
Magnetic Tower of Hanoi, total number of moves, generated by a certain algorithm, yielding a "forward moving" non-optimal solution of the [RED ; NEUTRAL ; NEUTRAL] or [NEUTRAL ; NEUTRAL ; BLUE] pre-colored puzzle.
Original entry on oeis.org
0, 1, 4, 11, 30, 85, 244, 715, 2118, 6317, 18900, 56635, 169822, 509365, 1527972, 4583771, 13751142, 41253229, 123759460, 371278123, 1113834078, 3341501909, 10024505364, 30073515691, 90220546630, 270661639405, 811984917684, 2435954752475, 7307864256798, 21923592769717, 65770778308420, 197312334924475
Offset: 0
- U. Levy, The Magnetic Tower of Hanoi, Journal of Recreational Mathematics, Volume 35 Number 3 (2006), 2010, pp 173.
- Muniru A Asiru, Table of n, a(n) for n = 0..2000
- U. Levy, The Magnetic Tower of Hanoi, arXiv:1003.0225 [math.CO], 2010.
- U. Levy, Magnetic Towers of Hanoi and their Optimal Solutions, arXiv:1011.3843, 2010.
- U. Levy, to play The Magnetic Tower of Hanoi, web applet. [Broken link]
- Index entries for linear recurrences with constant coefficients, signature (5,-6,-2,7,-3).
A183120 - is an "original" sequence describing the number of moves of disk number k, solving the pre-colored puzzle at hand when executing the "64" algorithm mentioned above.
A104743 - is a sequence also describing the total number of moves, generated by another algorithm, designated "67", yielding a "forward moving" non-optimal solution of the [RED ; NEUTRAL ; NEUTRAL] or [NEUTRAL ; NEUTRAL ; BLUE] pre-colored puzzle at hand. Recurrence relations for this sequence is a(n) = a(n-1) + 2*3^(n-2) + 1 and the closed-form expression is 3^(n-1) + n - 1. Large N limit is 0.5*(2/3)*3^N =~ 0.5*0.67*3^N, and sequence designation is thus S67(n). The (non-optimal) "67" algorithm solving the Magnetic Tower of Hanoi with the given pre-coloring configuration yielding the S67(n) sequence (given by
A104743) is explicitly described and discussed in the paper referenced in link 1 above.
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.
-
I:=[0,1,4,11,30,85,244]; [n le 7 select I[n] else 5*Self(n-1)-6*Self(n-2)-2*Self(n-3)+7*Self(n-4)-3*Self(n-5): n in [1..35]]; // Vincenzo Librandi, Dec 04 2018
-
seq(coeff(series(x*(1-x-3*x^2+x^3+2*x^4-4*x^5)/((1+x)*(1-3*x)*(1-x)^3)), x,n+1), x, n), n = 0 .. 35); # Muniru A Asiru, Dec 04 2018
-
Join[{0, 1}, LinearRecurrence[{5, -6, -2, 7, -3}, {4, 11, 30, 85, 244}, 30]] (* Jean-François Alcover, Dec 04 2018 *)
CoefficientList[Series[x*(1-x-3*x^2+x^3+2*x^4-4*x^5)/((1+x)*(1-3*x)*(1-x)^3), {x, 0, 33}], x] (* Vincenzo Librandi, Dec 04 2018 *)
-
my(x='x+O('x^30)); concat([0], Vec(x*(1-x-3*x^2+x^3+2*x^4-4*x^5)/ ((1+x)*(1-3*x)*(1-x)^3))) \\ G. C. Greubel, Dec 04 2018
-
s=(x*(1-x-3*x^2+x^3+2*x^4-4*x^5)/((1+x)*(1-3*x)*(1-x)^3) ).series(x, 30); s.coefficients(x, sparse=False) # G. C. Greubel, Dec 04 2018
Showing 1-4 of 4 results.
Comments