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