OFFSET
1,4
FORMULA
a(n) = floor(n^(1/2))^2 - floor(n^(1/3))^3.
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
KEYWORD
easy,sign
AUTHOR
Felix Tubiana, Jan 27 2004
EXTENSIONS
a(64) corrected by Michel Marcus, Aug 26 2013
STATUS
approved