User blog comment:DrCocktor/Cubes in the form 1 + k + k^2/@comment-32994025-20190412224942

for(a=0;;a++)for(b=0;b<a;b++)if(a**3==b*b+b+1)console.log(a)