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.
The number itself
- Value
- 12,345
- Digits
- 5
- Digit sum
- 15
- Reversed
- 54,321
- Palindrome
- No
1 + 2 + 3 + 4 + 5
Digit sum repeated until one digit remains; equals n mod 9 (with 9 for multiples of 9).
Reverses to 54,321.
Parity and primality
- Parity
- Odd
- Prime
- No
- Prime factorisation
- 3 × 5 × 823
- Squarefree
- Yes
- Möbius μ(n)
- -1
- Nearest primes
- 12,343 ← → 12,347
Leaves remainder 1 on division by 2.
Composite — it factors as 3 × 5 × 823.
3 distinct prime factors, 3 with multiplicity.
No prime divides it twice.
(−1) to the power of 3 distinct prime factors.
A gap of 4 between them.
Divisors
- Sum of divisors σ(n)
- 19,776
- Aliquot sum
- 7,431
- Classification
- Deficient
- Euler totient φ(n)
- 6,576
1, 3, 5, 15, 823, 2,469, 4,115, 12,345
The proper divisors — everything except n itself.
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
- Sum of three squares
- Yes
- Sum of four squares
- Yes
A prime congruent to 3 mod 4 divides it an odd number of times, which rules it out.
Legendre's three-square theorem allows it.
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
- Happy number
- No
- Harshad number
- Yes
- Collatz trajectory
- 50 steps to 1
Summing the squares of its digits falls into the 4 → 16 → 37 → … → 4 cycle.
Divisible by its digit sum 15 — 12,345 ÷ 15 = 823.
Peaks at 41,668 along the way.
Written other ways
- Binary
- 11000000111001
- Octal
- 30071
- Hexadecimal
- 3039
- Base 36
- 9IX
- In words
- twelve thousand three hundred and forty-five
- Scientific notation
- 1.2345 × 10^4
Standard Roman numerals only run from 1 to 3,999.
Is 12,345 a prime number?
Composite — it factors as 3 × 5 × 823.