The number 31521 (thirty-one thousand five hundred twenty-one) is written in Roman numerals as follows: XXXIDXXI