The number 21821 (twenty-one thousand eight hundred twenty-one) is written in Roman numerals as follows: XXIDCCCXXI