OFFSET
1,2
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = Sum_{p|n, q|n, p and q prime, p <= q} q. - Wesley Ivan Hurt, Aug 20 2020
EXAMPLE
factorset(30) = {2,3,5}, thus a(30) = 1*2 + 2*3 + 3*5 = 23.
MAPLE
with(numtheory): seq(add(i*sort(convert(factorset(n), 'list'))[i], i=1..nops(factorset(n))), n=1..200);
MATHEMATICA
ispd[n_]:=Module[{f=FactorInteger[n][[All, 1]]}, Total[f Range[ Length[f]]]]; Join[{0}, Array[ispd, 80, 2]] (* Harvey P. Dale, Aug 06 2017 *)
PROG
(PARI) { for (n=1, 1000, f=factor(n)~; a=sum(i=1, length(f), i*f[1, i]); write("b064939.txt", n, " ", a) ) } \\ Harry J. Smith, Sep 30 2009
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladeta Jovovic, Oct 27 2001
STATUS
approved