The number 20742 (twenty thousand seven hundred forty-two) is written in Roman numerals as follows: XXDCCXLII