The number 31507 (thirty-one thousand five hundred seven) is written in Roman numerals as follows: XXXIDVII