The number 842145 (eight hundred forty-two thousand one hundred forty-five) is written in Roman numerals as follows: DCCCXLIICXLV