[go: up one dir, main page]

login
A070704
a(n) = n^7 mod 23.
1
0, 1, 13, 2, 8, 17, 3, 5, 12, 4, 14, 7, 16, 9, 19, 11, 18, 20, 6, 15, 21, 10, 22, 0, 1, 13, 2, 8, 17, 3, 5, 12, 4, 14, 7, 16, 9, 19, 11, 18, 20, 6, 15, 21, 10, 22, 0, 1, 13, 2, 8, 17, 3, 5, 12, 4, 14, 7, 16, 9, 19, 11, 18, 20, 6, 15, 21, 10, 22, 0, 1, 13, 2, 8, 17, 3, 5, 12, 4, 14, 7, 16
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, 1).
MATHEMATICA
PowerMod[Range[0, 100], 7, 23] (* Vincenzo Librandi, Jun 17 2016 *)
PROG
(Sage) [power_mod(n, 7, 23)for n in range(0, 82)] # Zerinvary Lajos, Oct 29 2009
(PARI) a(n)=n^7%23 \\ Charles R Greathouse IV, Apr 06 2016
(Magma) [Modexp(n, 7, 23): n in [0..80]]; // Vincenzo Librandi, Jun 17 2016
CROSSREFS
Sequence in context: A010224 A100081 A078197 * A317753 A298059 A298708
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, May 13 2002
STATUS
approved