OFFSET
1,1
EXAMPLE
For n = 966 we can consider 966 as 96 U 6; sigma(96) + sigma(6) = 252 + 12 = 264 = phi(966).
MAPLE
with(numtheory); P:=proc(q) local a, b, i, n; for n from 1 to q do
for i from 1 to ilog10(n) do a:=trunc(n/10^i); b:=n-a*10^i;
if sigma(a)+sigma(b)=phi(n) then print(n); break;
fi; od; od; end: P(10^9);
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Paolo P. Lava, Oct 20 2014
STATUS
approved