OFFSET
1,4
LINKS
David A. Corneth, Table of n, a(n) for n = 1..10000
EXAMPLE
n=256: a(256) = 110, sigma(110) + phi(110) = 216 + 40 = 256 = n and no positive integer k < 110 has sigma(k) + phi(k) = 256.
MATHEMATICA
f[x_] := DivisorSigma[1, x]+EulerPhi[x] t=Table[0, {100}]; Do[c=f[n]; If[c<101&&t[[c]]==0, t[[c]]=n], {n, 1, 1000000}]; t
PROG
(PARI) a(n) = for(m=1, n, if(sigma(m)+eulerphi(m)==n, return(m))); 0; \\ Jinyuan Wang, Jul 29 2020
(PARI) first(n) = { my(v = vector(n)); for(i = 1, n, c = sigma(i) + eulerphi(i); if(c <= n, if(v[c] == 0, v[c] = i ) ) ); v } \\ David A. Corneth, Jul 30 2020
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Labos Elemer, May 23 2002
STATUS
approved