Fatto matematico: 1031 is the length of the largest repunit that is known to be prime.
Trivia: 1031 is a number for which we're missing a fact (submit one to numbersapi at google mail!).
Data storica: October 27th is the day in 1795 that the United States and Spain sign the Treaty of Madrid, which establishes the boundaries between Spanish colonies and the U.S.