The number 842045 (eight hundred forty-two thousand forty-five) is written in Roman numerals as follows: DCCCXLIIXLV