A039789 Integers k such that phi(k) is equal to the product of (the sum of prime factors and the sum of exponents) of k+1.
7, 15, 62, 65, 76, 98, 260, 980
Offset: 1
Examples
62 is a term since phi(62) = 30, 63 = 3^2*7^1, (3+7)*(2+1) = 30.
Programs
-
Mathematica
epQ[n_]:=Module[{fi=Transpose[FactorInteger[n+1]]},EulerPhi[n]== Total[ First[fi]]* Total[Last[fi]]]; Select[Range[1000],epQ] (* Harvey P. Dale, Apr 19 2013 *)
-
PARI
isok(k) = my(f=factor(k+1)); eulerphi(k) == vecsum(f[,1]) * vecsum(f[,2]); \\ Michel Marcus, Oct 30 2022
Comments