The number 138871 (one hundred thirty-eight thousand eight hundred seventy-one) is written in Roman numerals as follows: CXXXVIIIDCCCLXXI