The number 40291 (forty thousand two hundred ninety-one) is written in Roman numerals as follows: XLCCXCI