The number 217542 (two hundred seventeen thousand five hundred forty-two) is written in Roman numerals as follows: CCXVIIDXLII