The number 51587 (fifty-one thousand five hundred eighty-seven) is written in Roman numerals as follows: LIDLXXXVII