The number 877840 (eight hundred seventy-seven thousand eight hundred forty) is written in Roman numerals as follows: DCCCLXXVIIDCCCXL