login
A070717
a(n) = n^7 mod 36.
1
0, 1, 20, 27, 4, 5, 0, 7, 8, 9, 28, 11, 0, 13, 32, 27, 16, 17, 0, 19, 20, 9, 4, 23, 0, 25, 8, 27, 28, 29, 0, 31, 32, 9, 16, 35, 0, 1, 20, 27, 4, 5, 0, 7, 8, 9, 28, 11, 0, 13, 32, 27, 16, 17, 0, 19, 20, 9, 4, 23, 0, 25, 8, 27, 28, 29, 0, 31, 32, 9, 16, 35, 0, 1, 20, 27, 4, 5, 0, 7, 8, 9, 28
OFFSET
0,3
LINKS
Index entries for linear recurrences with constant coefficients, signature (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1).
MATHEMATICA
PowerMod[Range[0, 90], 7, 36] (* or *) PadRight[{}, 90, {0, 1, 20, 27, 4, 5, 0, 7, 8, 9, 28, 11, 0, 13, 32, 27, 16, 17, 0, 19, 20, 9, 4, 23, 0, 25, 8, 27, 28, 29, 0, 31, 32, 9, 16, 35}] (* Harvey P. Dale, May 24 2017 *)
PROG
(SageMath) [power_mod(n, 7, 36)for n in range(0, 83)] # - Zerinvary Lajos, Oct 29 2009
(PARI) a(n)=n^7%36 \\ Charles R Greathouse IV, Apr 06 2016
(Magma) [Modexp(n, 7, 36): n in [0..80]]; // Vincenzo Librandi, May 25 2017
CROSSREFS
Sequence in context: A219805 A219456 A248787 * A114813 A385743 A069827
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, May 13 2002
STATUS
approved