The number 41871 (forty-one thousand eight hundred seventy-one) is written in Roman numerals as follows: XLIDCCCLXXI