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

A089652
Partial sums, modulo 4, of the sequence: a(1)=1, a(1), a(1), a(1), a(1), a(2), a(2), a(2), a(2), a(3), a(3), a(3), a(3), a(4), ... each term (not a(1)) repeated 4 times.
0
1, 2, 3, 0, 1, 3, 1, 3, 1, 0, 3, 2, 1, 1, 1, 1, 1, 2, 3, 0, 1, 0, 3, 2, 1, 2, 3, 0, 1, 0, 3, 2, 1, 2, 3, 0, 1, 1, 1, 1, 1, 0, 3, 2, 1, 3, 1, 3, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 3, 1, 3, 1, 0, 3, 2, 1, 1, 1, 1, 1, 2, 3, 0, 1, 1, 1, 1, 1, 0, 3, 2, 1, 3, 1, 3, 1, 2, 3, 0, 1, 3, 1, 3, 1
OFFSET
1,2
FORMULA
A fixed point of the mapping 1->1230, 2->1313, 3->1032, 0->1111.
MATHEMATICA
Nest[ Function[ l, {Flatten[(l /. {0 -> {1, 1, 1, 1}, 1 -> {1, 2, 3, 0}, 2 -> {1, 3, 1, 3}, 3 -> {1, 0, 3, 2}})] }], {1}, 4] (* Robert G. Wilson v, Mar 04 2005 *)
CROSSREFS
Sequence in context: A179392 A106730 A343713 * A195467 A112168 A072516
KEYWORD
easy,nonn
AUTHOR
Philippe Deléham, Jan 02 2004
EXTENSIONS
More terms from Robert G. Wilson v, Mar 04 2005
STATUS
approved