OFFSET
1,2
LINKS
Paolo P. Lava, Table of n, a(n) for n = 1..100
EXAMPLE
phi(14) = 6, Rev(6) = 6 and sigma(6) = 12;
sigma(14) = 24, Rev(24) = 42 and sigma(42) = 12.
MAPLE
with(numtheory): T:=proc(w) local x, y, z; x:=0; y:=w;
for z from 1 to ilog10(w)+1 do x:=10*x+(y mod 10); y:=trunc(y/10); od; x; end:
P:=proc(q) local a, b, k; global n; for n from 1 to q do
if sigma(T(phi(n)))=phi(T(sigma(n))) then print(n); fi; od; end: P(10^12);
MATHEMATICA
Select[Range[400000], DivisorSigma[1, IntegerReverse[EulerPhi[#]]] == EulerPhi[ IntegerReverse[ DivisorSigma[ 1, #]]]&] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Apr 15 2017 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Paolo P. Lava, Dec 16 2014
STATUS
approved
