The number 21781 (twenty-one thousand seven hundred eighty-one) is written in Roman numerals as follows: XXIDCCLXXXI