login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A368613
a(n) = Sum_{k=2..n} pi(k-1) * floor(n/k).
4
0, 0, 1, 3, 5, 9, 12, 18, 23, 29, 33, 44, 49, 58, 67, 79, 85, 100, 107, 123, 135, 147, 155, 179, 190, 204, 218, 238, 247, 273, 283, 306, 322, 339, 355, 388, 399, 418, 436, 468, 480, 514, 527, 555, 582, 604, 618, 663, 681, 711, 733, 764, 779, 819, 841, 881, 905, 930
OFFSET
1,4
FORMULA
a(n) = A368611(n) - A013939(n).
MATHEMATICA
Table[Sum[PrimePi[k - 1] Floor[n/k], {k, 2, n}], {n, 100}]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Dec 31 2023
STATUS
approved