The number 31841 (thirty-one thousand eight hundred forty-one) is written in Roman numerals as follows: XXXIDCCCXLI