Divide 2022 by successive positive integer powers of 5 until 2022/ 5^n produces a division < 1
integer [ 2022 / 5^1] = 404
integer [ 2022/ 5^2 ] = 80
integer [ 2022/ 5^3 ] = 16
integer [2022/ 5^4 ] = 3
integer [ 2022 / 5^5 ] = 0
N = 404 + 80 +16 + 3 = 503 CORRECTED !!!!