A291258 a(n) is the smallest number k such that sigma(k) - phi(k) = n*k, or 0 if no such k exists.
1, 2, 12, 75960, 17156160
Offset: 0
Examples
a(2) = 12 because sigma(12) = 28, phi(12) = 4; sigma(12) - phi(12) = 2*12 and 12 is the smallest number with this property.
Programs
-
PARI
a(n) = {my(k=1); while (sigma(k)-eulerphi(k)!=n*k, k++); k; }
Comments