The number 31687 (thirty-one thousand six hundred eighty-seven) is written in Roman numerals as follows: XXXIDCLXXXVII