Rational Rectangles

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.

If the four corners of a rectangle with rational sides have rational distances , , , to a point , the resulting rectangle-point combination is sometimes called a rational rectangle. A given set of four distances to a point supports four distinct rectangles. The British flag theorem holds for distances to the opposing corners.


Whether a square can be a rational rectangle is a long-unsolved problem.


Contributed by: Ed Pegg Jr (August 2022)
Open content licensed under CC BY-NC-SA




[1] Wikipedia. "British Flag Theorem." (Mar 17, 2022) en.wikipedia.org/wiki/British_flag_theorem.

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.