The number 317742 (three hundred seventeen thousand seven hundred forty-two) is written in Roman numerals as follows: CCCXVIIDCCXLII