In
mathematics and
combinatorics
Combinatorics is an area of mathematics primarily concerned with counting, both as a means and an end in obtaining results, and certain properties of finite structures. It is closely related to many other areas of mathematics and has many a ...
, a centered hexagonal number, or hex number,
is a
centered figurate number
The term figurate number is used by different writers for members of different sets of numbers, generalizing from triangular numbers to different shapes (polygonal numbers) and different dimensions (polyhedral numbers). The term can mean
* polygo ...
that represents a
hexagon
In geometry, a hexagon (from Greek , , meaning "six", and , , meaning "corner, angle") is a six-sided polygon. The total of the internal angles of any simple (non-self-intersecting) hexagon is 720°.
Regular hexagon
A ''regular hexagon'' h ...
with a dot in the center and all other dots surrounding the center dot in a
hexagonal lattice. The following figures illustrate this arrangement for the first four centered hexagonal numbers:
:
Centered hexagonal numbers should not be confused with
cornered hexagonal numbers, which are figurate numbers in which the associated hexagons share a vertex.
The sequence of hexagonal numbers starts out as follows :
:
1,
7,
19,
37,
61,
91,
127 127 may refer to:
*127 (number), a natural number
*AD 127, a year in the 2nd century AD
*127 BC, a year in the 2nd century BC
*127 (band), an Iranian band
See also
*List of highways numbered 127
Route 127 or Highway 127 can refer to multiple roads ...
,
169
Year 169 ( CLXIX) was a common year starting on Saturday (link will display the full calendar) of the Julian calendar. At the time, it was known as the Year of the Consulship of Senecio and Apollinaris (or, less frequently, year 922 ''Ab urbe co ...
, 217, 271, 331, 397, 469, 547, 631, 721, 817, 919.
Formula
The th centered hexagonal number is given by the formula
[
:
Expressing the formula as
:
shows that the centered hexagonal number for is 1 more than 6 times the th ]triangular number
A triangular number or triangle number counts objects arranged in an equilateral triangle. Triangular numbers are a type of figurate number, other examples being square numbers and cube numbers. The th triangular number is the number of dots i ...
.
In the opposite direction, the ''index'' corresponding to the centered hexagonal number can be calculated using the formula
:
This can be used as a test for whether a number is centered hexagonal: it will be if and only if the above expression is an integer.
Recurrence and generating function
The centered hexagonal numbers satisfy the recurrence relation
In mathematics, a recurrence relation is an equation according to which the nth term of a sequence of numbers is equal to some combination of the previous terms. Often, only k previous terms of the sequence appear in the equation, for a paramete ...
[
:
From this we can calculate the ]generating function
In mathematics, a generating function is a way of encoding an infinite sequence of numbers () by treating them as the coefficients of a formal power series. This series is called the generating function of the sequence. Unlike an ordinary ser ...
. The generating function satisfies
:
The latter term is the Taylor series
In mathematics, the Taylor series or Taylor expansion of a function is an infinite sum of terms that are expressed in terms of the function's derivatives at a single point. For most common functions, the function and the sum of its Taylor se ...
of , so we get
:
and end up at
:
Properties
In base 10
The decimal numeral system (also called the base-ten positional numeral system and denary or decanary) is the standard system for denoting integer and non-integer numbers. It is the extension to non-integer numbers of the Hindu–Arabic numeral ...
one can notice that the hexagonal numbers' rightmost (least significant) digits follow the pattern 1–7–9–7–1 (repeating with period 5).
This follows from the last digit of the triangle numbers which repeat 0-1-3-1-0 when taken modulo 5.
In base 6 the rightmost digit is always 1: 16, 116, 316, 1016, 1416, 2316, 3316, 4416...
This follows from the fact that every centered hexagonal number modulo 6 (=106) equals 1.
The sum of the first centered hexagonal numbers is . That is, centered hexagonal pyramidal number A pyramidal number is a figurate number that represents a pyramid with a polygonal base and a given number of triangular sides. A pyramidal number is the number of points in a pyramid where each layer of the pyramid is an -sided polygon of point ...
s and cubes are the same numbers, but they represent different shapes. Viewed from the opposite perspective, centered hexagonal numbers are differences of two consecutive cubes, so that the centered hexagonal numbers are the gnomon
A gnomon (; ) is the part of a sundial that casts a shadow. The term is used for a variety of purposes in mathematics and other fields.
History
A painted stick dating from 2300 BC that was excavated at the astronomical site of Taosi is the o ...
of the cubes. (This can be seen geometrically from the diagram.) In particular, prime
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 ...
centered hexagonal numbers are cuban primes.
The difference between and the th centered hexagonal number is a number of the form , while the difference between and the th centered hexagonal number is a pronic number A pronic number is a number that is the product of two consecutive integers, that is, a number of the form n(n+1).. The study of these numbers dates back to Aristotle. They are also called oblong numbers, heteromecic numbers,. or rectangular number ...
.
Applications
Centered hexagonal numbers have practical applications in packing problems. They arise when packing round items into larger round containers, such as Vienna sausage
A Vienna sausage (german: Wiener Würstchen, Wiener; Viennese/Austrian German: ''Frankfurter Würstel'' or ''Würstl''; Swiss German: ''Wienerli''; Swabian: ''Wienerle'' or ''Saitenwurst'') is a thin parboiled sausage traditionally made of po ...
s into round cans, or combining individual wire
Overhead power cabling. The conductor consists of seven strands of steel (centre, high tensile strength), surrounded by four outer layers of aluminium (high conductivity). Sample diameter 40 mm
A wire is a flexible strand of metal.
Wire is co ...
strands into a cable.
References
See also
*Hexagonal number
A hexagonal number is a figurate number. The ''n''th hexagonal number ''h'n'' is the number of ''distinct'' dots in a pattern of dots consisting of the ''outlines'' of regular hexagons with sides up to n dots, when the hexagons are overlaid so ...
*Magic hexagon
A magic hexagon of order ''n'' is an arrangement of numbers in a centered hexagonal pattern with ''n'' cells on each edge, in such a way that the numbers in each row, in all three directions, sum to the same magic constant ''M''. A normal magic he ...
* Star number
{{DEFAULTSORT:Centered Hexagonal Number
Figurate numbers
Integer sequences