The number 217842 (two hundred seventeen thousand eight hundred forty-two) is written in Roman numerals as follows: CCXVIIDCCCXLII