A058340 Primes p such that phi(x) = p-1 has only 2 solutions, namely x = p and x = 2p.
11, 23, 29, 31, 47, 53, 59, 67, 71, 79, 83, 103, 107, 127, 131, 137, 139, 149, 151, 167, 173, 179, 191, 197, 199, 211, 223, 227, 229, 239, 251, 263, 269, 271, 283, 293, 307, 311, 317, 331, 347, 359, 367, 373, 379, 383, 389, 419, 431, 439, 443, 463, 467, 479
Offset: 1
Keywords
Examples
For p=2, phi(x)=1 has only two solutions, but they are 1 and 2, not 2 and 4, so 2 is not in the sequence.
Links
- Robert Israel, Table of n, a(n) for n = 1..10000
Crossrefs
Programs
-
Maple
filter:= n -> isprime(n) and nops(numtheory:-invphi(n-1))=2: select(filter, [seq(i,i=3..10000,2)]); # Robert Israel, Aug 12 2016
-
Mathematica
Take[Rest@ Keys@ Select[KeySelect[KeyMap[# + 1 &, PositionIndex@ Array[EulerPhi, 10^4]], PrimeQ], Length@ # == 2 &], 54] (* Michael De Vlieger, Dec 29 2017 *)
Formula
a(n) ~ n log . - Charles R Greathouse IV, Nov 18 2022
Extensions
Edited by Ray Chandler, Jun 06 2008
Comments