The number 40971 (forty thousand nine hundred seventy-one) is written in Roman numerals as follows: XLCMLXXI