40545 has 24 divisors (see below), whose sum is σ = 75816.
Its totient is φ = 19968.
The previous prime is 40543. The next prime is 40559. The reversal of 40545 is 54504.
It is a happy number.
40545 is digitally balanced in base 2, because in such base it contains all the possibile digits an equal number of times.
It can be written as a sum of positive squares in 4 ways, for example, as 12321 + 28224 = 111^2 + 168^2
It is not a de Polignac number, because 40545 - 21 = 40543 is a prime.
It is an Ulam number.
It is a plaindrome in base 13.
It is not an unprimeable number, because it can be changed into a prime (40543) by changing a digit.
It is a polite number, since it can be written in 23 ways as a sum of consecutive naturals, for example, 739 + ... + 791.
It is an arithmetic number, because the mean of its divisors is an integer number (3159).
240545 is an apocalyptic number.
40545 is a gapful number since it is divisible by the number (45) formed by its first and last digit.
It is an amenable number.
40545 is a deficient number, since it is larger than the sum of its proper divisors (35271).
40545 is a wasteful number, since it uses less digits than its factorization.
40545 is an evil number, because the sum of its binary digits is even.
The sum of its prime factors is 81 (or 78 counting only the distinct ones).
The product of its (nonzero) digits is 400, while the sum is 18.
The square root of 40545 is about 201.3578903346.
The cubic root of 40545 is about 34.3541416159.
It can be divided in two parts, 405 and 45, that multiplied together give a square (18225 = 1352).
The spelling of 40545 in words is "forty thousand, five hundred forty-five".