The number 23871 (twenty-three thousand eight hundred seventy-one) is written in Roman numerals as follows: XXIIIDCCCLXXI