The number 1871 (one thousand eight hundred seventy-one) is written in Roman numerals as follows: MDCCCLXXI