login
A075847
Difference between n^2 and the largest cube <= n^2.
12
0, 0, 3, 1, 8, 17, 9, 22, 0, 17, 36, 57, 19, 44, 71, 9, 40, 73, 108, 18, 57, 98, 141, 17, 64, 113, 164, 0, 55, 112, 171, 232, 24, 89, 156, 225, 296, 38, 113, 190, 269, 350, 36, 121, 208, 297, 388, 12, 107, 204, 303, 404, 507, 65, 172, 281, 392, 505, 620, 106, 225, 346
OFFSET
0,3
COMMENTS
a(n) = n^2 - A077106(n).
a(n) = 0 iff n = m^(6*k).
a(n) = 0 when n is a cube. See A070923.
EXAMPLE
a(4)=8 because 4^2 - 2^3 = 8; a(9)=17 because 9^2 - 4^3 = 17.
A077106(20) = 343 = 7^3 is the largest cube <= 20^2 = 400, therefore a(20) = 400 - 343 = 57.
MATHEMATICA
Table[a = n^2; a - Floor[a^(1/3)]^3, {n, 0, 300}] (* Vladimir Joseph Stephan Orlovsky, Jun 03 2011 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
EXTENSIONS
Edited by N. J. A. Sloane at the suggestion of Zak Seidov, Oct 30 2008
STATUS
approved