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