The number 77871 (seventy-seven thousand eight hundred seventy-one) is written in Roman numerals as follows: LXXVIIDCCCLXXI