The number 40585 (forty thousand five hundred eighty-five) is written in Roman numerals as follows: XLDLXXXV