The number 871838 (eight hundred seventy-one thousand eight hundred thirty-eight) is written in Roman numerals as follows: DCCCLXXIDCCCXXXVIII