OFFSET
1,1
LINKS
Paolo P. Lava, Table of n, a(n) for n = 1..100
EXAMPLE
The arithmetic derivative of 2581 is 118. Consider 2581 = 25 U 81. The arithmetic derivative of 25 is 10 and of 81 is 108. Therefore we have 10 + 108 = 118.
MAPLE
with(numtheory); T:=proc(t) local w, x, y; x:=t; y:=0; while x>0 do x:=trunc(x/10); y:=y+1; od; end:
P:=proc(q) local a, b, c, d, f, g, i, n, p; for n from 1 to q do if not isprime(n) then b:=T(n);
a:=n*add(op(2, p)/op(1, p), p=ifactors(n)[2]); for i from 1 to b-1 do c:=trunc(n/10^i); d:=n-c*10^i;
f:=c*add(op(2, p)/op(1, p), p=ifactors(c)[2]); g:=d*add(op(2, p)/op(1, p), p=ifactors(d)[2]);
if f+g=a then print(n); break; fi; od; fi; od; end: P(10^9);
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Paolo P. Lava, Mar 25 2014
STATUS
approved