login
Values of 17^n mod 23.
1

%I #7 Jun 25 2018 22:56:02

%S 17,13,14,8,21,12,20,18,7,4,22,6,10,9,15,2,11,3,5,16,19,1,17,13,14,8,

%T 21,12,20,18,7,4,22,6,10,9,15,2,11,3,5,16,19,1,17,13,14,8,21,12,20,18,

%U 7,4,22,6,10,9,15,2,11,3,5,16,19,1,17,13,14,8,21,12,20,18,7,4,22,6,10

%N Values of 17^n mod 23.

%C a(22*k) = 1 and a(22*k+1) = 17 for k = 1, 2, 3, ... in accordance with Fermat's Little Theorem.

%H Harry J. Smith, <a href="/A063518/b063518.txt">Table of n, a(n) for n = 1..2000</a>

%e a(2) = 13 because 17^2 = 289 and 289 mod 23 = 13.

%o (PARI) { for (n=1, 2000, write("b063518.txt", n, " ", 17^n % 23) ) } \\ _Harry J. Smith_, Aug 24 2009

%K nonn

%O 1,1

%A David Clark (dcclark(AT)mtu.edu), Aug 01 2001