The number 11871 (eleven thousand eight hundred seventy-one) is written in Roman numerals as follows: XIDCCCLXXI