The number 12831 (twelve thousand eight hundred thirty-one) is written in Roman numerals as follows: XIIDCCCXXXI