O número 31787 (trinta e um mil setecentos e oitenta e sete) é escrito em algarismos romanos da seguinte maneira: XXXIDCCLXXXVII