The number 31939 (thirty-one thousand nine hundred thirty-nine) is written in Roman numerals as follows: XXXICMXXXIX