The number 165217 (one hundred sixty-five thousand two hundred seventeen) is written in Roman numerals as follows: CLXVCCXVII