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