===========================================================
Explanation:
Cube values in the set {0,1,2,3,...} until we reach a result larger than 497
We stop here because 512 is larger than 497.
Or you could note that [tex]\sqrt[3]{497} = 497^{1/3} \approx 7.921[/tex] helping us see that we stop at 8.
The list of nonnegative perfect cubes less than 497 is {0,1,8,27,64,125,216,343}
There are 8 items in that set out of 498 items in the set {0,1,2,3,...,497}
So the probability of getting a perfect cube is 8/498 = 4/249