y×y×y ≤ 60000
40×40×40 = 1600×40 = 64000 ≤ 60000 (F) ⇔ y≠40
39×39×39 = 1521×39 = 59319 ≤ 60000 (A) ⇔ y=39
..........................................................................................
0×0×0 = 0×0 = 0 ≤ 60000 (A) ⇔ y=0
⇒ y ∈ {0; 1; 2; ...; 38; 39}
Sper ca te-am ajutat! :)