The number 18642 (eighteen thousand six hundred forty-two) is written in Roman numerals as follows: XVIIIDCXLII