The number 21742 (twenty-one thousand seven hundred forty-two) is written in Roman numerals as follows: XXIDCCXLII