The number 318042 (three hundred eighteen thousand forty-two) is written in Roman numerals as follows: CCCXVIIIXLII