OFFSET
1,1
EXAMPLE
For 78324 the sum y is: (7832 - 4) + (783 - 24) + (78 - 324) + (7 - 8324) = 7828 + 759 - 246 - 8317 = 24 and tau(78324) = 24.
MAPLE
with(numtheory): P:=proc(q) local a, k, n;
for n from 1 to q do a:=0;
for k from 1 to ilog10(n) do a:=a+trunc(n/10^k)-(n mod 10^k); od;
if a=tau(n) then print(n); fi; od; end: P(10^9);
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Paolo P. Lava, Mar 06 2015
STATUS
approved