OFFSET
1,2
COMMENTS
Subset of A196499.
For all primes n, the greatest residue of the congruence x^n (mod n) where x = 0..n-1 equals n-1.
EXAMPLE
50 is in the sequence because the residues of the congruence x^50 (mod 50) are { 0, 1, 24, 25, 26, 49} and the greatest value is 50 - 1 = 49.
MAPLE
with(numtheory):T:=array(1..170): for n from 1 to 170 do:for k from 1 to n do:T[k]:=irem(k^n, n):od:W:=convert(T, set):x:=nops(W):if type(n, prime) = false and W[x]= n-1 then printf(`%d, `, n):else fi:od:
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Lagneau, Oct 13 2011
STATUS
approved