Skip to content
Number Buffet

Number analysis

12,345

12,345 is a composite odd number that factors as 3 × 5 × 823.

12,345 is a composite odd number that factors as 3 × 5 × 823.

Composite

The number itself

Value
12,345
Digits
5
Digit sum
15

1 + 2 + 3 + 4 + 5

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

Reversed
54,321

Reverses to 54,321.

Parity and primality

Parity
Odd

Leaves remainder 1 on division by 2.

Prime
No

Composite — it factors as 3 × 5 × 823.

Prime factorisation
3 × 5 × 823

3 distinct prime factors, 3 with multiplicity.

Squarefree
Yes

No prime divides it twice.

Möbius μ(n)
-1

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

Nearest primes
12,343 ← → 12,347

A gap of 4 between them.

Divisors

1, 3, 5, 15, 823, 2,469, 4,115, 12,345

Aliquot sum
7,431

The proper divisors — everything except n itself.

Classification
Deficient

Its proper divisors fall short by 4,914.

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

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
Yes

Divisible by its digit sum 15 — 12,345 ÷ 15 = 823.

Collatz trajectory
50 steps to 1

Peaks at 41,668 along the way.

Written other ways

Binary
11000000111001
Octal
30071
Base 36
9IX

Standard Roman numerals only run from 1 to 3,999.

In words
twelve thousand three hundred and forty-five
Scientific notation
1.2345 × 10^4

Is 12,345 a prime number?

Composite — it factors as 3 × 5 × 823.

Nearby numbers

Analyse any number up to a trillion · All generators