cp's OEIS Frontend

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.

A170823 An infinite word on the alphabet 1, 2, 3 by Bollobas.

Original entry on oeis.org

1, 2, 3, 2, 1, 2, 3, 1, 3, 2, 3, 1, 2, 1, 3, 2, 3, 1, 3, 2, 1, 2, 3, 2, 1, 2, 3, 1, 3, 2, 3, 1, 2, 1, 3, 1, 2, 3, 2, 1, 3, 1, 2, 1, 3, 2, 3, 1, 3, 2, 3, 1, 2, 1, 3, 1, 2, 3, 2, 1, 2, 3, 1, 3, 2, 1, 2, 3, 2, 1, 3, 1, 2, 1, 3, 2, 3, 1, 3, 2, 3, 1, 2, 1, 3, 1, 2, 3, 2, 1, 3, 1, 2, 1, 3, 2, 3, 1, 3, 2, 1, 2, 3, 2, 1
Offset: 0

Views

Author

N. J. A. Sloane, Dec 25 2009

Keywords

Comments

A concatenation of blocks u_k, k >= 0, where u_k has length 5^k. The sequence is defined recursively - see the Maple code.
From Kevin Ryde, Aug 11 2020: (Start)
Bollobás gives this sequence intending it to be a squarefree ternary word, where squarefree means nowhere a repeat w w for a block w of any length. However, squares do occur in it, for example a(18) onwards is 3212 3212, or a(19) onwards is 2123 2123.
In Bollobás' proof, the signs sequence is A337004. For blocks w of length l=4, the second signs subsequence presented (which should stop at length 7), does in fact occur, as does one other.
- - + + - - + \ two l=4 signs subsequences
- + + - - + + / in A337004 making squares here
All else in the argument holds, and in particular the "peaks" reduction means the only squares are lengths l = 4*5^k.
Zolotov shows this word is cubefree, and weakly squarefree (no x w w x where x is a single symbol and w is a block, possibly empty). However uniform cyclic squarefree must wait for Leech's order 13 morphism in A337005.
(End)

References

  • B. Bollobas, The Art of Mathematics: Coffee Time in Memphis, Cambridge, 2006, pp. 226-228.

Crossrefs

Cf. A337004 (first differences as +1,-1).

Programs

  • Maple
    a:=[1,2,3,2,1]; b:=[2,3,1,3,2]; c:=[3,1,2,1,3]; S:=[1];
    for m from 1 to 6 do S:=subs({1=a[],2=b[],3=c[]},S); od: S;
  • PARI
    my(table=[0,1,2,1,0]); a(n) = my(v=digits(n,5)); sum(i=1,#v,table[v[i]+1]) %3+1; \\ Kevin Ryde, Jul 31 2020