The number 3138 (three thousand one hundred thirty-eight) is written in Roman numerals as follows: MMMCXXXVIII