The number 39731 (thirty-nine thousand seven hundred thirty-one) is written in Roman numerals as follows: XXXIXDCCXXXI