%I #11 Nov 10 2021 01:16:38
%S 1,0,1,1,0,0,1,0,1,1,0,1,1,0,0,1,0,0,1,0,1,1,0,0,1,0,1,1,0,1,1,0,0,1,
%T 0,1,1,0,1,1,0,0,1,0,0,1,0,1,1,0,0,1,0,0,1,0,1,1,0,0,1,0,1,1,0,1,1,0,
%U 0,1,0,0,1,0,1,1,0,0,1,0,1,1,0,1,1,0,0,1,0,1,1,0,1,1,0,0,1,0,0,1,0,1,1,0,0
%N Fixed point of the morphism 0->100, 1->101, starting from a(1) = 1.
%C Similar to A080846, but with the 1's and 0's interchanged.
%C A generalized choral sequence c(3n+r_0)=0, c(3n+r_1)=1, c(3n+r_c)=c(n), with r_0=1, r_1=0, and r_c=2. [From Joel Reyes Noche (joel.noche(AT)up.edu.ph), Jul 09 2009]
%D J. R. Noche, Generalized Choral Sequences, Matimyas Matematika, 31(2008), 25-28. [From Joel Reyes Noche (joel.noche(AT)up.edu.ph), Jul 09 2009]
%H Michael De Vlieger, <a href="/A137893/b137893.txt">Table of n, a(n) for n = 1..6561</a>
%t Flatten[Nest[#/.{0->{1,0,0},1->{1,0,1}}&,1,5]] (* _Harvey P. Dale_, Jul 29 2015 *)
%o (PARI) a(n) = my(r); until(r,[n,r]=divrem(n,3)); 2-r; \\ _Kevin Ryde_, Nov 09 2021
%Y Cf. A080846 (complement), A060236 (as 1,2), A343785 (as +-1).
%Y Cf. A026179 (indices of 0's except n=1), A189674 (partial sums).
%K easy,nonn
%O 1,1
%A Joel Reyes Noche (joel.noche(AT)up.edu.ph), Apr 30 2008
|