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