The number 7871 (seven thousand eight hundred seventy-one) is written in Roman numerals as follows: VIIDCCCLXXI