The number 31951 (thirty-one thousand nine hundred fifty-one) is written in Roman numerals as follows: XXXICMLI