The number 310031 (three hundred ten thousand thirty-one) is written in Roman numerals as follows: CCCXXXXI