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”).

A024928
a(n) = Sum_{k=1..n} floor( (n + p(k))/k ).
0
3, 6, 10, 14, 20, 24, 30, 34, 41, 46, 54, 59, 70, 76, 82, 88, 96, 102, 110, 115, 124, 131, 139, 147, 156, 162, 170, 179, 192, 197, 209, 219, 228, 236, 246, 253, 265, 271, 280, 288, 299, 305, 316, 323, 332, 341, 352, 358, 370, 377, 385, 392, 406, 413, 425, 431, 440, 449, 462
OFFSET
1,1
PROG
(PARI) a(n) = sum(k=1, n, floor((n+prime(k))/k)) \\ Michel Marcus, Mar 23 2013
CROSSREFS
Sequence in context: A226185 A310071 A330259 * A330257 A079552 A334454
KEYWORD
nonn
STATUS
approved