The number 40931 (forty thousand nine hundred thirty-one) is written in Roman numerals as follows: XLCMXXXI