login
A070588
a(n) = n^4 mod 45.
0
0, 1, 16, 36, 31, 40, 36, 16, 1, 36, 10, 16, 36, 31, 31, 0, 16, 1, 36, 1, 25, 36, 31, 31, 36, 25, 1, 36, 1, 16, 0, 31, 31, 36, 16, 10, 36, 1, 16, 36, 40, 31, 36, 16, 1, 0, 1, 16, 36, 31, 40, 36, 16, 1, 36, 10, 16, 36, 31, 31, 0, 16, 1, 36, 1, 25, 36, 31, 31, 36, 25, 1, 36, 1, 16
OFFSET
0,3
LINKS
Index entries for linear recurrences with constant coefficients, signature (0, 0, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1).
MATHEMATICA
PowerMod[Range[0, 80], 4, 45] (* Harvey P. Dale, Dec 29 2019 *)
PROG
(PARI) a(n)=n^4%45 \\ Charles R Greathouse IV, Apr 06 2016
(Magma) [Modexp(n, 4, 45): n in [0..70]]; // Vincenzo Librandi, Dec 30 2019
CROSSREFS
Sequence in context: A219316 A317818 A236463 * A250432 A183196 A372712
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, May 13 2002
STATUS
approved