The number 42817 (forty-two thousand eight hundred seventeen) is written in Roman numerals as follows: XLIIDCCCXVII