login
A092282
Difference between largest square number and largest cube number less than n.
0
0, 0, 0, 3, 3, 3, 3, -4, 1, 1, 1, 1, 1, 1, 1, 8, 8, 8, 8, 8, 8, 8, 8, 8, 17, 17, -2, -2, -2, -2, -2, -2, -2, -2, -2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 36
OFFSET
1,4
FORMULA
a(n) = floor(n^(1/2))^2 - floor(n^(1/3))^3.
a(n) = A000196(n)^2 - A048766(n)^3. - Michel Marcus, Aug 27 2013
EXAMPLE
n = 10; largest square = 3^2 = 9; largest cube = 2^3 = 8; a(10) = 9 - 8 = 1.
PROG
(PARI) a(n) = sqrtint(n)^2 - sqrtnint(n, 3)^3; \\ Michel Marcus, Aug 26 2013
(PARI) a(n) = sqrtnint(n, 2)^2 - sqrtnint(n, 3)^3; \\ Michel Marcus, Aug 26 2013
CROSSREFS
Sequence in context: A290658 A264097 A177013 * A263998 A048181 A091799
KEYWORD
easy,sign
AUTHOR
Felix Tubiana, Jan 27 2004
EXTENSIONS
a(64) corrected by Michel Marcus, Aug 26 2013
STATUS
approved