The number 31097 (thirty-one thousand ninety-seven) is written in Roman numerals as follows: XXXIXCVII