The given number is 51y3
Sum of its digits = (5 + 1 + y + 3) = (9 + y)
which must divisible by 9
This happens when y = 0 or y = 9
So, the required numbers are 5103 and 5193.