The number 12731 (twelve thousand seven hundred thirty-one) is written in Roman numerals as follows: XIIDCCXXXI