<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.formulasearchengine.com/w/index.php?action=history&amp;feed=atom&amp;title=Point_in_polygon</id>
	<title>Point in polygon - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://en.formulasearchengine.com/w/index.php?action=history&amp;feed=atom&amp;title=Point_in_polygon"/>
	<link rel="alternate" type="text/html" href="https://en.formulasearchengine.com/w/index.php?title=Point_in_polygon&amp;action=history"/>
	<updated>2026-07-05T04:27:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.47.0-wmf.7</generator>
	<entry>
		<id>https://en.formulasearchengine.com/w/index.php?title=Point_in_polygon&amp;diff=290155&amp;oldid=prev</id>
		<title>en&gt;David Eppstein: /* Winding number algorithm */ Supply requested citation</title>
		<link rel="alternate" type="text/html" href="https://en.formulasearchengine.com/w/index.php?title=Point_in_polygon&amp;diff=290155&amp;oldid=prev"/>
		<updated>2014-11-13T00:38:14Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Winding number algorithm: &lt;/span&gt; Supply requested citation&lt;/p&gt;
&lt;a href=&quot;https://en.formulasearchengine.com/w/index.php?title=Point_in_polygon&amp;amp;diff=290155&amp;amp;oldid=290154&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>en&gt;David Eppstein</name></author>
	</entry>
	<entry>
		<id>https://en.formulasearchengine.com/w/index.php?title=Point_in_polygon&amp;diff=290154&amp;oldid=prev</id>
		<title>en&gt;Cedric jules: Fix spelling mistake</title>
		<link rel="alternate" type="text/html" href="https://en.formulasearchengine.com/w/index.php?title=Point_in_polygon&amp;diff=290154&amp;oldid=prev"/>
		<updated>2014-02-12T20:06:20Z</updated>

		<summary type="html">&lt;p&gt;Fix spelling mistake&lt;/p&gt;
&lt;a href=&quot;https://en.formulasearchengine.com/w/index.php?title=Point_in_polygon&amp;amp;diff=290154&amp;amp;oldid=5259&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>en&gt;Cedric jules</name></author>
	</entry>
	<entry>
		<id>https://en.formulasearchengine.com/w/index.php?title=Point_in_polygon&amp;diff=5259&amp;oldid=prev</id>
		<title>en&gt;Iandiver: /* See also */ http://geomalgorithms.com/a03-_inclusion.html</title>
		<link rel="alternate" type="text/html" href="https://en.formulasearchengine.com/w/index.php?title=Point_in_polygon&amp;diff=5259&amp;oldid=prev"/>
		<updated>2013-12-07T00:41:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;See also: &lt;/span&gt; http://geomalgorithms.com/a03-_inclusion.html&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Image:Pentagonal number.gif|right|thumb|181px|A visual representation of the first six pentagonal numbers]]&lt;br /&gt;
&lt;br /&gt;
A &amp;#039;&amp;#039;&amp;#039;pentagonal number&amp;#039;&amp;#039;&amp;#039; is a [[figurate number]] that extends the concept of [[triangular number|triangular]] and [[square number]]s to the [[pentagon]], but, unlike the first two, the patterns involved in the construction of pentagonal numbers are not [[rotational symmetry|rotationally symmetrical]]. The &amp;#039;&amp;#039;n&amp;#039;&amp;#039;th pentagonal number &amp;#039;&amp;#039;p&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt; is the number of &amp;#039;&amp;#039;distinct&amp;#039;&amp;#039; dots in a pattern of dots consisting of the &amp;#039;&amp;#039;outlines&amp;#039;&amp;#039; of regular pentagons with sides up to n dots, when the pentagons are overlaid so that they share one [[vertex (geometry)|vertex]]. For instance, the third one is formed from outlines comprising 1, 5 and 10 dots, but the 1, and 3 of the 5, coincide with 3 of the 10 – leaving 12 distinct dots, 10 in the form of a pentagon, and 2 inside.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;p&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt; is given by the formula:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;p_n = \tfrac{3n^2-n}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for &amp;#039;&amp;#039;n&amp;#039;&amp;#039; &amp;amp;ge; 1. The first few pentagonal numbers are:&lt;br /&gt;
&lt;br /&gt;
[[1 (number)|1]], [[5 (number)|5]], [[12 (number)|12]], [[22 (number)|22]], [[35 (number)|35]], [[51 (number)|51]], [[70 (number)|70]], [[92 (number)|92]], [[117 (number)|117]], 145, 176, 210, 247, 287, 330, 376, 425, 477, 532, 590, 651, 715, 782, 852, 925, [[1001 (number)|1001]] {{OEIS|id=A000326}}.&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;n&amp;#039;&amp;#039;th pentagonal number is one third of the &amp;#039;&amp;#039;3n-1&amp;#039;&amp;#039;th [[triangular number]].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Generalized pentagonal numbers&amp;#039;&amp;#039;&amp;#039; are obtained from the formula given above, but with &amp;#039;&amp;#039;n&amp;#039;&amp;#039; taking values in the sequence 0, 1, -1, 2, -2, 3, -3, 4..., producing the sequence:&lt;br /&gt;
&lt;br /&gt;
0, 1, 2, 5, 7, 12, 15, 22, 26, 35, 40, 51, 57, 70, 77, 92, 100, 117, 126, 145, 155, 176, 187, 210, 222, 247, 260, 287, 301, 330, 345, 376, 392, 425, 442, 477, 495, 532, 551, 590, 610, 651, 672, 715, 737, 782, 805, 852, 876, 925, 950, 1001, 1027, 1080, 1107, 1162, 1190, 1247, 1276, 1335... {{OEIS|id=A001318}}.&lt;br /&gt;
&lt;br /&gt;
Generalized pentagonal numbers are important to [[Euler]]&amp;#039;s theory of [[Partition (number theory)|partition]]s, as expressed in his [[pentagonal number theorem]].&lt;br /&gt;
&lt;br /&gt;
The number of dots inside the outermost pentagon of a pattern forming a pentagonal number is itself a generalized pentagonal number.&lt;br /&gt;
&lt;br /&gt;
Pentagonal numbers should not be confused with [[centered pentagonal number]]s.&lt;br /&gt;
&lt;br /&gt;
==Generalized pentagonal numbers and centered hexagonal numbers==&lt;br /&gt;
&lt;br /&gt;
Generalized pentagonal numbers are closely related to [[centered hexagonal number]]s.  When the array corresponding to a centered hexagonal number is divided between its middle row and an adjacent row, it appears as the sum of two generalized pentagonal numbers, with the larger piece being a pentagonal number proper:&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
! 1=1+0 !! !! 7=5+2 !! !! 19=12+7 !! !! 37=22+15&lt;br /&gt;
|- align=&amp;quot;center&amp;quot; valign=&amp;quot;middle&amp;quot;&lt;br /&gt;
|[[Image:RedDotX.svg|16px|*]]&lt;br /&gt;
|&lt;br /&gt;
|[[Image:RedDotX.svg|16px|*]][[Image:RedDotX.svg|16px|*]]&amp;lt;br&amp;gt;[[Image:RedDotX.svg|16px|*]][[Image:RedDotX.svg|16px|*]][[Image:RedDotX.svg|16px|*]]&amp;lt;br&amp;gt;[[Image:GrayDotX.svg|16px|*]][[Image:GrayDotX.svg|16px|*]]&lt;br /&gt;
|&lt;br /&gt;
|[[Image:RedDotX.svg|16px|*]][[Image:RedDotX.svg|16px|*]][[Image:RedDotX.svg|16px|*]]&amp;lt;br&amp;gt;[[Image:RedDotX.svg|16px|*]][[Image:RedDotX.svg|16px|*]][[Image:RedDotX.svg|16px|*]][[Image:RedDotX.svg|16px|*]]&amp;lt;br&amp;gt;[[Image:RedDotX.svg|16px|*]][[Image:RedDotX.svg|16px|*]][[Image:RedDotX.svg|16px|*]][[Image:RedDotX.svg|16px|*]][[Image:RedDotX.svg|16px|*]]&amp;lt;br&amp;gt;[[Image:GrayDotX.svg|16px|*]][[Image:GrayDotX.svg|16px|*]][[Image:GrayDotX.svg|16px|*]][[Image:GrayDotX.svg|16px|*]]&amp;lt;br&amp;gt;[[Image:GrayDotX.svg|16px|*]][[Image:GrayDotX.svg|16px|*]][[Image:GrayDotX.svg|16px|*]]&lt;br /&gt;
|&lt;br /&gt;
|[[Image:RedDotX.svg|16px|*]][[Image:RedDotX.svg|16px|*]][[Image:RedDotX.svg|16px|*]][[Image:RedDotX.svg|16px|*]]&amp;lt;br&amp;gt;[[Image:RedDotX.svg|16px|*]][[Image:RedDotX.svg|16px|*]][[Image:RedDotX.svg|16px|*]][[Image:RedDotX.svg|16px|*]][[Image:RedDotX.svg|16px|*]]&amp;lt;br&amp;gt;[[Image:RedDotX.svg|16px|*]][[Image:RedDotX.svg|16px|*]][[Image:RedDotX.svg|16px|*]][[Image:RedDotX.svg|16px|*]][[Image:RedDotX.svg|16px|*]][[Image:RedDotX.svg|16px|*]]&amp;lt;br&amp;gt;[[Image:RedDotX.svg|16px|*]][[Image:RedDotX.svg|16px|*]][[Image:RedDotX.svg|16px|*]][[Image:RedDotX.svg|16px|*]][[Image:RedDotX.svg|16px|*]][[Image:RedDotX.svg|16px|*]][[Image:RedDotX.svg|16px|*]]&amp;lt;br&amp;gt;[[Image:GrayDotX.svg|16px|*]][[Image:GrayDotX.svg|16px|*]][[Image:GrayDotX.svg|16px|*]][[Image:GrayDotX.svg|16px|*]][[Image:GrayDotX.svg|16px|*]][[Image:GrayDotX.svg|16px|*]]&amp;lt;br&amp;gt;[[Image:GrayDotX.svg|16px|*]][[Image:GrayDotX.svg|16px|*]][[Image:GrayDotX.svg|16px|*]][[Image:GrayDotX.svg|16px|*]][[Image:GrayDotX.svg|16px|*]]&amp;lt;br&amp;gt;[[Image:GrayDotX.svg|16px|*]][[Image:GrayDotX.svg|16px|*]][[Image:GrayDotX.svg|16px|*]][[Image:GrayDotX.svg|16px|*]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
In general:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt; 3n(n-1)+1 = \tfrac{1}{2}n(3n-1)+\tfrac{1}{2}(1-n)(3(1-n)-1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where both terms on the right are generalized pentagonal numbers and the first term is a pentagonal number proper (&amp;#039;&amp;#039;n&amp;#039;&amp;#039; &amp;amp;ge; 1).  This division of centered hexagonal arrays gives generalized pentagonal numbers as trapezoidal arrays, which may be interpreted as Ferrers diagrams for their partition.  In this way they can be used to prove the pentagonal number theorem referenced above.&lt;br /&gt;
&lt;br /&gt;
==Tests for pentagonal numbers==&lt;br /&gt;
The simplest way to test whether a positive integer &amp;#039;&amp;#039;x&amp;#039;&amp;#039; is a (non-generalized) pentagonal number is by computing&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;n = \frac{\sqrt{24x+1} + 1}{6}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;#039;&amp;#039;n&amp;#039;&amp;#039; is a [[natural number]], then &amp;#039;&amp;#039;x&amp;#039;&amp;#039; is the &amp;#039;&amp;#039;n&amp;#039;&amp;#039;th pentagonal number. If &amp;#039;&amp;#039;n&amp;#039;&amp;#039; is not a natural number, then &amp;#039;&amp;#039;x&amp;#039;&amp;#039; is not pentagonal.&lt;br /&gt;
&lt;br /&gt;
===The perfect square test===&lt;br /&gt;
&lt;br /&gt;
For generalized pentagonal numbers, it is sufficient to just check if&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;24x+1&amp;lt;/math&amp;gt; is a perfect square.&lt;br /&gt;
&lt;br /&gt;
For non-generalized pentagonal numbers, in addition to the perfect square test, it is also required to check if&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\sqrt{24x+1} \equiv 5 \mod 6&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The mathematical properties of Pentagonal numbers ensure that these tests are sufficient for proving or disproving the pentagonality of a number.&amp;lt;ref name=&amp;quot;test-generalized-pentagonal-nos&amp;quot;&amp;gt;[http://web.archive.org/web/20130402163514/http://www.divye.in/2012/07/how-do-you-determine-if-number-n-is.html How do you determine if a number N is a Pentagonal Number?]&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hexagonal number]]&lt;br /&gt;
*[[Triangular number]]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Further reading==&lt;br /&gt;
*[http://arxiv.org/abs/math/0505373 Leonhard Euler: On the remarkable properties of the pentagonal numbers]&lt;br /&gt;
&lt;br /&gt;
{{Classes of natural numbers}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Figurate numbers]]&lt;/div&gt;</summary>
		<author><name>en&gt;Iandiver</name></author>
	</entry>
</feed>