Hexagonal number

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Glenn L (talk | contribs) at 00:24, 25 September 2010 (Digital root pattern). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

A hexagonal number is a figurate number, The nth hexagonal number will be the number of points in a hexagon with n regularly spaced points on a side.

The first four hexagonal numbers.
The first four hexagonal numbers.

The formula for the nth hexagonal number

The first few hexagonal numbers (sequence A000384 in the OEIS) are:

1, 6, 15, 28, 45, 66, 91, 120, 153, 190, 231, 276, 325, 378, 435, 496, 561, 630, 703, 780, 861, 946.

Every hexagonal number is a triangular number, but only every other triangular number (the 1st, 3rd, 5th, 7th, etc.) is a hexagonal number. Like a triangular number, the digital root in base 10 of a hexagonal number can only be 1, 3, 6, or 9, repeating "1 6 6 1 0 3 1 3 0" in a nine-term cycle.

Every even perfect number is hexagonal, given by the formula

where Mp is a Mersenne prime, and no odd perfect numbers are known, hence all known perfect numbers are hexagonal.

The largest number that cannot be written as a sum of at most four hexagonal numbers is 130. Adrien-Marie Legendre proved in 1830 that any integer greater than 1791 can be expressed in this way.

Hexagonal numbers can be rearranged into rectangular numbers n long and 2n−1 tall (or vice versa).

Hexagonal numbers should not be confused with centered hexagonal numbers, which model the standard packaging of Vienna sausages. To avoid ambiguity, hexagonal numbers are sometimes called "cornered hexagonal numbers".

Test for hexagonal numbers

One can efficiently test whether a positive integer x is an hexagonal number by computing

If n is an integer, then x is the nth hexagonal number. If n is not an integer, then x is not hexagonal.

Other Properties

The nth number of the hexagonal sequence can also be expressed by using the summation (Sigma notation).

External links