The number 20731 (twenty thousand seven hundred thirty-one) is written in Roman numerals as follows: XXDCCXXXI