The number 187871 (one hundred eighty-seven thousand eight hundred seventy-one) is written in Roman numerals as follows: CLXXXVIIDCCCLXXI