The number 47871 (forty-seven thousand eight hundred seventy-one) is written in Roman numerals as follows: XLVIIDCCCLXXI