The number 240171 (two hundred forty thousand one hundred seventy-one) is written in Roman numerals as follows: CCXLCLXXI