The number 317231 (three hundred seventeen thousand two hundred thirty-one) is written in Roman numerals as follows: CCCXVIICCXXXI