The number 987831 (nine hundred eighty-seven thousand eight hundred thirty-one) is written in Roman numerals as follows: CMLXXXVIIDCCCXXXI