The number 165831 (one hundred sixty-five thousand eight hundred thirty-one) is written in Roman numerals as follows: CLXVDCCCXXXI