The number 987821 (nine hundred eighty-seven thousand eight hundred twenty-one) is written in Roman numerals as follows: CMLXXXVIIDCCCXXI