This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A045898 #17 Mar 25 2021 19:02:54 %S A045898 1,2,1,3,1,2,4,5,1,2,1,3,1,5,4,3,1,2,1,3,1,2,4,5,1,2,4,3,1,5,4,5,1,2, %T A045898 1,3,1,2,4,5,1,2,1,3,1,5,4,3,1,2,1,3,1,5,4,5,1,2,4,3,1,5,4,3,1,2,1,3, %U A045898 1,2,4,5,1,2,1,3,1,5,4,3,1,2,1,3,1,2,4 %N A045898 a(n) = one of five triples of directions in n-th triple of moves in the optimal solution of the Tower of Hanoi; it is a squarefree sequence over a five-letter alphabet. %C A045898 To construct a(n), consider the six consecutive terms A101608(6*n-5) through A101608(6*n) as a single string (e.g., for n=1 we have 121323, for n=2 we have 123132). Only five different strings occur, corresponding to the five letter alphabet used here. Apply the mapping 121323 -> 1, 123132 -> 2, 213123 -> 3, 123123 -> 4, 213132 -> 5. - _Sean A. Irvine_, Mar 24 2021 %D A045898 Andreas M. Hinz, The Tower of Hanoi, in Algebras and combinatorics (Hong Kong, 1997), 277-289, Springer, Singapore, 1999. %H A045898 Andreas M. Hinz, <a href="http://dx.doi.org/10.5169/seals-87878">Squarefree Tower of Hanoi sequences</a>, Enseign. Math. (2) 42(1996), 257-264. %H A045898 <a href="/index/To#Hanoi">Index entries for sequences related to Towers of Hanoi</a> %Y A045898 Cf. A101608. %K A045898 nonn %O A045898 1,2 %A A045898 _Andreas M. Hinz_, Dec 11 1999 %E A045898 More terms from _Sean A. Irvine_, Mar 24 2021