Search a number
-
+
12987 = 331337
BaseRepresentation
bin11001010111011
3122211000
43022323
5403422
6140043
752602
oct31273
918730
1012987
119837
127623
135bb0
144a39
153cac
hex32bb

12987 has 16 divisors (see below), whose sum is σ = 21280. Its totient is φ = 7776.

The previous prime is 12983. The next prime is 13001. The reversal of 12987 is 78921.

12987 is digitally balanced in base 3, because in such base it contains all the possibile digits an equal number of times.

It is not a de Polignac number, because 12987 - 22 = 12983 is a prime.

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

It is an alternating number because its digits alternate between odd and even.

It is a Duffinian number.

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

It is a congruent number.

It is not an unprimeable number, because it can be changed into a prime (12983) 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, 333 + ... + 369.

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

212987 is an apocalyptic number.

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

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

12987 is an odious number, because the sum of its binary digits is odd.

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

The product of its digits is 1008, while the sum is 27.

The square root of 12987 is about 113.9605194793. The cubic root of 12987 is about 23.5055064809.

It can be divided in two parts, 129 and 87, that added together give a cube (216 = 63).

The spelling of 12987 in words is "twelve thousand, nine hundred eighty-seven".

Divisors: 1 3 9 13 27 37 39 111 117 333 351 481 999 1443 4329 12987