The number 31831 (thirty-one thousand eight hundred thirty-one) is written in Roman numerals as follows: XXXIDCCCXXXI