The number 31981 (thirty-one thousand nine hundred eighty-one) is written in Roman numerals as follows: XXXICMLXXXI