OFFSET
0,2
COMMENTS
a(n) is the smallest positive number k such that n + k is a cube.
LINKS
Michael De Vlieger, Table of n, a(n) for n = 0..9999
FORMULA
a(n) = floor(n^(1/3) + 1)^3 - n.
MATHEMATICA
Table[Floor[n^(1/3) + 1]^3 - n, {n, 0, 80}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Apr 08 2020
STATUS
approved