The number 317512 (three hundred seventeen thousand five hundred twelve) is written in Roman numerals as follows: CCCXVIIDXII