The number 31291 (thirty-one thousand two hundred ninety-one) is written in Roman numerals as follows: XXXICCXCI