The number 2842 (two thousand eight hundred forty-two) is written in Roman numerals as follows: MMDCCCXLII