The number 51845 (fifty-one thousand eight hundred forty-five) is written in Roman numerals as follows: LIDCCCXLV