Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Square pyramidal number
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{good article}} {{Short description|Number of stacked spheres in a pyramid}} [[File:Square pyramidal number.svg|thumb|upright=1.35|Geometric representation of the square pyramidal number {{nowrap|1=1 + 4 + 9 + 16 = 30.}}]] In mathematics, a '''pyramid number''', or '''square pyramidal number''', is a [[natural number]] that counts the stacked spheres in a [[pyramid (geometry)|pyramid]] with a square base. The study of these numbers goes back to [[Archimedes]] and [[Fibonacci]]. They are part of a broader topic of [[figurate number]]s representing the numbers of points forming regular patterns within different shapes. As well as counting spheres in a pyramid, these numbers can be described algebraically as a sum of the first <math>n</math> positive [[square number]]s, or as the values of a [[cubic polynomial]]. They can be used to solve several other counting problems, including counting squares in a square grid and counting [[acute triangle]]s formed from the vertices of an odd [[regular polygon]]. They equal the sums of consecutive [[tetrahedral number]]s, and are one-fourth of a larger tetrahedral number. The sum of two consecutive square pyramidal numbers is an [[octahedral number]]. ==History== The pyramidal numbers were one of the few types of three-dimensional figurate numbers studied in [[Greek mathematics]], in works by [[Nicomachus]], [[Theon of Smyrna]], and [[Iamblichus]].{{r|federico}} Formulas for summing consecutive squares to give a cubic polynomial, whose values are the square pyramidal numbers, are given by [[Archimedes]], who used this sum as a [[Lemma (mathematics)|lemma]] as part of a study of the volume of a [[cone]],{{r|archimedes}} and by [[Fibonacci]], as part of a more general solution to the problem of finding formulas for sums of progressions of squares.{{r|fibonacci}} The square pyramidal numbers were also one of the families of figurate numbers studied by [[Japanese mathematics|Japanese mathematicians]] of the wasan period, who named them "kirei saijō suida" (with modern [[kanji]], 奇零 再乗 蓑深).{{r|yanagihara}} The same problem, formulated as one of counting the [[cannonball]]s in a square pyramid, was posed by [[Walter Raleigh]] to mathematician [[Thomas Harriot]] in the late 1500s, while both were on a sea voyage. The [[cannonball problem]], asking whether there are any square pyramidal numbers that are also square numbers other than 1 and 4900, is said to have developed out of this exchange. [[Édouard Lucas]] found the 4900-ball pyramid with a square number of balls, and in making the cannonball problem more widely known, suggested that it was the only nontrivial solution.{{r|parker}} After incomplete proofs by Lucas and Claude-Séraphin Moret-Blanc, the first complete proof that no other such numbers exist was given by [[G. N. Watson]] in 1918.{{r|anglin}} ==Formula== [[File:SumSqWM.webm|thumb|Six copies of a square pyramid with {{mvar|n}} steps can fit in a cuboid of size {{math|''n''(''n'' + 1)(2''n'' + 1)}}]] If spheres are packed into square pyramids whose number of layers is 1, 2, 3, etc., then the square pyramidal numbers giving the numbers of spheres in each pyramid are:{{r|oeis|beiler}} {{block indent|left=1.6|[[1 (number)|1]], [[5 (number)|5]], [[14 (number)|14]], [[30 (number)|30]], [[55 (number)|55]], [[91 (number)|91]], [[140 (number)|140]], [[204 (number)|204]], [[285 (number)|285]], [[300 (number)#385|385]], 506, 650, 819, ... .}} These numbers can be calculated algebraically, as follows. If a pyramid of spheres is decomposed into its square layers with a square number of spheres in each, then the total number <math>P_n</math> of spheres can be counted as the sum of the number of spheres in each square, <math display=block>P_n = \sum_{k=1}^nk^2 = 1 + 4 + 9 + \cdots + n^2,</math> and this [[summation]] can be solved to give a [[cubic polynomial]], which can be written in several equivalent ways: <math display=block>P_n= \frac{n(n + 1)(2n + 1)}{6} = \frac{2n^3 + 3n^2 + n}{6} = \frac{n^3}{3} + \frac{n^2}{2} + \frac{n}{6}.</math> This equation for a sum of squares is a special case of [[Faulhaber's formula]] for sums of powers, and may be proved by [[mathematical induction]].{{r|hmu}} More generally, [[figurate number]]s count the numbers of geometric points arranged in regular patterns within certain shapes. The centers of the spheres in a pyramid of spheres form one of these patterns, but for many other types of figurate numbers it does not make sense to think of the points as being centers of spheres.{{r|beiler}} In modern mathematics, related problems of counting points in [[Integral polytope|integer polyhedra]] are formalized by the [[Ehrhart polynomial]]s. These differ from figurate numbers in that, for Ehrhart polynomials, the points are always arranged in an [[integer lattice]] rather than having an arrangement that is more carefully fitted to the shape in question, and the shape they fit into is a polyhedron with lattice points as its vertices. Specifically, the Ehrhart polynomial {{math|''L''(''P'',''t'')}} of an integer polyhedron {{mvar|P}} is a [[polynomial]] that counts the integer points in a copy of {{mvar|P}} that is expanded by multiplying all its coordinates by the number {{mvar|t}}. The usual symmetric form of a square pyramid, with a [[unit square]] as its base, is not an integer polyhedron, because the topmost point of the pyramid, its apex, is not an integer point. Instead, the Ehrhart polynomial can be applied to an asymmetric square pyramid {{mvar|P}} with a unit square base and an apex that can be any integer point one unit above the base plane. For this choice of {{mvar|P}}, the Ehrhart polynomial of a pyramid is {{math|1={{sfrac|(''t'' + 1)(''t'' + 2)(2''t'' + 3)|6}} = ''P''<sub>''t'' + 1</sub>}}.{{r|bddps}} ==Geometric enumeration== <!-- [[File:Squares in a square grid.svg|thumb|upright=0.75|A 5 by 5 square grid, with three of its 55 squares highlighted.]] --> [[File:grid_square_count_puzzle.svg|thumb|upright=0.5|All 14 squares in a 3×3-square (4×4-vertex) grid]] As well as counting spheres in a pyramid, these numbers can be used to solve several other counting problems. For example, a common [[mathematical puzzle]] involves counting the squares in a large {{mvar|n}} by {{mvar|n}} square grid.{{r|dpas}} This count can be derived as follows: *The number of {{nowrap|1 × 1}} squares in the grid is {{math|''n''<sup>2</sup>}}. *The number of {{nowrap|2 × 2}} squares in the grid is {{math|(''n'' − 1)<sup>2</sup>}}. These can be counted by counting all of the possible upper-left corners of {{nowrap|2 × 2}} squares. *The number of {{math|''k'' × ''k''}} squares {{math|(1 ≤ ''k'' ≤ ''n'')}} in the grid is {{math|(''n'' − ''k'' + 1)<sup>2</sup>}}. These can be counted by counting all of the possible upper-left corners of {{math|''k'' × ''k''}} squares. It follows that the number of squares in an {{math|''n'' × ''n''}} square grid is:{{r|robitaille}} <math display=block>n^2 + (n-1)^2 + (n-2)^2 + (n-3)^2 + \ldots = \frac{n(n+1)(2n+1)}{6}.</math> That is, the solution to the puzzle is given by the {{mvar|n}}-th square pyramidal number.{{r|oeis}} The number of rectangles in a square grid is given by the [[squared triangular number]]s.{{r|stein}} The square pyramidal number <math>P_n</math> also counts the [[acute triangle]]s formed from the vertices of a <math>(2n+1)</math>-sided [[regular polygon]]. For instance, an equilateral triangle contains only one acute triangle (itself), a regular [[pentagon]] has five acute [[Golden triangle (mathematics)|golden triangle]]s within it, a regular [[heptagon]] has 14 acute triangles of two shapes, etc.{{r|oeis}} More abstractly, when permutations of the rows or columns of a [[Matrix (mathematics)|matrix]] are considered as equivalent, the number of <math>2\times 2</math> matrices with non-negative integer coefficients summing to <math>n</math>, for odd values of <math>n</math>, is a square pyramidal number.{{r|bvt}} ==Relations to other figurate numbers== [[File:Rye Castle, Rye, East Sussex, England-6April2011 (1) (cropped).jpg|thumb|A square pyramid of [[Round shot|cannonballs]] at [[Rye Castle]] in England]] [[File:Cannonball_problem.svg|thumb|4900 balls arranged as a square pyramid of side 24, and a square of side 70]] The [[cannonball problem]] asks for the sizes of pyramids of cannonballs that can also be spread out to form a square array, or equivalently, which numbers are both square and square pyramidal. Besides 1, there is only one other number that has this property: 4900, which is both the 70th square number and the 24th square pyramidal number.{{r|anglin}} The square pyramidal numbers can be expressed as sums of [[binomial coefficient]]s:{{r|conguy|grassl}} <math display=block>P_n = \binom{n + 2}{3} + \binom{n + 1}{3} = \binom{n + 1}{2} + 2\binom{n + 1}{3}.</math> The binomial coefficients occurring in this representation are [[tetrahedral number]]s, and this formula expresses a square pyramidal number as the sum of two tetrahedral numbers in the same way as square numbers split into two consecutive [[triangular number]]s.{{r|beiler|conguy}} If a tetrahedron is reflected across one of its faces, the two copies form a [[triangular bipyramid]]. The square pyramidal numbers are also the figurate numbers of the triangular bipyramids, and this formula can be interpreted as an equality between the square pyramidal numbers and the triangular bipyramidal numbers.{{r|oeis}} Analogously, reflecting a square pyramid across its base produces an octahedron, from which it follows that each [[octahedral number]] is the sum of two consecutive square pyramidal numbers.{{r|cagbud}} Square pyramidal numbers are also related to tetrahedral numbers in a different way: the points from four copies of the same square pyramid can be rearranged to form a single tetrahedron with twice as many points along each edge. That is,{{r|alsnel}} <math display=block>4P_n=Te_{2n}=\binom{2n+2}{3}.</math> To see this, arrange each square pyramid so that each layer is directly above the previous layer, e.g. the heights are <pre> 4321 3321 2221 1111 </pre> Four of these can then be joined by the height {{mvar|4}} pillar to make an even square pyramid, with layers <math>4, 16, 36, \dots</math>. Each layer is the sum of consecutive triangular numbers, i.e. <math>(1+3), (6+10), (15+21), \dots</math>, which, when totalled, sum to the tetrahedral number. ==Other properties== The [[alternating series]] of [[unit fraction]]s with the square pyramidal numbers as denominators is closely related to the [[Leibniz formula for π|Leibniz formula for {{pi}}]], although it converges faster. It is:{{r|fearnehough}} <math display=block> \begin{align} \sum_{i=1}^{\infty}& (-1)^{i-1}\frac{1}{P_i}\\ &=1-\frac{1}{5}+\frac{1}{14}-\frac{1}{30}+\frac{1}{55}-\frac{1}{91}+\frac{1}{140}-\frac{1}{204}+\cdots\\ &=6(\pi-3)\\ &\approx 0.849556.\\ \end{align} </math> In [[approximation theory]], the sequences of odd numbers, sums of odd numbers (square numbers), sums of square numbers (square pyramidal numbers), etc., form the coefficients in a method for converting [[Chebyshev approximation]]s into [[polynomial]]s.{{r|menza}} ==References== {{reflist|refs= <ref name=alsnel>{{citation | last1 = Alsina | first1 = Claudi | last2 = Nelsen | first2 = Roger B. | contribution = Challenge 2.13 | isbn = 978-0-88385-358-0 | location = Washington, DC | mr = 3379535 | pages = 43, 234 | publisher = Mathematical Association of America | series = The Dolciani Mathematical Expositions | title = A Mathematical Space Odyssey: Solid Geometry in the 21st Century | volume = 50 | year = 2015}}</ref> <ref name=anglin>{{citation|last=Anglin|first=W. S. |title=The square pyramid puzzle|jstor=2323911 |journal=[[The American Mathematical Monthly]] |volume=97 |issue=2 |pages=120–124 |year=1990 |doi=10.1080/00029890.1990.11995558}}</ref> <ref name=archimedes>[[Archimedes]], ''[[On Conoids and Spheroids]]'', Lemma to Prop. 2, and ''[[On Spirals]]'', Prop. 10. See {{citation|contribution-url=https://archive.org/details/worksofarchimede00arch/page/106/mode/2up|contribution=Lemma to Proposition 2|title=The Works of Archimedes|year=1897|pages=107–109|url=https://archive.org/details/worksofarchimede00arch|publisher=Cambridge University Press|translator=[[Thomas Heath (classicist)|T. L. Heath]]}}</ref> <ref name=bddps>{{citation | last1 = Beck | first1 = M. | last2 = De Loera | first2 = J. A. | author2-link = Jesús A. De Loera | last3 = Develin | first3 = M. | author3-link = Mike Develin | last4 = Pfeifle | first4 = J. | last5 = Stanley | first5 = R. P. | author5-link = Richard P. Stanley | arxiv = math/0402148 | contribution = Coefficients and roots of Ehrhart polynomials | location = Providence, Rhode Island | mr = 2134759 | pages = 15–36 | series = Contemporary Mathematics | title = Integer Points in Polyhedra—Geometry, Number Theory, Algebra, Optimization | volume = 374 | year = 2005}}</ref> <ref name=beiler>{{citation | author = Beiler, A. H. | title = Recreations in the Theory of Numbers | url = https://archive.org/details/recreationsinthe00beil | url-access = registration | publisher = Dover | year = 1964 | pages = [https://archive.org/details/recreationsinthe00beil/page/194 194–195] | isbn = ((0-486-21096-0))<!-- despite date mismatch, isbn goes to this edition -->}}</ref> <ref name=bvt>{{citation | last1 = Babcock | first1 = Ben | last2 = Van Tuyl | first2 = Adam | arxiv = 1109.5847 | journal = The Australasian Journal of Combinatorics | mr = 3097709 | pages = 77–84 | title = Revisiting the spreading and covering numbers | volume = 56 | year = 2013}}</ref> <ref name=cagbud>{{citation | last1 = Caglayan | first1 = Günhan | last2 = Buddoo | first2 = Horace | date = September 2014 | doi = 10.5951/mathteacher.108.2.0092 | issue = 2 | journal = The Mathematics Teacher | jstor = 10.5951/mathteacher.108.2.0092 | pages = 92–97 | title = Tetrahedral numbers | volume = 108}}</ref> <ref name=conguy>{{citation | last1 = Conway | first1 = John H. | author1-link = John Horton Conway | last2 = Guy | first2 = Richard | author2-link = Richard K. Guy | contribution = Square pyramid numbers | isbn = 978-0-387-97993-9 | pages = 47–49 | publisher = Springer | title = The Book of Numbers | year = 1998}}</ref> <ref name=dpas>{{citation | last1 = Duffin | first1 = Janet | last2 = Patchett | first2 = Mary | last3 = Adamson | first3 = Ann | last4 = Simmons | first4 = Neil | date = November 1984 | issue = 5 | journal = Mathematics in School | jstor = 30216270 | pages = 2–4 | title = Old squares new faces | volume = 13}}</ref> <ref name=fearnehough>{{citation | last = Fearnehough | first = Alan | date = November 2006 | department = Notes | issue = 519 | journal = [[The Mathematical Gazette]] | jstor = 40378200 | pages = 460–461 | title = 90.67 A series for the 'bit' | volume = 90| doi = 10.1017/S0025557200180337 | s2cid = 113711266 | doi-access = free }}</ref> <ref name=federico>{{citation | last = Federico | first = Pasquale Joseph | author-link = Pasquale Joseph Federico | contribution = Pyramidal numbers | doi = 10.1007/978-1-4612-5759-2 | pages = 89–91 | publisher = Springer | series = Sources in the History of Mathematics and Physical Sciences | title = Descartes on Polyhedra: A Study of the "De solidorum elementis" | title-link = Descartes on Polyhedra | volume = 4 | year = 1982| isbn = 978-1-4612-5761-5 }}</ref> <ref name=fibonacci>[[Fibonacci]] (1202), ''[[Liber Abaci]]'', ch. II.12. See {{citation|title=[[Liber Abaci|Fibonacci's Liber Abaci]]|translator=Laurence E. Sigler|publisher=Springer-Verlag|year=2002|isbn=0-387-95419-8|pages=260–261}}</ref> <ref name=grassl>{{citation | last = Grassl | first = Richard | date = July 1995 | doi = 10.2307/3618315 | issue = 485 | journal = [[The Mathematical Gazette]] | jstor = 3618315 | pages = 361–364 | title = 79.33 The squares do fit! | volume = 79| s2cid = 187946568 }}</ref> <ref name=hmu>{{citation |last1=Hopcroft |first1=John E. |author-link1=John Hopcroft |last2=Motwani |first2=Rajeev |author-link2=Rajeev Motwani |last3=Ullman |first3=Jeffrey D. |author-link3=Jeffrey Ullman |title=[[Introduction to Automata Theory, Languages, and Computation]] |edition=3 |year=2007 |publisher=Pearson/Addison Wesley |isbn=9780321455369 |page= [{{Google books|plainurl=y|id=6ytHAQAAIAAJ|page=20}} 20]}}</ref> <ref name=menza>{{citation | last1 = Men'šikov | first1 = G. G. | last2 = Zaezdnyĭ | first2 = A. M. | journal = Žurnal Vyčislitel' noĭ Matematiki i Matematičeskoĭ Fiziki | mr = 196353 | pages = 360–363 | title = Recurrence formulae simplifying the construction of approximating power polynomials | volume = 6 | year = 1966}}; translated into English as {{citation | last1 = Zaezdnyi | first1 = A. M. | last2 = Men'shikov | first2 = G. G. | date = January 1966 | doi = 10.1016/0041-5553(66)90072-3 | issue = 2 | journal = USSR Computational Mathematics and Mathematical Physics | pages = 234–238 | title = Recurrence formulae simplifying the construction of approximating power polynomials | volume = 6}}</ref> <ref name=oeis>{{cite OEIS|A000330|Square pyramidal numbers|mode=cs2}}</ref> <ref name=parker>{{citation | last = Parker | first = Matt | author-link = Matt Parker | contribution = Ship shape | isbn = 978-0-374-53563-6 | mr = 3753642 | pages = 56–59 | publisher = Farrar, Straus and Giroux | location = New York | title = Things to Make and Do in the Fourth Dimension: A Mathematician's Journey Through Narcissistic Numbers, Optimal Dating Algorithms, at Least Two Kinds of Infinity, and More | year = 2015}}</ref> <ref name=robitaille>{{citation | last = Robitaille | first = David F. | date = May 1974 | issue = 5 | journal = The Arithmetic Teacher | jstor = 41190919 | pages = 396–400 | title = Mathematics and chess | volume = 21| doi = 10.5951/AT.21.5.0396 }}</ref> <ref name=stein>{{citation | doi = 10.2307/2688231 | last = Stein | first = Robert G. | title = A combinatorial proof that <math>\textstyle \sum k^3 = (\sum k)^2</math> | journal = [[Mathematics Magazine]] | volume = 44 | issue = 3 | pages = 161–162 | year = 1971 | jstor = 2688231}}</ref> <ref name=yanagihara>{{citation | last = Yanagihara | first = Kitizi | date = November 1918 | issue = 3–4 | journal = [[Tohoku Mathematical Journal]] | pages = 305–324 | title = On the Dajutu or the arithmetic series of higher orders as studied by wasanists | url = https://www.jstage.jst.go.jp/article/tmj1911/14/0/14_0_305/_pdf | volume = 14}}</ref> }} ==External links== *{{MathWorld | urlname = SquarePyramidalNumber | title = Square Pyramidal Number |mode=cs2}} {{Figurate numbers}} {{Classes of natural numbers}} [[Category:Figurate numbers]] [[Category:Pyramids]] [[Category:Articles containing video clips]]
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Pages transcluded onto the current version of this page
(
help
)
:
Template:Block indent
(
edit
)
Template:Classes of natural numbers
(
edit
)
Template:Figurate numbers
(
edit
)
Template:Good article
(
edit
)
Template:Math
(
edit
)
Template:MathWorld
(
edit
)
Template:Mvar
(
edit
)
Template:Nowrap
(
edit
)
Template:Pi
(
edit
)
Template:R
(
edit
)
Template:Reflist
(
edit
)
Template:SfnRef
(
edit
)
Template:Short description
(
edit
)