0,2

a(n) is the smallest positive number k such that n + k is a cube.

Michael De Vlieger, Table of n, a(n) for n = 0..9999

a(n) = floor(n^(1/3) + 1)^3 - n.

Table[Floor[n^(1/3) + 1]^3 - n, {n, 0, 80}]

Cf. A000578, A048763, A055400, A068527, A080883, A154840.

Sequence in context: A031099 A260933 A194755 * A055118 A132671 A340258

Adjacent sequences: A333881 A333882 A333883 * A333885 A333886 A333887

nonn

Ilya Gutkovskiy, Apr 08 2020

approved