The number 240017 (two hundred forty thousand seventeen) is written in Roman numerals as follows: CCXLXVII