The number 20840 (twenty thousand eight hundred forty) is written in Roman numerals as follows: XXDCCCXL