The number 171987 (one hundred seventy-one thousand nine hundred eighty-seven) is written in Roman numerals as follows: CLXXICMLXXXVII