login
A305490
Fixed point of the morphism 0->120, 1->110, 2->100.
3
1, 1, 0, 1, 1, 0, 1, 2, 0, 1, 1, 0, 1, 1, 0, 1, 2, 0, 1, 1, 0, 1, 0, 0, 1, 2, 0, 1, 1, 0, 1, 1, 0, 1, 2, 0, 1, 1, 0, 1, 1, 0, 1, 2, 0, 1, 1, 0, 1, 0, 0, 1, 2, 0, 1, 1, 0, 1, 1, 0, 1, 2, 0, 1, 1, 0, 1, 2, 0, 1, 2, 0, 1, 1, 0, 1, 0, 0, 1, 2, 0, 1, 1, 0, 1, 1
OFFSET
1,8
COMMENTS
This sequence is used to generate the anti-tribonacci sequence, A265389. The positions of 1 are also the positions of 0 in Stewart's choral sequence, A116178.
LINKS
Clark Kimberling, Table of n, a(n) for n = 1..10000 [a(9842) corrected by Zhuorui He, Sep 04 2025]
EXAMPLE
1 -> 110 -> 110110120 -> ...
MATHEMATICA
Nest[Flatten[# /. {0 -> {1, 2, 0}, 1 -> {1, 1, 0}, 2 -> {1, 0, 0}}] &, {0}, 9];
PROG
(PARI) A305490(n) = {n--; while(n%9==4, n=n\9); [1, 1, 0, 1, 1, 0, 1, 2, 0][n%9+1]}; \\ Zhuorui He, Sep 04 2025
CROSSREFS
Cf. A265389, A116178, A305495 (positions of 0), A189636 (positions of 1), A305496 (positions of 2).
Sequence in context: A164067 A353918 A387790 * A374060 A375149 A392629
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Jun 02 2018
STATUS
approved