The number 977871 (nine hundred seventy-seven thousand eight hundred seventy-one) is written in Roman numerals as follows: CMLXXVIIDCCCLXXI