Call the number "xyz" = 100x + 10y + z. Then you require that
Specifically what I'm after is the last term:
If we have as a solution the number 371, note that since z = 1. Thus we know that
for this number.
There is another way to make this last term 0: set z = 0. So 370 should also be a solution.