40027 has 4 divisors (see below), whose sum is σ = 43120.
Its totient is φ = 36936.
The previous prime is 40013. The next prime is 40031. The reversal of 40027 is 72004.
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-40027 is a prime.
It is a Harshad number since it is a multiple of its sum of digits (13), and also a Moran number because the ratio is a prime number: 3079 = 40027 / (4 + 0 + 0 + 2 + 7).
It is an Ulam number.
It is a Duffinian number.
It is a junction number, because it is equal to n+sod(n) for n = 39989 and 40016.
It is not an unprimeable number, because it can be changed into a prime (40037) 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, 1527 + ... + 1552.
It is an arithmetic number, because the mean of its divisors is an integer number (10780).
240027 is an apocalyptic number.
40027 is a deficient number, since it is larger than the sum of its proper divisors (3093).
40027 is a wasteful number, since it uses less digits than its factorization.
40027 is an odious number, because the sum of its binary digits is odd.
The sum of its prime factors is 3092.
The product of its (nonzero) digits is 56, while the sum is 13.
The square root of 40027 is about 200.0674886132.
The cubic root of 40027 is about 34.2072120946.
The spelling of 40027 in words is "forty thousand, twenty-seven", and thus it is an iban number.