convert the decimal to the given base. 503 to base five

503 = 4*125 + 3 = 40035