The number 40917 (forty thousand nine hundred seventeen) is written in Roman numerals as follows: XLCMXVII