The number 30731 (thirty thousand seven hundred thirty-one) is written in Roman numerals as follows: XXXDCCXXXI