The number 138742 (one hundred thirty-eight thousand seven hundred forty-two) is written in Roman numerals as follows: CXXXVIIIDCCXLII