The number 51840 (fifty-one thousand eight hundred forty) is written in Roman numerals as follows: LIDCCCXL