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