The number 25842 (twenty-five thousand eight hundred forty-two) is written in Roman numerals as follows: XXVDCCCXLII