Skip to content
Number Buffet

Number analysis

31,415

The opening digits of π, often used as a placeholder value.

The opening digits of π, often used as a placeholder value.

Composite

The number itself

Value
31,415
Digits
5
Digit sum
14

3 + 1 + 4 + 1 + 5

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

Reversed
51,413

Reverses to 51,413.

Parity and primality

Parity
Odd

Leaves remainder 1 on division by 2.

Prime
No

Composite — it factors as 5 × 61 × 103.

Prime factorisation
5 × 61 × 103

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
31,397 ← → 31,469

A gap of 72 between them.

Divisors

1, 5, 61, 103, 305, 515, 6,283, 31,415

Aliquot sum
7,273

The proper divisors — everything except n itself.

Classification
Deficient

Its proper divisors fall short by 24,142.

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 14.

Collatz trajectory
85 steps to 1

Peaks at 212,056 along the way.

Written other ways

Binary
111101010110111
Octal
75267
Base 36
O8N

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

In words
thirty-one thousand four hundred and fifteen
Scientific notation
3.1415 × 10^4

Is 31,415 a prime number?

Composite — it factors as 5 × 61 × 103.

Nearby numbers

Analyse any number up to a trillion · All generators