The number 842042 (eight hundred forty-two thousand forty-two) is written in Roman numerals as follows: DCCCXLIIXLII