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