Skip to content
Number Buffet

Number analysis

87

87 is a composite odd number that factors as 3 × 29.

87 is a composite odd number that factors as 3 × 29.

CompositeSemiprime

The number itself

Value
87
Digits
2
Digit sum
15

8 + 7

Digit sum repeated until one digit remains; equals n mod 9 (with 9 for multiples of 9).

Reversed
78

Reverses to 78.

Parity and primality

Parity
Odd

Leaves remainder 1 on division by 2.

Prime
No

Composite — it factors as 3 × 29.

2 distinct prime factors, 2 with multiplicity.

Squarefree
Yes

No prime divides it twice.

Semiprime
Yes

A product of exactly two primes, counted with multiplicity.

Möbius μ(n)
1

(−1) to the power of 2 distinct prime factors.

Nearest primes
83 ← → 89

A gap of 6 between them.

Divisors

1, 3, 29, 87

Aliquot sum
33

The proper divisors — everything except n itself.

Classification
Deficient

Its proper divisors fall short by 54.

How many integers from 1 to n share no factor with n.

Sums and additive structure

Sum of two squares
No

A prime congruent to 3 mod 4 divides it an odd number of times, which rules it out.

Sum of three squares
No

Excluded by Legendre: it has the form 4^a(8b + 7).

Sum of four squares
Yes

Lagrange's four-square theorem: every non-negative integer is, without exception.

Shapes and sequences

Figurate shapes
None

Not triangular, square, pentagonal, hexagonal, cubic, Fibonacci, Lucas, Catalan, factorial or a power of two.

Digit curiosities

Summing the squares of its digits falls into the 4 → 16 → 37 → … → 4 cycle.

Harshad number
No

Not divisible by its digit sum 15.

Collatz trajectory
30 steps to 1

Peaks at 592 along the way.

Written other ways

Binary
1010111
Octal
127
Base 36
2F
Roman numerals
LXXXVII
In words
eighty-seven
Scientific notation
8.7 × 10^1

Is 87 a prime number?

Composite — it factors as 3 × 29.

Nearby numbers

Analyse any number up to a trillion · All generators

Other numeral systems

Beyond the bases and Roman numerals above, these notations write 87 their own way.

Greek (alphabetic)
ΠΖʹ
Babylonian cuneiform
𒐕𒎙𒐛
Tamil
௮௰௭020# 5823

References

Further reading: Wikipedia · Wikidata

Notations, naming and the links above come from Wikidata, whose structured data is dedicated to the public domain under CC0-1.0. Retrieved 2026-10-07.