The number 312842 (three hundred twelve thousand eight hundred forty-two) is written in Roman numerals as follows: CCCXIIDCCCXLII