The number 305171 (three hundred five thousand one hundred seventy-one) is written in Roman numerals as follows: CCCVCLXXI