The number 51787 (fifty-one thousand seven hundred eighty-seven) is written in Roman numerals as follows: LIDCCLXXXVII