Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I #4 Jan 20 2014 22:18:26
%S 1,2,2,2,2,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,2,2,1,2,2,2,2,
%T 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
%U 2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,2,2,1,2,2,2,2,2,2,1,1,2,2,2,2,2,2,2,2,2,2
%N Sequence given by: a(0)=1, a(1)=2, and the formula a(n)=a(abs(floor((1/3)*n-a(n-2)))) for n>=2.
%e a(2)=a(abs(floor(-2/3)))=a(1)=2. a(3)=a(abs(1-a(1)))=a(1)=2. a(4)=a(abs(floor(4/3-2)))=a(1)=2. a(5)=a(abs(floor(5/3-a(3))))=a(1)=2. a(6)=a(2-a(4))=a(0)=1.
%Y Cf. A174353.
%K easy,nonn
%O 0,2
%A _Richard Choulet_, Mar 26 2010