O número 40797 (quarenta mil e setecentos e noventa e sete) é escrito em algarismos romanos da seguinte maneira: XLDCCXCVII