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