The number 145871 (one hundred forty-five thousand eight hundred seventy-one) is written in Roman numerals as follows: CXLVDCCCLXXI