The number 18731 (eighteen thousand seven hundred thirty-one) is written in Roman numerals as follows: XVIIIDCCXXXI