The number 38731 (thirty-eight thousand seven hundred thirty-one) is written in Roman numerals as follows: XXXVIIIDCCXXXI