The number 317042 (three hundred seventeen thousand forty-two) is written in Roman numerals as follows: CCCXVIIXLII