The number 851871 (eight hundred fifty-one thousand eight hundred seventy-one) is written in Roman numerals as follows: DCCCLIDCCCLXXI