The number 840871 (eight hundred forty thousand eight hundred seventy-one) is written in Roman numerals as follows: DCCCXLDCCCLXXI