The number 20787 (twenty thousand seven hundred eighty-seven) is written in Roman numerals as follows: XXDCCLXXXVII