The number 51876 (fifty-one thousand eight hundred seventy-six) is written in Roman numerals as follows: LIDCCCLXXVI