The number 20417 (twenty thousand four hundred seventeen) is written in Roman numerals as follows: XXCDXVII