OFFSET
1,1
LINKS
Eric Weisstein's World of Mathematics, Unitary Divisor
Eric Weisstein's World of Mathematics, Unitary Divisor Function
Eric Weisstein's World of Mathematics, Unitary Perfect Number
Wikipedia, Unitary divisor
EXAMPLE
Unitary aliquot parts of 6 are 1, 2, 3. We have: 1 + 2 + 3 = 6 that is equal to its reverse.
Unitary aliquot parts of 75 are 1, 3, 25. We have: 1 + 3 + 25 = 29; 3 + 25 + 29 = 57 that is the reverse of 75.
Unitary aliquot parts of 84292 are 1, 4, 13, 52, 1621, 6484, 21073. We have: 1 + 4 + 13 + 52 + 1621 + 6484 + 21073 = 29248 that is the reverse of 84292.
MAPLE
with(numtheory): R:=proc(w) local x, y; x:=w; y:=0; while x>0 do
y:=10*y+(x mod 10); x:=trunc(x/10); od: y; end:
P:=proc(q, h) local a, b, c, k, n, t, v; v:=array(1..h);
for n from 1 to q do if not isprime(n) then a:=sort([op(divisors(n))]);
b:=[]; c:=ilog10(n)+1; for k from 1 to nops(a)-1 do if gcd(a[k], n/a[k])=1
then b:=[op(b), a[k]]; fi; od; if nops(b)>1 then
for k from 1 to nops(b) do v[k]:=b[k]; od; t:=nops(b)+1; v[t]:=add(v[k], k=1..nops(b)); if R(v[t])=n then print(n); else
while ilog10(v[t])+1<=c do t:=t+1; v[t]:=add(v[k], k=t-nops(b)..t-1);
if R(v[t])=n then print(n); break; fi; od; fi; fi; fi; od;
end: P(10^9, 1000);
CROSSREFS
KEYWORD
nonn,more,base
AUTHOR
Paolo P. Lava, May 25 2015
STATUS
approved