The number 34731 (thirty-four thousand seven hundred thirty-one) is written in Roman numerals as follows: XXXIVDCCXXXI