40331 has 4 divisors (see below), whose sum is σ = 41664.
Its totient is φ = 39000.
The previous prime is 40289. The next prime is 40343. The reversal of 40331 is 13304.
Adding to 40331 its reverse (13304), we get a palindrome (53635).
It can be divided in two parts, 403 and 31, that added together give a palindrome (434).
It is a semiprime because it is the product of two primes.
It is a cyclic number.
It is a de Polignac number, because none of the positive numbers 2k-40331 is a prime.
It is a super-2 number, since 2×403312 = 3253179122, which contains 22 as substring.
It is a fibodiv number, since the Fibonacci-like sequence with seeds 403 and 31 contains 40331 itself.
It is an inconsummate number, since it does not exist a number n which divided by its sum of digits gives 40331.
It is not an unprimeable number, because it can be changed into a prime (40351) by changing a digit.
It is a polite number, since it can be written in 3 ways as a sum of consecutive naturals, for example, 620 + ... + 681.
It is an arithmetic number, because the mean of its divisors is an integer number (10416).
240331 is an apocalyptic number.
40331 is a deficient number, since it is larger than the sum of its proper divisors (1333).
40331 is a wasteful number, since it uses less digits than its factorization.
40331 is an odious number, because the sum of its binary digits is odd.
The sum of its prime factors is 1332.
The product of its (nonzero) digits is 36, while the sum is 11.
The square root of 40331 is about 200.8257951559.
The cubic root of 40331 is about 34.2935935925.
The spelling of 40331 in words is "forty thousand, three hundred thirty-one".