The number 31645 (thirty-one thousand six hundred forty-five) is written in Roman numerals as follows: XXXIDCXLV