The number 9842 (nine thousand eight hundred forty-two) is written in Roman numerals as follows: IXDCCCXLII