The number 13871 (thirteen thousand eight hundred seventy-one) is written in Roman numerals as follows: XIIIDCCCLXXI