The number 21771 (twenty-one thousand seven hundred seventy-one) is written in Roman numerals as follows: XXIDCCLXXI