The number 842789 (eight hundred forty-two thousand seven hundred eighty-nine) is written in Roman numerals as follows: DCCCXLIIDCCLXXXIX