The number 51838 (fifty-one thousand eight hundred thirty-eight) is written in Roman numerals as follows: LIDCCCXXXVIII