The number 39931 (thirty-nine thousand nine hundred thirty-one) is written in Roman numerals as follows: XXXIXCMXXXI