A317189 A morphic sequence related to the ternary Thue-Morse sequence.
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
Keywords
Links
- Michaël Rao, Michel Rigo, Pavel Salimov, Avoiding 2-binomial squares and cubes, arXiv:1310.4743 [cs.FL], 2013.
- Michaël Rao, Michel Rigo, Pavel Salimov, Avoiding 2-binomial squares and cubes, Theoretical Computer Science, Volume 572, 23 March 2015, Pages 83-91. See proof of Lemma 1.
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