The number 313042 (three hundred thirteen thousand forty-two) is written in Roman numerals as follows: CCCXIIIXLII