OFFSET
1,1
COMMENTS
No more terms below 10^9. - Amiram Eldar, Jan 27 2019
EXAMPLE
For n=140049: d=40 divisors, r=70026 coprimes and u=70023 unrelated numbers to n; abs(r-u) = 3.
MATHEMATICA
Do[r=EulerPhi[n]; d=DivisorSigma[0, n]; u=n-r-d+1; df=2*u-n; If[Equal[Abs[df], 3], Print[n(*, {d, r, u}*)]], {n, 1, 100}]
PROG
(PARI) isok(n) = abs(n-2*eulerphi(n)-2*numdiv(n)+2) == 3; \\ Michel Marcus, Jul 30 2017
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Labos Elemer, May 07 2003
EXTENSIONS
a(9)-a(10) from Amiram Eldar, Jan 27 2019
STATUS
approved