The number 51797 (fifty-one thousand seven hundred ninety-seven) is written in Roman numerals as follows: LIDCCXCVII