OFFSET
1,1
COMMENTS
Terms k such that cototient(k) is also a composite number are 17017, 63145, 65535, 137863, 5082041, ...
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..371 (terms below 10^10)
EXAMPLE
15 is a term because 15 - phi(15) = 7 divides 2^(3*5) - 1 = 7*31*151.
MATHEMATICA
Select[Range[10^7], And[CompositeQ[#], PowerMod[2, #, # - EulerPhi@ #] == 1] &] (* Michael De Vlieger, Aug 31 2017 *)
PROG
(PARI) cototient(n) = n - eulerphi(n);
isok(n) = Mod(2, cototient(n))^n==1;
lista(nn) = forcomposite(n=4, nn, if(isok(n), print1(n, ", ")));
CROSSREFS
KEYWORD
nonn
AUTHOR
Altug Alkan, Aug 28 2017
STATUS
approved
