The number 871842 (eight hundred seventy-one thousand eight hundred forty-two) is written in Roman numerals as follows: DCCCLXXIDCCCXLII