login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A039778
phi(n) is equal to the sum of prime factors and exponents of n+1.
0
32, 38, 54, 56, 84, 20720
OFFSET
1,1
COMMENTS
a(7) > 10^8. - Naohiro Nomoto, Jun 21 20a
a(7) > 10^9. - Michel Marcus, Jun 03 2014
a(7) > 10^12. - Giovanni Resta, Jun 11 2016
EXAMPLE
phi(38)=18, 39=3^1*13^1, 3+1+13+1=18.
MATHEMATICA
Select[Range[30000], EulerPhi[#] == Plus @@ Flatten@ FactorInteger[# + 1] &] (* Giovanni Resta, Jun 11 2016 *)
PROG
(PARI) isok(n) = (f = factor(n+1)) && (sum(i=1, #f~, f[i, 2]) + sum(i=1, #f~, f[i, 1]) == eulerphi(n)); \\ Michel Marcus, Jun 03 2014
CROSSREFS
Sequence in context: A070624 A345491 A178099 * A354422 A217060 A326112
KEYWORD
nonn,more
STATUS
approved