The number 51731 (fifty-one thousand seven hundred thirty-one) is written in Roman numerals as follows: LIDCCXXXI