The number 40765 (forty thousand seven hundred sixty-five) is written in Roman numerals as follows: XLDCCLXV