Algorithm For Polygonal Numbers
Today I decided to put together a PDF-document of something I have been playing with for quite some time. Just like the title of this post suggests the paper is on the topic of polygonal numbers, or to be more specific on the topic of testing numbers to see whether they are polygonal or not. The paper starts with a clumsy rewrite of the traditional definition of a polygonal number and ends with Python source code for testing any integer for s-gonal properties!