The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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

%I #10 Jul 05 2022 11:41:32

%S 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,

%T -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,

%U 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

%N Difference between largest square number and largest cube number less than n.

%F a(n) = floor(n^(1/2))^2 - floor(n^(1/3))^3.

%F a(n) = A000196(n)^2 - A048766(n)^3. - _Michel Marcus_, Aug 27 2013

%e n = 10; largest square = 3^2 = 9; largest cube = 2^3 = 8; a(10) = 9 - 8 = 1.

%o (PARI) a(n) = sqrtint(n)^2 - sqrtnint(n, 3)^3; \\ _Michel Marcus_, Aug 26 2013

%o (PARI) a(n) = sqrtnint(n, 2)^2 - sqrtnint(n, 3)^3; \\ _Michel Marcus_, Aug 26 2013

%K easy,sign

%O 1,4

%A _Felix Tubiana_, Jan 27 2004

%E a(64) corrected by _Michel Marcus_, Aug 26 2013

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 June 2 00:37 EDT 2024. Contains 373032 sequences. (Running on oeis4.)