Hexagonal Number

DOWNLOAD Mathematica Notebook HexagonalNumber

A polygonal number and 6-polygonal number of the form n(2n-1). The first few are 1, 6, 15, 28, 45, ... (OEIS A000384). The generating function for the hexagonal numbers is given by

 (x(3x+1))/((1-x)^3)=x+6x^2+15x^3+28x^4+....
(1)

Every hexagonal number is a triangular number since

 r(2r-1)=1/2(2r-1)[(2r-1)+1].
(2)

In 1830, Legendre (1979) proved that every number larger than 1791 is a sum of four hexagonal numbers, and Duke and Schulze-Pillot (1990) improved this to three hexagonal numbers for every sufficiently large integer.

There are exactly 13 positive integers that cannot be represented using four hexagonal numbers, namely 5, 10, 11, 20, 25, 26, 38, 39, 54, 65, 70, 114, and 130 (OEIS A007527; Guy 1994a).

Similarly, there are only two positive integers that cannot be represented using five hexagonal numbers, namely:

11=1+1+1+1+1+6
(3)
26=1+1+6+6+6+6.
(4)

Every positive integer can be represented using six hexagonal numbers.

Wolfram Web Resources

Mathematica »

The #1 tool for creating Demonstrations and anything technical.

Wolfram|Alpha »

Explore anything with the first computational knowledge engine.

Wolfram Demonstrations Project »

Explore thousands of free applications across science, mathematics, engineering, technology, business, art, finance, social sciences, and more.

Computerbasedmath.org »

Join the initiative for modernizing math education.

Online Integral Calculator »

Solve integrals with Wolfram|Alpha.

Step-by-step Solutions »

Walk through homework problems step-by-step from beginning to end. Hints help you try the next step on your own.

Wolfram Problem Generator »

Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet.

Wolfram Education Portal »

Collection of teaching and learning tools built by Wolfram education experts: dynamic textbook, lesson plans, widgets, interactive Demonstrations, and more.

Wolfram Language »

Knowledge-based programming for everyone.