The number 31231 (thirty-one thousand two hundred thirty-one) is written in Roman numerals as follows: XXXICCXXXI