The number 20172 (twenty thousand one hundred seventy-two) is written in Roman numerals as follows: XXCLXXII