The number 317171 (three hundred seventeen thousand one hundred seventy-one) is written in Roman numerals as follows: CCCXVIICLXXI