A261180 Flowsnake phases, exp(I 2 Pi a(n) / 6) are vectors in a sequence that visits points of the hexagonal root lattice A_2.
0, 1, 3, 2, 0, 0, 5, 0, 1, 1, 3, 4, 2, 1, 2, 3, 3, 5, 0, 4, 3, 2, 3, 5, 4, 2, 2, 1, 0, 1, 3, 2, 0, 0, 5, 0, 1, 3, 2, 0, 0, 5, 4, 5, 5, 1, 2, 0, 5, 0, 1, 3, 2, 0, 0, 5, 0, 1, 1, 3, 4, 2, 1, 0, 1, 1, 3, 4, 2, 1, 2, 3, 3, 5, 0, 4, 3, 4, 5, 1, 0, 4, 4, 3, 2, 3, 5, 4, 2, 2, 1, 0, 1, 1, 3, 4, 2, 1, 2, 3, 5, 4, 2, 2, 1
Offset: 1
Links
- Kevin Ryde, Table of n, a(n) for n = 1..10000
- J. H. Conway, Chaim Goodman-Strauss, and N. J. A. Sloane, Recent progress in sphere packing, Current Developments in Mathematics, (1999) 37-76.
- F. Michel Dekking, Morphisms, Symbolic Sequences, and Their Standard Forms, Journal of Integer Sequences, Vol. 19 (2016), Article 16.1.1.
- Martin Gardner, Mathematical Games: In which "monster" curves force redefinition of the word "curve", Scientific American, volume 235, number 6, December 1976, pages 124-133.
- Martin Gardner, Penrose Tiles to Trapdoor Ciphers: And the Return of Dr Matrix, Mathematical Association of America, 1996, chapter 3 (revised and expanded reprint of Mathematical Games article).
- Bradley Klee, A Pit of Flowsnakes, Complex Systems, 24, 4 (2015), section 2.
- Kevin Ryde, PARI/GP Code
- Index entries for sequences that are fixed points of mappings
- Index entries for two-way infinite sequences
Programs
-
Mathematica
FLSN = {P[n_] :> {P[n], M[n - 1], M[n], P[n + 1], P[n], P[n], M[n + 1]}, M[n_] :> {P[n + 1], M[n], M[n], M[n + 1], P[n], P[n - 1], M[n]}}; a[1]=P[0];Map[(a[n_/;IntegerQ[(n - #)/7]]:=Part[Flatten[a[(n + 7 - #)/7] /. FLSN], #]) &, Range[7]]; Mod[a /@ Range[7*7]/.{P[x_]:>Mod[2 x, 6],M[x_]:>Mod[2 x + 3, 6]}, 6]
-
PARI
\\ See links.
Comments