The number 840331 (eight hundred forty thousand three hundred thirty-one) is written in Roman numerals as follows: DCCCXLCCCXXXI