The number 166017 (one hundred sixty-six thousand seventeen) is written in Roman numerals as follows: CLXVIXVII