OFFSET
1,1
COMMENTS
Similar to A080846, but with the 1's and 0's interchanged.
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]
REFERENCES
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]
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..6561
MATHEMATICA
Flatten[Nest[#/.{0->{1, 0, 0}, 1->{1, 0, 1}}&, 1, 5]] (* Harvey P. Dale, Jul 29 2015 *)
PROG
(PARI) a(n) = my(r); until(r, [n, r]=divrem(n, 3)); 2-r; \\ Kevin Ryde, Nov 09 2021
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Joel Reyes Noche (joel.noche(AT)up.edu.ph), Apr 30 2008
STATUS
approved