The number 31861 (thirty-one thousand eight hundred sixty-one) is written in Roman numerals as follows: XXXIDCCCLXI