The number 79842 (seventy-nine thousand eight hundred forty-two) is written in Roman numerals as follows: LXXIXDCCCXLII