login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A345127
Total sum of the distinct prime factors of s*t, for all positive integer pairs (s,t) such that s + t = n.
0
0, 0, 2, 5, 7, 10, 17, 22, 23, 25, 36, 40, 52, 59, 63, 76, 84, 87, 106, 112, 116, 132, 155, 159, 173, 176, 191, 187, 215, 208, 254, 271, 261, 285, 291, 301, 337, 356, 364, 378, 418, 407, 471, 483, 486, 513, 560, 564, 591, 575, 585, 609, 661, 664, 672, 688, 698, 738, 797, 776
OFFSET
1,3
FORMULA
a(n) = Sum_{k=1..floor(n/2)} sopf(k*(n-k)).
EXAMPLE
a(7) = 17; The partitions of 7 into two positive integer parts are (6,1), (5,2), and (4,3). The sum of the distinct prime factors of 6*1, 5*2, and 4*3 are 5, 7, and 5 respectively. The total is then 5 + 7 + 5 = 17.
MATHEMATICA
Table[Sum[Sum[k (PrimePi[k] - PrimePi[k - 1]) (1 - Ceiling[i (n - i)/k] + Floor[i (n - i)/k]), {k, i (n - i)}], {i, Floor[n/2]}], {n, 80}]
PROG
(PARI) a(n) = sum(k=1, n\2, vecsum(factor(k*(n-k))[, 1])); \\ Michel Marcus, Oct 31 2022
CROSSREFS
Cf. A008472 (sopf).
Sequence in context: A103871 A068817 A156779 * A226813 A355846 A362388
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Jun 08 2021
STATUS
approved