editing
approved
editing
approved
with(numtheory);
A131117:=proc(i)
local a, b, n, p, pfs;
b:=-1;
for n from 0 to i do
pfs:=ifactors(n)[2]; a:=n*add(op(2, p)/op(1, p), p=pfs);
if a>b then b:=a; print(a); fi;
od; end: # Paolo P. Lava, Sep 28 2012
approved
editing
Reinhard Zumkeller and Donovan Johnson, <a href="/A131116/b131116_1.txt">Table of n, a(n) for n = 1..250</a> (first 100 terms from Reinhard Zumkeller)
proposed
approved
editing
proposed
R. Reinhard Zumkeller, and Donovan Johnson, <a href="/A131116/b131116_1.txt">Table of n, a(n) for n = 1..250</a> (first 100</a> terms from Reinhard Zumkeller)
approved
editing
editing
approved
od; end: # _Paolo P. Lava - _, Sep 28 2012.
proposed
editing
editing
proposed
with(numtheory);
A131117:=proc(i)
local a, b, n, p, pfs;
b:=-1;
for n from 0 to i do
pfs:=ifactors(n)[2]; a:=n*add(op(2, p)/op(1, p), p=pfs);
if a>b then b:=a; print(a); fi;
od; end: # Paolo P. Lava - Sep 28 2012.
approved
editing