Lattice Squares of Integer Area

Initializing live version
Download to Desktop

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




Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.