40959 has 16 divisors (see below), whose sum is σ = 63840.
Its totient is φ = 25920.
The previous prime is 40949. The next prime is 40961. The reversal of 40959 is 95904.
Subtracting 40959 from its reverse (95904), we obtain a palindrome (54945).
It can be divided in two parts, 40 and 959, that added together give a palindrome (999).
It is a happy number.
It is not a de Polignac number, because 40959 - 25 = 40927 is a prime.
It is a super-3 number, since 3×409593 = 206143331082237, which contains 333 as substring.
It is a Harshad number since it is a multiple of its sum of digits (27).
It is a plaindrome in base 8 and base 16.
It is a zygodrome in base 8.
It is a congruent number.
It is not an unprimeable number, because it can be changed into a prime (40939) by changing a digit.
It is a polite number, since it can be written in 15 ways as a sum of consecutive naturals, for example, 979 + ... + 1019.
It is an arithmetic number, because the mean of its divisors is an integer number (3990).
240959 is an apocalyptic number.
40959 is a deficient number, since it is larger than the sum of its proper divisors (22881).
40959 is a wasteful number, since it uses less digits than its factorization.
40959 is an evil number, because the sum of its binary digits is even.
The sum of its prime factors is 87 (or 81 counting only the distinct ones).
The product of its (nonzero) digits is 1620, while the sum is 27.
The square root of 40959 is about 202.3832997063.
The cubic root of 40959 is about 34.4706745129.
The spelling of 40959 in words is "forty thousand, nine hundred fifty-nine".