OFFSET
1,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
Neville Holmes, Integer Sequence Combinations [Broken link?]
EXAMPLE
a(20) = 9(3*9-1)/2 = 117 because 9 = 2+2+5 and 20 = 2*2*5.
MATHEMATICA
spf[n_]:=Module[{t=Total[Flatten[Table[#[[1]], #[[2]]]&/@FactorInteger[ n]]]}, (t(3t-1))/2]; Join[{0}, Array[spf, 60, 2]] (* Harvey P. Dale, Sep 23 2016 *)
PROG
(PARI) sopfr(n) = my(f=factor(n)); sum(k=1, matsize(f)[1], f[k, 1]*f[k, 2])
fn(n) = my(s=sopfr(n)); s*(3*s-1)/2 \\ Michel Marcus, Jul 11 2013
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
W. Neville Holmes, Aug 29 2002
STATUS
approved