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

A132384
a(n) = Sum_{ k <= n, k is not an i-th power with i >= 2} k.
2
1, 3, 6, 6, 11, 17, 24, 24, 24, 34, 45, 57, 70, 84, 99, 99, 116, 134, 153, 173, 194, 216, 239, 263, 263, 289, 289, 317, 346, 376, 407, 407, 440, 474, 509, 509, 546, 584, 623, 663, 704, 746, 789, 833, 878, 924, 971, 1019, 1019, 1069, 1120, 1172, 1225, 1279
OFFSET
1,2
PROG
(PARI) a(n) = sum(x=1, n, if(!ispower(x), x));
CROSSREFS
Sequence in context: A158662 A119980 A066779 * A378120 A201155 A200534
KEYWORD
nonn
AUTHOR
Cino Hilliard, Nov 07 2007
STATUS
approved