The number 31172 (thirty-one thousand one hundred seventy-two) is written in Roman numerals as follows: XXXICLXXII