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