There are floor(√400) = 20 squares in the range 1..400, so the 400th term will be at least 420. There are floor(∛420) = 7 cubes in the range 1..400, so the 400th term may be as high as 427. However, there are numbers that are both squares and cubes. Consequently, the 400th term will be 427-2 = 425.