The number 20517 (twenty thousand five hundred seventeen) is written in Roman numerals as follows: XXDXVII