The number 877842 (eight hundred seventy-seven thousand eight hundred forty-two) is written in Roman numerals as follows: DCCCLXXVIIDCCCXLII