The number 39540 (thirty-nine thousand five hundred forty) is written in Roman numerals as follows: XXXIXDXL