login
A070699
a(n) = n^7 mod 17.
1
0, 1, 9, 11, 13, 10, 14, 12, 15, 2, 5, 3, 7, 4, 6, 8, 16, 0, 1, 9, 11, 13, 10, 14, 12, 15, 2, 5, 3, 7, 4, 6, 8, 16, 0, 1, 9, 11, 13, 10, 14, 12, 15, 2, 5, 3, 7, 4, 6, 8, 16, 0, 1, 9, 11, 13, 10, 14, 12, 15, 2, 5, 3, 7, 4, 6, 8, 16, 0, 1, 9, 11, 13, 10, 14, 12, 15, 2, 5, 3, 7, 4, 6, 8, 16, 0
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, 1).
MATHEMATICA
PowerMod[Range[0, 100], 7, 17] (* Vincenzo Librandi, Jun 17 2016 *)
PROG
(Sage) [power_mod(n, 7, 17) for n in range(86)] # Zerinvary Lajos, Oct 28 2009
(PARI) a(n)=n^7%17 \\ Charles R Greathouse IV, Apr 06 2016
(Magma) [Modexp(n, 7, 17): n in [0..80]]; // Vincenzo Librandi, Jun 17 2016
CROSSREFS
Sequence in context: A071217 A064930 A158607 * A065454 A334688 A248629
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, May 13 2002
STATUS
approved