The number 31421 (thirty-one thousand four hundred twenty-one) is written in Roman numerals as follows: XXXICDXXI