login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,4
LINKS
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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 9 16:39 EDT 2024. Contains 372353 sequences. (Running on oeis4.)