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