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

A109753
n^3 mod 8; the periodic sequence {0,1,0,3,0,5,0,7}.
1
0, 1, 0, 3, 0, 5, 0, 7, 0, 1, 0, 3, 0, 5, 0, 7, 0, 1, 0, 3, 0, 5, 0, 7, 0, 1, 0, 3, 0, 5, 0, 7, 0, 1, 0, 3, 0, 5, 0, 7, 0, 1, 0, 3, 0, 5, 0, 7, 0, 1, 0, 3, 0, 5, 0, 7, 0, 1, 0, 3, 0, 5, 0, 7, 0, 1, 0, 3, 0, 5, 0, 7, 0, 1, 0, 3, 0, 5, 0, 7, 0, 1, 0, 3, 0, 5, 0, 7, 0, 1, 0, 3, 0, 5, 0, 7, 0, 1, 0, 3, 0, 5, 0, 7, 0
OFFSET
0,4
FORMULA
G.f. = (x+3x^3+5x^5+7x^7)/(1-x^8)
PROG
(Sage) [power_mod(n, 3, 8 ) for n in range(0, 105)] # - Zerinvary Lajos, Oct 29 2009
(PARI) a(n)=n^3%8 \\ Charles R Greathouse IV, Apr 06 2016
CROSSREFS
Cf. n mod 8 = A010877; n^2 mod 8 = A070432.
Sequence in context: A164736 A378450 A349343 * A318517 A245494 A167465
KEYWORD
easy,nonn
AUTHOR
Bruce Corrigan (scentman(AT)myfamily.com), Aug 11 2005
STATUS
approved