31 (thirty-one) is the natural number following 30 and preceding 32.
31 is a centered triangular number, a centered pentagonal number and centered decagonal number.
At 31, the Mertens function sets a new low of -4, a value which is not subceded until 110.
No integer added up to its base 10 digits results in 31, making 31 a self number.
31 is a repdigit in base 5 (111), and base 2 (11111).
The numbers 31, 331, 3331, 33331, 333331, 3333331, and 33333331 are all prime. For a time it was thought that every number of the form 3w1 would be prime. However, the next nine numbers of the sequence are composite; their factorisations are:
The recurrence of the factor 31 in the last number above can be used to prove that no sequence of the type RwE or ERw can consist only of primes because every prime in the sequence will periodically divide further numbers. Here, 31 divides every fifteenth number in 3w1 (and 331 every 110th).
The jersey number 31 was retired for Baseball Hall of Famer Dave Winfield.
NASCAR driver Jeff Burton drives #31, a car which was subject to a controversy when one of the sponsors changed its name after merging with another company.
Dallas Cowboys safety Roy Williams wore 31 before switching to 38.