The number 317842 (three hundred seventeen thousand eight hundred forty-two) is written in Roman numerals as follows: CCCXVIIDCCCXLII