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

A104758
Number of cubes m = k^3 such that n <= m <= (n+1)^2.
3
2, 1, 1, 1, 1, 2, 2, 3, 3, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 15, 15, 15
OFFSET
0,1
COMMENTS
a(n)>=1 because between n and (n+1)^2 there is always at least one cubic number.
a(6)=2 because between 5 and 6^2 there are two cubic numbers: 8 and 27
MATHEMATICA
f[n_] := Floor[(n + 1)^(2/3)] - Floor[n^(1/3)] + If[ IntegerQ[n^(1/3)], 1, 0]; Table[ f[n], {n, 0, 84}] (* Robert G. Wilson v, Apr 24 2005 *)
CROSSREFS
Sequence in context: A237706 A064823 A140225 * A143227 A329746 A302247
KEYWORD
easy,nonn
AUTHOR
Giovanni Teofilatto, Apr 23 2005
EXTENSIONS
More terms from Robert G. Wilson v, Apr 24 2005
STATUS
approved