The number 317840 (three hundred seventeen thousand eight hundred forty) is written in Roman numerals as follows: CCCXVIIDCCCXL