The number 40521 (forty thousand five hundred twenty-one) is written in Roman numerals as follows: XLDXXI