7 (seven) is the
natural number
In mathematics, the natural numbers are those numbers used for counting (as in "there are ''six'' coins on the table") and ordering (as in "this is the ''third'' largest city in the country").
Numbers used for counting are called '' cardinal ...
following
6 and preceding
8. It is the only
prime number
A prime number (or a prime) is a natural number greater than 1 that is not a product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime because the only way ...
preceding a
cube
In geometry, a cube is a three-dimensional solid object bounded by six square faces, facets or sides, with three meeting at each vertex. Viewed from a corner it is a hexagon and its net is usually depicted as a cross.
The cube is the on ...
.
As an early
prime number
A prime number (or a prime) is a natural number greater than 1 that is not a product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime because the only way ...
in the series of
positive integers
In mathematics, the natural numbers are those numbers used for counting (as in "there are ''six'' coins on the table") and ordering (as in "this is the ''third'' largest city in the country").
Numbers used for counting are called ''Cardinal n ...
, the number seven has greatly symbolic associations in
religion
Religion is usually defined as a social- cultural system of designated behaviors and practices, morals, beliefs, worldviews, texts, sanctified places, prophecies, ethics, or organizations, that generally relates humanity to supernatural ...
,
mythology
Myth is a folklore genre consisting of Narrative, narratives that play a fundamental role in a society, such as foundational tales or Origin myth, origin myths. Since "myth" is widely used to imply that a story is not Objectivity (philosophy), ...
,
superstition
A superstition is any belief or practice considered by non-practitioners to be irrational or supernatural, attributed to fate or magic, perceived supernatural influence, or fear of that which is unknown. It is commonly applied to beliefs an ...
and
philosophy. The seven
Classical planet
In classical antiquity, the seven classical planets or seven luminaries are the seven moving astronomical objects in the sky visible to the naked eye: the Moon, Mercury, Venus, the Sun, Mars, Jupiter, and Saturn. The word ''planet'' comes f ...
s resulted in seven being the number of days in a week. It is often considered
lucky in
Western culture
image:Da Vinci Vitruve Luc Viatour.jpg, Leonardo da Vinci's ''Vitruvian Man''. Based on the correlations of ideal Body proportions, human proportions with geometry described by the ancient Roman architect Vitruvius in Book III of his treatise '' ...
and is often seen as
highly symbolic. Unlike
Western culture
image:Da Vinci Vitruve Luc Viatour.jpg, Leonardo da Vinci's ''Vitruvian Man''. Based on the correlations of ideal Body proportions, human proportions with geometry described by the ancient Roman architect Vitruvius in Book III of his treatise '' ...
, in
Vietnamese culture
The culture of Vietnam (Vietnamese: Văn hoá Việt Nam) is highly multicultural. The early culture in Vietnam started with the Bronze Age Đông Sơn culture considered to be one of its most important progenitors for its Ancient history. Viet ...
, the number seven is sometimes considered unlucky.
It is the first natural number whose pronunciation contains more than one syllable.
Evolution of the Arabic digit
In the
beginning, Indians wrote 7 more or less in one stroke as a curve that looks like an uppercase vertically inverted. The western Ghubar Arabs' main contribution was to make the longer line diagonal rather than straight, though they showed some tendencies to making the digit more rectilinear. The eastern
Arab
The Arabs (singular: Arab; singular ar, عَرَبِيٌّ, DIN 31635: , , plural ar, عَرَب, DIN 31635, DIN 31635: , Arabic pronunciation: ), also known as the Arab people, are an ethnic group mainly inhabiting the Arab world in Wester ...
s developed the digit from a form that looked something like our 6 to one that looked like an uppercase V. Both modern Arab forms influenced the European form, a two-stroke form consisting of a horizontal upper stroke joined at its right to a stroke going down to the bottom left corner, a line that is slightly curved in some font variants. As is the case with the
Europe
Europe is a large peninsula conventionally considered a continent in its own right because of its great physical size and the weight of its history and traditions. Europe is also considered a subcontinent of Eurasia and it is located enti ...
an digit, the Cham and Khmer digit for 7 also evolved to look like their digit 1, though in a different way, so they were also concerned with making their 7 more different. For the Khmer this often involved adding a horizontal line to the top of the digit. This is analogous to the horizontal stroke through the middle that is sometimes used in handwriting in the Western world but which is almost never used in computer fonts. This horizontal stroke is, however, important to distinguish the glyph for seven from the glyph for
one
1 (one, unit, unity) is a number representing a single or the only entity. 1 is also a numerical digit and represents a single unit of counting or measurement. For example, a line segment of ''unit length'' is a line segment of length 1. I ...
in writing that uses a long upstroke in the glyph for 1. In some Greek dialects of the early 12th century the longer line diagonal was drawn in a rather semicircular transverse line.

On the
seven-segment display
A seven-segment display is a form of electronic display device for displaying decimal numerals that is an alternative to the more complex dot matrix displays.
Seven-segment displays are widely used in digital clocks, electronic meters, basic ...
s of pocket calculators and digital watches, 7 is the digit with the most common graphic variation (1, 6 and 9 also have variant glyphs). Most calculators use three line segments, but on
Sharp,
Casio, and a few other brands of calculators, 7 is written with four line segments because in Japan, Korea and Taiwan 7 is written with a "hook" on the left, as ① in the following illustration.

While the shape of the character for the digit 7 has an
ascender in most modern
typeface
A typeface (or font family) is the design of lettering that can include variations in size, weight (e.g. bold), slope (e.g. italic), width (e.g. condensed), and so on. Each of these variations of the typeface is a font.
There are thousands ...
s, in typefaces with
text figures
Text figures (also known as non-lining, lowercase, old style, ranging, hanging, medieval, billing, or antique figures or numerals) are numerals designed with varying heights in a fashion that resembles a typical line of running text, hence the ...
the character usually has a
descender
In typography and handwriting, a descender is the portion of a letter that extends below the baseline of a font.
For example, in the letter ''y'', the descender is the "tail", or that portion of the diagonal line which lies below the ''v'' ...
, as, for example, in

.

Most people in Continental Europe, and some in Britain and Ireland as well as Latin America, write 7 with a line in the middle ("
7"), sometimes with the top line crooked. The line through the middle is useful to clearly differentiate the digit from the digit one, as the two can appear similar when written in certain styles of handwriting. This form is used in official handwriting rules for primary school in Russia, Ukraine, Bulgaria, Poland, other Slavic countries, France, Italy, Belgium, Finland, Romania, Germany, Greece, and Hungary.
Mathematics
Seven, the fourth
prime number
A prime number (or a prime) is a natural number greater than 1 that is not a product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime because the only way ...
, is not only a
Mersenne prime
In mathematics, a Mersenne prime is a prime number that is one less than a power of two. That is, it is a prime number of the form for some integer . They are named after Marin Mersenne, a French Minim friar, who studied them in the early 17 ...
(since ) but also a
double Mersenne prime
In mathematics, a double Mersenne number is a Mersenne number of the form
:M_ = 2^-1
where ''p'' is prime.
Examples
The first four terms of the sequence of double Mersenne numbers areChris Caldwell''Mersenne Primes: History, Theorems and L ...
since the exponent, 3, is itself a Mersenne prime. It is also a
Newman–Shanks–Williams prime, a
Woodall prime, a
factorial prime, a
lucky prime, a
happy number
In number theory, a happy number is a number which eventually reaches 1 when replaced by the sum of the square of each digit. For instance, 13 is a happy number because 1^2+3^2=10, and 1^2+0^2=1. On the other hand, 4 is not a happy number because ...
(happy prime), a
safe prime (the only ), a
Leyland prime of the second kind and the fourth
Heegner number In number theory, a Heegner number (as termed by Conway and Guy) is a square-free positive integer ''d'' such that the imaginary quadratic field \Q\left sqrt\right/math> has class number 1. Equivalently, its ring of integers has unique factoriz ...
.
*Seven is the lowest natural number that cannot be represented as the sum of the squares of three integers. (See
Lagrange's four-square theorem#Historical development.)
*Seven is the
aliquot sum of one number, the
cubic number and is the base of the 7-aliquot tree.
*7 is the only number ''D'' for which the equation has more than two solutions for ''n'' and ''x'' natural. In particular, the equation is known as the
Ramanujan–Nagell equation.
*7 is the only dimension, besides the familiar 3, in which a vector
cross product
In mathematics, the cross product or vector product (occasionally directed area product, to emphasize its geometric significance) is a binary operation on two vectors in a three-dimensional oriented Euclidean vector space (named here E), and i ...
can
be defined.
*7 is the lowest
dimension
In physics and mathematics, the dimension of a mathematical space (or object) is informally defined as the minimum number of coordinates needed to specify any point within it. Thus, a line has a dimension of one (1D) because only one coor ...
of a known
exotic sphere, although there may exist as yet unknown exotic smooth structures on the 4-dimensional sphere.
* divided by 7 is exactly . Therefore, when a
vulgar fraction with 7 in the
denominator is converted to a
decimal expansion, the result has the same six-
digit
Digit may refer to:
Mathematics and science
* Numerical digit, as used in mathematics or computer science
** Hindu-Arabic numerals, the most common modern representation of numerical digits
* Digit (anatomy), the most distal part of a limb, such ...
repeating sequence after the decimal point, but the sequence can start with any of those six digits. For example, and
:In fact, if one sorts the digits in the number 142,857 in ascending order, 124578, it is possible to know from which of the digits the decimal part of the number is going to begin with. The remainder of dividing any number by 7 will give the position in the sequence 124578 that the decimal part of the resulting number will start. For example, 628 ÷ 7 = ; here 5 is the remainder, and would correspond to number 7 in the ranking of the ascending sequence. So in this case, . Another example, , hence the remainder is 2, and this corresponds to number 2 in the sequence. In this case, .
*A seven-sided shape is a
heptagon. The regular ''n''-gons for ''n'' ≤ 6 can be constructed by