value1=0 x=0 while value1<=1500 x=1+x value1=value1+(x^3) end value1=value1-x^3