Le nombre 31840 (trente-et-un mille huit cent quarante) est écrit en chiffres romains comme suit: XXXIDCCCXL