The positive three-digit integer N yields a perfect square when divided by 5. When N is divided by 4, the result is a perfect cube. What is the value of N?
500 / 5 = 100 = 102
500 / 4 = 125 = 53
I did it as follows: