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