The number 31331 (thirty-one thousand three hundred thirty-one) is written in Roman numerals as follows: XXXICCCXXXI