The number 31038 (thirty-one thousand thirty-eight) is written in Roman numerals as follows: XXXIXXXVIII