Skip to content
Number Buffet

Number analysis

7

The most commonly chosen "random" number when people are asked to pick one from 1 to 10.

The most commonly chosen "random" number when people are asked to pick one from 1 to 10.

PrimeMersenne primeTwin primeLucasHappy

The number itself

Value
7
Digits
1
Digit sum
7

7

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

Reversed
7

Reads the same in both directions.

Parity and primality

Parity
Odd

Leaves remainder 1 on division by 2.

Prime
Yes

Divisible only by 1 and itself.

1 distinct prime factor, 1 with multiplicity.

Squarefree
Yes

No prime divides it twice.

Möbius μ(n)
-1

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

Mersenne prime
2^3 − 1
Twin prime
Yes — paired with 5
Nearest primes
5 ← → 11

A gap of 6 between them.

Divisors

1, 7

Aliquot sum
1

The proper divisors — everything except n itself.

Classification
Deficient

Its proper divisors fall short by 6.

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

Lucas number
Yes — index 4

Digit curiosities

Repeatedly summing the squares of its digits reaches 1.

Armstrong number
Yes, trivially

Every single-digit number equals itself raised to the first power, so all ten qualify trivially.

Harshad number
Yes

Divisible by its digit sum 7 — 7 ÷ 7 = 1.

Collatz trajectory
16 steps to 1

Peaks at 52 along the way.

Written other ways

Binary
111
Octal
7
In words
seven

Is 7 a prime number?

Yes. 7 has no divisors other than 1 and itself.

Nearby numbers

Analyse any number up to a trillion · All generators

Other numeral systems

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

Greek (alphabetic)
Ζʹ
Tamil
௭

References

Further reading: Wikipedia · MathWorld · 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.