The number 240871 (two hundred forty thousand eight hundred seventy-one) is written in Roman numerals as follows: CCXLDCCCLXXI