The number 51821 (fifty-one thousand eight hundred twenty-one) is written in Roman numerals as follows: LIDCCCXXI