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