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