The number 21840 (twenty-one thousand eight hundred forty) is written in Roman numerals as follows: XXIDCCCXL