

A070492


a(n) = n^3 mod 30.


2



0, 1, 8, 27, 4, 5, 6, 13, 2, 9, 10, 11, 18, 7, 14, 15, 16, 23, 12, 19, 20, 21, 28, 17, 24, 25, 26, 3, 22, 29, 0, 1, 8, 27, 4, 5, 6, 13, 2, 9, 10, 11, 18, 7, 14, 15, 16, 23, 12, 19, 20, 21, 28, 17, 24, 25, 26, 3, 22, 29, 0, 1, 8, 27, 4, 5, 6, 13, 2, 9, 10, 11, 18, 7, 14, 15, 16, 23
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

0,3


COMMENTS

Equivalently n^7 mod 30.  Zerinvary Lajos, Oct 29 2009
Equivalent: n^(4m+3) mod 30, m>=0, m integer.  G. C. Greubel, Mar 30 2016


LINKS

G. C. Greubel, Table of n, a(n) for n = 0..1000


FORMULA

a(n) = A070711(n)  Zak Seidov, Jun 06 2012
a(n) = a(n30).  G. C. Greubel, Mar 30 2016


MATHEMATICA

PowerMod[Range[0, 80], 3, 30] (* Harvey P. Dale, Jun 09 2013 *)


PROG

(Sage) [power_mod(n, 3, 30)for n in range(0, 78)] # Zerinvary Lajos, Oct 29 2009
(PARI) a(n)=n^3%30 \\ Charles R Greathouse IV, Apr 06 2016


CROSSREFS

Sequence in context: A334659 A070493 A257853 * A070711 A282462 A056555
Adjacent sequences: A070489 A070490 A070491 * A070493 A070494 A070495


KEYWORD

nonn,easy


AUTHOR

N. J. A. Sloane, May 12 2002


STATUS

approved



