The number 831042 (eight hundred thirty-one thousand forty-two) is written in Roman numerals as follows: DCCCXXXIXLII