The number 31917 (thirty-one thousand nine hundred seventeen) is written in Roman numerals as follows: XXXICMXVII