5031 has 12 divisors (see below), whose sum is σ = 8008.
Its totient is φ = 3024.
The previous prime is 5023. The next prime is 5039. The reversal of 5031 is 1305.
Adding to 5031 its reverse (1305), we get a palindrome (6336).
It can be divided in two parts, 50 and 31, that added together give a 4-th power (81 = 34).
It is an interprime number because it is at equal distance from previous prime (5023) and next prime (5039).
It is not a de Polignac number, because 5031 - 23 = 5023 is a prime.
It is a super-2 number, since 2×50312 = 50621922, which contains 22 as substring.
It is a Harshad number since it is a multiple of its sum of digits (9).
It is a congruent number.
It is not an unprimeable number, because it can be changed into a prime (5039) by changing a digit.
It is a polite number, since it can be written in 11 ways as a sum of consecutive naturals, for example, 96 + ... + 138.
5031 is a deficient number, since it is larger than the sum of its proper divisors (2977).
5031 is a wasteful number, since it uses less digits than its factorization.
5031 is an evil number, because the sum of its binary digits is even.
The sum of its prime factors is 62 (or 59 counting only the distinct ones).
The product of its (nonzero) digits is 15, while the sum is 9.
The square root of 5031 is about 70.9295425052.
The cubic root of 5031 is about 17.1350261852.
The spelling of 5031 in words is "five thousand, thirty-one".