The number 331042 (three hundred thirty-one thousand forty-two) is written in Roman numerals as follows: CCCXXXIXLII