The number 317421 (three hundred seventeen thousand four hundred twenty-one) is written in Roman numerals as follows: CCCXVIICDXXI