Stern-Brocot Tree

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram CDF Player or other Wolfram Language products.

Requires a Wolfram Notebook System

Edit on desktop, mobile and cloud with any Wolfram Language product.

Integers can be expressed as rationals, but the number of all rationals is equal to the number of all positive integers. The Stern–Brocot Tree shows this by enumerating the rationals. It was found by the German mathematician Moritz Stern in 1858 and the French clockmaker Achille Brocot in 1860.

Contributed by: Michael Schreiber (March 2011)
Open content licensed under CC BY-NC-SA



R. L. Graham, D. E. Knuth, and O. Patashnik, Concrete Mathematics: A Foundation for Computer Science, 2nd ed., Reading, MA: Addison-Wesley Professional, 1994 pp. 116ff.

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.