The number 21242 (twenty-one thousand two hundred forty-two) is written in Roman numerals as follows: XXICCXLII