OFFSET
1,2
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..10000 (first 4000 terms from Ivan Neretin)
FORMULA
a(n) = Min{x; A084309(x)=n}.
MATHEMATICA
f[x_] := GCD[Prime[x]-1, x] t=Table[0, {256}]; Do[s=f[n]; If[s<257&&t[[s]]==0, t[[s]]=n], {n, 1, 100000}]; t
Table[Module[{x=1}, While[GCD[Prime[x]-1, x]!=n, x++]; x], {n, 60}] (* Harvey P. Dale, Aug 23 2025 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Jun 13 2003
STATUS
approved
