Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A132296
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A132296 Sum of the non-cube numbers less than or equal to n. +0
1
0, 2, 5, 9, 14, 20, 27, 27, 36, 46, 57, 69, 82, 96, 111, 127, 144, 162, 181, 201, 222, 244, 267, 291, 316, 342, 342, 370, 399, 429, 460, 492, 525, 559, 594, 630, 667, 705, 744, 784, 825, 867, 910, 954, 999, 1045, 1092, 1140, 1189, 1239, 1290, 1342, 1395, 1449 (list; graph; listen)
OFFSET

1,2

FORMULA

Let r = floor(n^(1/3)). Then a(n) = n(n+1)/2 - (r(r+1)/2)^2.

EXAMPLE

Let n=10.

The sum of the non-cube numbers <= 10 is 2+3+4+5+6+7+9+10 = 46, the 10-th entry in the sequence.

PROGRAM

(PARI) g(n)=for(x=1, n, r=floor(x^(1/3)); sumcu=(r*(r+1)/2)^2; sn=x*(x+1)/2; print1(sn-sumcu", "))

CROSSREFS

Sequence in context: A024201 A110443 A130029 this_sequence A112265 A075543 A132315

Adjacent sequences: A132293 A132294 A132295 this_sequence A132297 A132298 A132299

KEYWORD

nonn

AUTHOR

Cino Hilliard (hillcino368(AT)hotmail.com), Nov 07 2007

page 1

Search completed in 0.005 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research