The number 31717 (thirty-one thousand seven hundred seventeen) is written in Roman numerals as follows: XXXIDCCXVII