Search a number
-
+
40158 = 2322397
BaseRepresentation
bin1001110011011110
32001002100
421303132
52241113
6505530
7225036
oct116336
961070
1040158
1128198
121b2a6
1315381
14108c6
15bd73
hex9cde

40158 has 24 divisors (see below), whose sum is σ = 91728. Its totient is φ = 12672.

The previous prime is 40153. The next prime is 40163. The reversal of 40158 is 85104.

It is an interprime number because it is at equal distance from previous prime (40153) and next prime (40163).

It is a super-2 number, since 2×401582 = 3225329928, which contains 22 as substring.

It is a Harshad number since it is a multiple of its sum of digits (18).

It is a Curzon number.

It is a plaindrome in base 16.

It is a self number, because there is not a number n which added to its sum of digits gives 40158.

It is a congruent number.

It is not an unprimeable number, because it can be changed into a prime (40151) by changing a digit.

It is a polite number, since it can be written in 11 ways as a sum of consecutive naturals, for example, 366 + ... + 462.

It is an arithmetic number, because the mean of its divisors is an integer number (3822).

240158 is an apocalyptic number.

It is a practical number, because each smaller number is the sum of distinct divisors of 40158, and also a Zumkeller number, because its divisors can be partitioned in two sets with the same sum (45864).

40158 is an abundant number, since it is smaller than the sum of its proper divisors (51570).

It is a pseudoperfect number, because it is the sum of a subset of its proper divisors.

40158 is a wasteful number, since it uses less digits than its factorization.

40158 is an evil number, because the sum of its binary digits is even.

The sum of its prime factors is 128 (or 125 counting only the distinct ones).

The product of its (nonzero) digits is 160, while the sum is 18.

The square root of 40158 is about 200.3946107060. The cubic root of 40158 is about 34.2444891412.

The spelling of 40158 in words is "forty thousand, one hundred fifty-eight".

Divisors: 1 2 3 6 9 18 23 46 69 97 138 194 207 291 414 582 873 1746 2231 4462 6693 13386 20079 40158