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