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