The number 842778 (eight hundred forty-two thousand seven hundred seventy-eight) is written in Roman numerals as follows: DCCCXLIIDCCLXXVIII