A230004 Numbers n such that phi(n) + sigma(n) = reversal(n) + 4.
499, 2836, 4999, 49999, 280036, 4999999, 28000036, 283682836, 2800000000036
Offset: 1
Examples
phi(499)+sigma(499) = 498+500 = 994+4 = reversal(499)+4, so 499 is in the sequence.
Programs
-
Mathematica
r[n_] := FromDigits[Reverse[IntegerDigits[n]]]; Do[If[DivisorSigma[1,n] + EulerPhi[n] == r[n] + 4, Print[n]], {n,1050000000}] Select[Range[5*10^6],EulerPhi[#]+DivisorSigma[1,#]==IntegerReverse[#]+4&] (* The program generates the first 6 terms of the sequence. *) (* Harvey P. Dale, Dec 28 2024 *)
-
PARI
is(n)=subst(Polrev(digits(n)),'x,10)+4==eulerphi(n)+sigma(n) \\ Charles R Greathouse IV, Nov 08 2013
Extensions
a(9) from Giovanni Resta, Feb 06 2014
Comments