The number 38971 (thirty-eight thousand nine hundred seventy-one) is written in Roman numerals as follows: XXXVIIICMLXXI