The number 877838 (eight hundred seventy-seven thousand eight hundred thirty-eight) is written in Roman numerals as follows: DCCCLXXVIIDCCCXXXVIII