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