The number 838217 (eight hundred thirty-eight thousand two hundred seventeen) is written in Roman numerals as follows: DCCCXXXVIIICCXVII