The number 312542 (three hundred twelve thousand five hundred forty-two) is written in Roman numerals as follows: CCCXIIDXLII