OFFSET
1,1
EXAMPLE
T(3188) = 4961 and sigma(3188) = sigma(4961) = 5586.
MAPLE
with(numtheory);
T:=proc(t) local j, w, x, y; x:=t; y:=[]; while x>0 do
y:=[x mod 10, op(y)]; x:=trunc(x/10); od; w:=(y[nops(y)]+y[1]) mod 10;
x:=0; for j from 1 to nops(y)-1 do x:=x*10+((y[j]+y[j+1]) mod 10); od; x:=x*10+w; end:
P:=proc(q) local n; for n from 10 to q do if sigma(n)=sigma(T(n))
then print(n); fi; od; end: P(10^10);
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Paolo P. Lava, Jul 23 2014
STATUS
approved