The number 331087 (three hundred thirty-one thousand eighty-seven) is written in Roman numerals as follows: CCCXXXILXXXVII