OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
g:= proc(t) local p; p:= ithprime(t); if p&^ t mod t = 1 then p else NULL fi end proc:
map(g, [$1..1000]); # Robert Israel, Oct 31 2016
MATHEMATICA
With[{no=250}, Transpose[Select[Partition[Riffle[Prime[Range[no]], Range[no]], 2], PowerMod[First[#], Last[#], Last[#]]==1&]][[1]]] (* Harvey P. Dale, Jan 05 2011 *)
Prime[Select[Range[250]], PowerMod[Prime[#], #, #]==1&]]
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Oct 31 2002
STATUS
approved