World Library  
Flag as Inappropriate
Email this Article

Heptagonal number

Article Id: WHEBN0000509019
Reproduction Date:

Title: Heptagonal number  
Author: World Heritage Encyclopedia
Language: English
Subject: Triangular number, Heptagonal pyramidal number, Polygonal number, Series (mathematics), Power of two
Collection: Figurate Numbers
Publisher: World Heritage Encyclopedia

Heptagonal number

A heptagonal number is a figurate number that represents a heptagon. The n-th heptagonal number is given by the formula

\frac{5n^2 - 3n}{2}.
The first five heptagonal numbers.

The first few heptagonal numbers are:

1, 7, 18, 34, 55, 81, 112, 148, 189, 235, 286, 342, 403, 469, 540, 616, 697, 783, 874, 970, 1071, 1177, 1288, 1404, 1525, 1651, 1782, … (sequence A000566 in OEIS)


  • Parity 1
  • Generalized heptagonal numbers 2
  • Sum of reciprocals 3
  • Heptagonal roots 4
    • Derivation of heptagonal root formula 4.1
  • References 5


The parity of heptagonal numbers follows the pattern odd-odd-even-even. Like square numbers, the digital root in base 10 of a heptagonal number can only be 1, 4, 7 or 9. Five times a heptagonal number, plus 1 equals a triangular number.

Generalized heptagonal numbers

A generalized heptagonal number is obtained by the formula

T_n + T_{\lfloor \frac{n}{2} \rfloor},

where Tn is the nth triangular number. The first few generalized heptagonal numbers are:

1, 4, 7, 13, 18, 27, 34, 46, 55, 70, 81, 99, 112, … (sequence A085787 in OEIS)

Every other generalized heptagonal number is a regular heptagonal number. Besides 1 and 70, no generalized heptagonal numbers are also Pell numbers.[1]

Sum of reciprocals

A formula for the sum of the reciprocals of the heptagonal numbers is given by:[2]

\sum_{n=1}^\infty \frac{2}{n(5n-3)} = \frac{1}{15}{\pi}{\sqrt{25-10\sqrt{5}}}+\frac{2}{3}\ln(5)+\frac{3}\ln\left(\frac{1}{2}\sqrt{10-2\sqrt{5}}\right)+\frac{3}\ln\left(\frac{1}{2}\sqrt{10+2\sqrt{5}}\right)

Heptagonal roots

In analogy to the square root of x, one can calculate the heptagonal root of x, meaning the number of terms in the sequence up to and including x.

The heptagonal root of x is given by the formula

n = \frac{\sqrt{40x + 9} + 3}{10}.

Derivation of heptagonal root formula

The heptagonal roots n of x are derived by:

x = \frac{5n^2 - 3n}{2}
2x = 5n^2 - 3n
5n^2 - 3n - 2x = 0
n = \frac{-(-3) \pm \sqrt{(-3)^2 - (4 \times 5 \times -2x)}}{2 \times 5} (use quadratic formula to solve for n)
n = \frac{3 \pm \sqrt{9 - (-40x)}}{10}
n = \frac{3 \pm \sqrt{9 + 40x}}{10}

Rearrange this to:

n = \frac{\pm \sqrt{40x + 9} + 3}{10},

and taking the only positive value gives the formula for n associated with a given x.


  1. ^ B. Srinivasa Rao, "Heptagonal Numbers in the Pell Sequence and Diophantine equations 2x^2 = y^2(5y - 3)^2 \pm 2" Fib. Quart. 43 3: 194
  2. ^ Beyond the Basel Problem: Sums of Reciprocals of Figurate Numbers
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.