The number 31391 (thirty-one thousand three hundred ninety-one) is written in Roman numerals as follows: XXXICCCXCI