OFFSET
1,1
LINKS
Paolo P. Lava, Table of n, a(n) for n = 1..1000
EXAMPLE
The value of Euler totient function for n = 15 is 8. Prime factors of 15 are 3, 5 and their sum is 3 + 5 = 8. Finally, 8 / 8 = 1.
The value of Euler totient function for n = 140 is 48. Prime factors of 140 are 2, 2, 5, 7 and their sum is 2 + 2 + 5 + 7 = 16. Finally, 48 / 16 = 3.
MAPLE
with(numtheory); P:=proc(q) local a, n;
for n from 1 to q do a:=ifactors(n)[2];
if type(phi(n)/add(a[k][1]*a[k][2], k=1..nops(a)), integer)
then print(n); fi; od; end: P(10^9);
MATHEMATICA
Rest@ Select[Range@ 729, Mod[EulerPhi@ #, Total@ Flatten[Table[#1, {#2}] & @@@ FactorInteger@ #]] == 0 &] (* Michael De Vlieger, Apr 15 2015 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paolo P. Lava, Apr 15 2015
STATUS
approved