The number 305142 (three hundred five thousand one hundred forty-two) is written in Roman numerals as follows: CCCVCXLII