A039769 Composite integers k such that gcd(phi(k), k - 1) > 1.
9, 15, 21, 25, 27, 28, 33, 35, 39, 45, 49, 51, 52, 55, 57, 63, 65, 66, 69, 70, 75, 76, 77, 81, 85, 87, 91, 93, 95, 99, 105, 111, 112, 115, 117, 119, 121, 123, 124, 125, 129, 130, 133, 135, 141, 143, 145, 147, 148, 153, 154, 155, 159, 161, 165, 169, 171, 172, 175
Offset: 1
Examples
phi(21) = 12 and gcd(12, 20) = 4 > 1, hence 21 is in the sequence. phi(22) = 10 but gcd(10, 21) = 1, so 22 is not in the sequence.
Links
- Robert Israel, Table of n, a(n) for n = 1..10000
Programs
-
Maple
select(n -> not isprime(n) and igcd(n-1, numtheory:-phi(n))>1, [$4..1000]); # Robert Israel, Apr 07 2015
-
Mathematica
Select[Range[250], GCD[EulerPhi[#], # - 1] > 1 && EulerPhi[#] != # - 1 &] (* Geoffrey Critzer, Apr 04 2015 *)
-
PARI
forcomposite(k=1, 1e3, if(gcd(eulerphi(k), k-1) > 1, print1(k, ", "))); \\ Altug Alkan, Sep 21 2018
Extensions
Name clarified by Tom Edgar, Apr 05 2015
Comments