The number 42517 (forty-two thousand five hundred seventeen) is written in Roman numerals as follows: XLIIDXVII