40321 has 4 divisors (see below), whose sum is σ = 41044.
Its totient is φ = 39600.
The previous prime is 40289. The next prime is 40343. The reversal of 40321 is 12304.
Adding to 40321 its reverse (12304), we get a palindrome (52625).
It can be divided in two parts, 403 and 21, that added together give a palindrome (424).
It is a semiprime because it is the product of two primes.
It can be written as a sum of positive squares in 2 ways, for example, as 14400 + 25921 = 120^2 + 161^2
It is a cyclic number.
It is not a de Polignac number, because 40321 - 25 = 40289 is a prime.
It is a Duffinian number.
40321 is a lucky number.
It is a junction number, because it is equal to n+sod(n) for n = 40298 and 40307.
It is not an unprimeable number, because it can be changed into a prime (40351) by changing a digit.
It is a pernicious number, because its binary representation contains a prime number (7) of ones.
It is a polite number, since it can be written in 3 ways as a sum of consecutive naturals, for example, 270 + ... + 391.
It is an arithmetic number, because the mean of its divisors is an integer number (10261).
240321 is an apocalyptic number.
It is an amenable number.
40321 is a deficient number, since it is larger than the sum of its proper divisors (723).
40321 is an equidigital number, since it uses as much as digits as its factorization.
40321 is an odious number, because the sum of its binary digits is odd.
The sum of its prime factors is 722.
The product of its (nonzero) digits is 24, while the sum is 10.
The square root of 40321 is about 200.8008964123.
The cubic root of 40321 is about 34.2907590130.
The spelling of 40321 in words is "forty thousand, three hundred twenty-one", and thus it is an iban number.