The number 51789 (fifty-one thousand seven hundred eighty-nine) is written in Roman numerals as follows: LIDCCLXXXIX