The number 31991 (thirty-one thousand nine hundred ninety-one) is written in Roman numerals as follows: XXXICMXCI