40704 has 36 divisors (see below), whose sum is σ = 110376.
Its totient is φ = 13312.
The previous prime is 40699. The next prime is 40709.
40704 is nontrivially palindromic in base 10.
It is an interprime number because it is at equal distance from previous prime (40699) and next prime (40709).
It is a congruent number.
It is not an unprimeable number, because it can be changed into a prime (40709) 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, 742 + ... + 794.
It is an arithmetic number, because the mean of its divisors is an integer number (3066).
240704 is an apocalyptic number.
It is an amenable number.
It is a practical number, because each smaller number is the sum of distinct divisors of 40704, and also a Zumkeller number, because its divisors can be partitioned in two sets with the same sum (55188).
40704 is an abundant number, since it is smaller than the sum of its proper divisors (69672).
It is a pseudoperfect number, because it is the sum of a subset of its proper divisors.
40704 is an equidigital number, since it uses as much as digits as its factorization.
40704 is an evil number, because the sum of its binary digits is even.
The sum of its prime factors is 72 (or 58 counting only the distinct ones).
The product of its (nonzero) digits is 112, while the sum is 15.
The square root of 40704 is about 201.7523234067.
The cubic root of 40704 is about 34.3989904157.
The spelling of 40704 in words is "forty thousand, seven hundred four", and thus it is an iban number.