Lattice Squares of Integer Area

Requires a Wolfram Notebook System
Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.
This Demonstration represents the problem of drawing a square with all four vertices at lattice points such that the area of the square is an integer. This works only when the area is the sum of two squares. Since each side has a length equal to the square root of the area, there must exist a right triangle for which the hypotenuse squared equals the area of the square. The graphic shows these squares for a given area if the construction is possible.
Contributed by: Jonathan Kogan (February 2016)
Inspired by: Nathan Dummitt
Open content licensed under CC BY-NC-SA
Snapshots
Details
detailSectionParagraphPermanent Citation
"Lattice Squares of Integer Area"
http://demonstrations.wolfram.com/LatticeSquaresOfIntegerArea/
Wolfram Demonstrations Project
Published: February 1 2016