login
A352718
a(n) = floor(n^(3/2)) - floor(n^(1/2))^3.
2
0, 0, 1, 4, 0, 3, 6, 10, 14, 0, 4, 9, 14, 19, 25, 31, 0, 6, 12, 18, 25, 32, 39, 46, 53, 0, 7, 15, 23, 31, 39, 47, 56, 64, 73, 82, 0, 9, 18, 27, 36, 46, 56, 65, 75, 85, 95, 106, 116, 0, 10, 21, 31, 42, 53, 64, 76, 87, 98, 110, 121, 133, 145, 157, 0, 12, 24
OFFSET
0,4
COMMENTS
a(n) = 0 if and only if n is a square.
MATHEMATICA
Table[Floor[n^(3/2)] - Floor[n^(1/2)]^3, {n, 0, 120}]
PROG
(PARI) a(n) = sqrtint(n^3) - sqrtint(n)^3; \\ Michel Marcus, Jun 24 2022
CROSSREFS
Sequence in context: A085655 A338656 A153615 * A338736 A281531 A376643
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Jun 21 2022
STATUS
approved