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