The number 312171 (three hundred twelve thousand one hundred seventy-one) is written in Roman numerals as follows: CCCXIICLXXI