login

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”).

A156352
a(n)=A078649(A054353(n)-n+1)-A054353(n)
0
1, 1, 3, 2, 1, 2, 1, 1, 2, 1, 1, 3, 2, 1, 3, 2, 1, 1, 2, 1, 3, 2, 1, 2, 1, 1, 3, 2, 1, 3, 2, 1, 2, 1, 1, 2, 1, 1, 3, 2, 1, 2, 1, 1, 2, 1, 3, 2, 1, 3, 2, 1, 1, 2, 1, 1, 3, 2, 1, 2, 1, 1, 2, 1, 1, 3, 2, 1, 3, 2, 1, 2, 1, 1, 2, 1, 3, 2, 1, 1, 2, 1, 1, 3, 2, 1, 2, 1, 1, 2, 1, 1, 3, 2, 1, 3, 2, 1, 1, 2, 1, 3, 2, 1, 2
OFFSET
1,3
FORMULA
a(n)=3 iff {A000002(n),A000002(n+1),A000002(n+2)}={2,1,1}
CROSSREFS
Sequence in context: A016457 A181715 A077089 * A175191 A328928 A370560
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Feb 08 2009
STATUS
approved