The number 31173 (thirty-one thousand one hundred seventy-three) is written in Roman numerals as follows: XXXICLXXIII