The number 40861 (forty thousand eight hundred sixty-one) is written in Roman numerals as follows: XLDCCCLXI