O número 40787 (quarenta mil setecentos e oitenta e sete) é escrito em algarismos romanos da seguinte maneira: XLDCCLXXXVII