The number 311871 (three hundred eleven thousand eight hundred seventy-one) is written in Roman numerals as follows: CCCXIDCCCLXXI