OFFSET
1,1
COMMENTS
From Michael De Vlieger, Feb 16 2017: (Start)
Records and position of records:
3 1
5 2
7 3
15 4
22 5
48 8
82 11
94 16
112 19
189 25
203 31
354 32
1122 35
1223 74
1234 103
4244 104
6718 137
12218 200
16304 218
19540 248
74478 263
1014994 323
2801012 1268
16829184 1913
16903906 2213
a(2468) is larger than 10^8. (End)
LINKS
Michael De Vlieger and Michel Marcus, Table of n, a(n) for n = 1..2467 (First 262 terms from Michel Marcus), Feb 16 2017
FORMULA
a(n) = Min_{k} A071168(k) = 2*n-1.
EXAMPLE
n=5, a(5)=22, prime(22)=79, phi(22)=10, mod(79,10)=9=2n-1=9.
MATHEMATICA
f[x_] := Mod[Prime[x], EulerPhi[x]] t=Table[0, {256}]; Do[s=f[n]; If[s<257&&t[[s]]==0, t[[s]]=n], {n, 1, 100000}]; t
(* Second program: *)
Table[x = 1; While[Mod[Prime@ x, EulerPhi@ x] != 2 n - 1, x++]; x, {n, 57}] (* Michael De Vlieger, Feb 13 2017 *)
PROG
(PARI) a(n) = {my(x = 1); while (prime(x) % eulerphi(x) != 2*n-1, x++); x; } \\ Michel Marcus, Feb 13 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, May 15 2002
STATUS
approved