OFFSET
0,4
COMMENTS
The distance between two Gaussian integers is not necessarily integer, hence the use of the square of the distance.
This sequence is a variant of A074989: here we minimize norm(n - z^3) where z runs through every Gaussian integers, there we minimize abs(n - m^3) where m runs through every integers.
LINKS
EXAMPLE
For n = 4: the nearest Gaussian cubes to 4 are 2 + 2*i and 2 - 2*i, hence a(4) = (4-2)^2 + 2^2 = 8.
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Mar 25 2018
STATUS
approved