The number 31721 (thirty-one thousand seven hundred twenty-one) is written in Roman numerals as follows: XXXIDCCXXI