The number 312042 (three hundred twelve thousand forty-two) is written in Roman numerals as follows: CCCXIIXLII