The number 331871 (three hundred thirty-one thousand eight hundred seventy-one) is written in Roman numerals as follows: CCCXXXIDCCCLXXI