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

A120728
a(n) = floor(e^n) modulo 3.
0
2, 1, 2, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1, 2, 2, 1, 0, 2, 2, 2, 1, 1, 1, 2, 2, 0, 2, 1, 2, 0, 2, 1, 1, 2, 2, 2, 1, 0, 1, 2, 0, 2, 1, 0, 0, 0, 2, 1
OFFSET
1,1
COMMENTS
This sequence is not unique to e; there are infinitely many numbers x such that mod(floor(x^n), 3) will produce the same sequence. - Franklin T. Adams-Watters, Sep 29 2011.
MATHEMATICA
Table[Mod[Floor[Exp[n]], 3], {n, 1, 50}]
Table[Floor[Exp[n]] - 3*Floor[Exp[n]/3], {n, 1, 50}]
CROSSREFS
Sequence in context: A094114 A104607 A368734 * A092149 A303975 A171099
KEYWORD
nonn,less
AUTHOR
Roger L. Bagula, Aug 19 2006
STATUS
approved