Skip to content
Number Buffet

Number analysis

171

171 is a composite odd number that factors as 3^2 × 19.

171 is a composite odd number that factors as 3^2 × 19.

PalindromeCompositeTriangular

The number itself

Value
171
Digits
3
Digit sum
9

1 + 7 + 1

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

Reversed
171

Reads the same in both directions.

Parity and primality

Parity
Odd

Leaves remainder 1 on division by 2.

Prime
No

Composite — it factors as 3^2 × 19.

2 distinct prime factors, 3 with multiplicity.

Squarefree
No

At least one prime appears squared.

Möbius μ(n)
0

Zero, because a squared prime divides n.

Nearest primes
167 ← → 173

A gap of 6 between them.

Divisors

1, 3, 9, 19, 57, 171

Aliquot sum
89

The proper divisors — everything except n itself.

Classification
Deficient

Its proper divisors fall short by 82.

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
Yes

Legendre's three-square theorem allows it.

Sum of four squares
Yes

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

Shapes and sequences

Triangular number
Yes — the 18th

Digit curiosities

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

Harshad number
Yes

Divisible by its digit sum 9 — 171 ÷ 9 = 19.

Collatz trajectory
124 steps to 1

Peaks at 9,232 along the way.

Written other ways

Binary
10101011
Octal
253
Base 36
4R
In words
one hundred and seventy-one
Scientific notation
1.71 × 10^2

Is 171 a prime number?

Composite — it factors as 3^2 × 19.

Nearby numbers

Analyse any number up to a trillion · All generators

Other numeral systems

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

Morse code
· − − − − − − · · · · − − − −
Devanagari
१७१
Tamil
௱௭௰௧
Thai
๑๗๑

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.