The number 31851 (thirty-one thousand eight hundred fifty-one) is written in Roman numerals as follows: XXXIDCCCLI