The number 45942 (forty-five thousand nine hundred forty-two) is written in Roman numerals as follows: XLVCMXLII