OFFSET
1
COMMENTS
Is this a shifted version of A137893? - R. J. Mathar, May 16 2011
A generalized choral sequence c(3n+r_0)=0, c(3n+r_1)=1, c(3n+r_c)=c(n), with r_0=2, r_1=1, r_c=0, and c(0)=0. - Joel Reyes Noche, Jun 14 2021
REFERENCES
Joel Reyes Noche, Generalized Choral Sequences, Matimyas Matematika, 31(2008), 25-28.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
Joel Reyes Noche, On generalized choral sequences, Gibon, IX(2011), 51-69.
FORMULA
a(3k-2)=a(k), a(3k-1)=1, a(3k)=0 for k>=1, a(0)=0.
G.f. satisfies g(x) = x^2/(1-x^3) + g(x^3)/x^2. - Robert Israel, Feb 15 2017
EXAMPLE
0->010->010110010->
MAPLE
f:= proc(n) option remember;
if n mod 3 = 1 then procname((n+2)/3) else -n mod 3 fi;
end proc:
f(1):= 0:
map(f, [$1..200]); # Robert Israel, Feb 15 2017
MATHEMATICA
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Apr 25 2011
STATUS
approved