The number 876871 (eight hundred seventy-six thousand eight hundred seventy-one) is written in Roman numerals as follows: DCCCLXXVIDCCCLXXI