The number 165017 (one hundred sixty-five thousand seventeen) is written in Roman numerals as follows: CLXVXVII