The number 31047 (thirty-one thousand forty-seven) is written in Roman numerals as follows: XXXIXLVII