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