Search a number
-
+
40157 = 133089
BaseRepresentation
bin1001110011011101
32001002022
421303131
52241112
6505525
7225035
oct116335
961068
1040157
1128197
121b2a5
1315380
14108c5
15bd72
hex9cdd

40157 has 4 divisors (see below), whose sum is σ = 43260. Its totient is φ = 37056.

The previous prime is 40153. The next prime is 40163. The reversal of 40157 is 75104.

It is a happy number.

It is a semiprime because it is the product of two primes.

It can be written as a sum of positive squares in 2 ways, for example, as 22201 + 17956 = 149^2 + 134^2 .

It is a cyclic number.

It is not a de Polignac number, because 40157 - 22 = 40153 is a prime.

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

It is an Ulam number.

It is a Duffinian number.

It is a plaindrome in base 16.

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 3 ways as a sum of consecutive naturals, for example, 1532 + ... + 1557.

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

240157 is an apocalyptic number.

It is an amenable number.

40157 is a deficient number, since it is larger than the sum of its proper divisors (3103).

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

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

The sum of its prime factors is 3102.

The product of its (nonzero) digits is 140, while the sum is 17.

The square root of 40157 is about 200.3921156134. The cubic root of 40157 is about 34.2442048909.

The spelling of 40157 in words is "forty thousand, one hundred fifty-seven".

Divisors: 1 13 3089 40157