OFFSET
1,1
MATHEMATICA
f[n_] := Block[{k = 1}, If[n == 1, 2, While[ Mod[Prime@k, n] != 1, k++ ]; Prime@k]]; lst = {}; a = 1; Do[b = f@n; If[b > a, a = b; AppendTo[lst, {n, a}]; Print@{n, a}], {n, 18200}]; (Transpose@lst)[[2]]
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Jul 08 2006
STATUS
approved