The number 31641 (thirty-one thousand six hundred forty-one) is written in Roman numerals as follows: XXXIDCXLI