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.

A317189 A morphic sequence related to the ternary Thue-Morse sequence.

Original entry on oeis.org

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

Views

Author

N. J. A. Sloane, Jul 30 2018

Keywords

Crossrefs

Programs

  • Mathematica
    Nest[Flatten[# /. {1 -> {2, 0}, 2 -> {1}, 0 -> {2, 1, 0}}] &, {2}, 9 (* must be an odd integer*)] (* Robert G. Wilson v, Jul 30 2018 *)

Formula

a(n) = A036577(n), n>0, a(0) = 1. - Michel Dekking, Oct 15 2019

Extensions

More terms from Robert G. Wilson v, Jul 30 2018