Bidimensional display of 31 Rational Numbers by means of the Stern-Brocot Tree [Visualisation bidimensionnelle de 31 Nombre Rationnels à l'aide de l'arbre de Stern-Brocot ]

Bidimensional display of 31 Rational Numbers by means of the Stern-Brocot Tree [Visualisation bidimensionnelle de 31 Nombre Rationnels à l'aide de l'arbre de Stern-Brocot].




Let's define the so-called Median-Mean of two rational numbers A/B and C/D:

                                           A+C
                    MedianMean(A/B,C/D) = -----
                                           B+D

Nota: the Median-Mean is at the origin of the so-called Simpson Paradox.


'Left', 'Right' and 'Mean' being three rational numbers, the following recursive algorithm:
                    Generate(Left,Right)
                         {
                         Mean = MedianMean(Left,Right);
                          
                         Generate(Left,Mean);
                         Generate(Mean,Right);
                         }

starting with:
                    zero=0/1
                    infinity=1/0
                     
                    Generate(zero,infinity)

gives the Stern-Brocot tree where all the positive rational numbers (Q+={Mean}) appear once and only once:
                    
                    level=1   0/1 > > > > > > > > > > > > > > > > > > 1/1 < < < < < < < < < < < < < < < < < < 1/0
                               |                                     * | *                                     |
                               |                                   *   |   *                                   |
                               |                                 *     |     *                                 |
                               |                               *       |       *                               |
                               |                             *         |         *                             |
                               |                           *           |           *                           |
                               |                         *             |             *                         |
                               |                       *               |               *                       |
                               |                     *                 |                 *                     |
                    level=2   0/1 > > > > > > > > 1/2 < < < < < < < < 1/1 > > > > > > > > 2/1 < < < < < < < < 1/0
                               |                 * | *                 |                 * | *                 |
                               |               *   |   *               |               *   |   *               |
                               |             *     |     *             |             *     |     *             |
                               |           *       |       *           |           *       |       *           |
                    level=3   0/1 > > > 1/3 < < < 1/2 > > > 2/3 < < < 1/1 > > > 3/2 < < < 2/1 > > > 3/1 < < < 1/0
                               |       * | *     * | *     * | *     * | *     * | *     * | *     * | *       |
                               |     *   |   * *   |   * *   |   * *   |   * *   |   * *   |   * *   |   *     |
                             (...)     (...)     (...)     (...)     (...)     (...)     (...)     (...)     (...)


At last, the colored points display the Rational Numbers {1/1,1/2,1/3,1/4,1/5,2/7,2/5,3/8,3/7,2/3,3/5,4/7,5/8,3/4,5/7,4/5,2/1,3/2,4/3,5/4,7/5,5/3,8/5,7/4,3/1,5/2,7/3,8/3,4/1,7/2,5/1} with coordinates {X=numerator,Y=denominator} and a luminance proportional to their decimal values.



See some related pictures (including this one):

Bidimensional display of 7 Rational Numbers by means of the Stern-Brocot Tree
level=3
Bidimensional display of 15 Rational Numbers by means of the Stern-Brocot Tree
level=4
Bidimensional display of 31 Rational Numbers by means of the Stern-Brocot Tree
level=5
Bidimensional display of 63 Rational Numbers by means of the Stern-Brocot Tree
level=6
Bidimensional display of 127 Rational Numbers by means of the Stern-Brocot Tree
level=7
Bidimensional display of 255 Rational Numbers by means of the Stern-Brocot Tree
level=8
Bidimensional display of 32767 Rational Numbers by means of the Stern-Brocot Tree
level=15


Bidimensional display of 7 Rational Numbers by means of the Stern-Brocot Tree
level=3
Bidimensional display of 15 Rational Numbers by means of the Stern-Brocot Tree
level=4
Bidimensional display of 31 Rational Numbers by means of the Stern-Brocot Tree
level=5
Bidimensional display of 63 Rational Numbers by means of the Stern-Brocot Tree
level=6
Bidimensional display of 127 Rational Numbers by means of the Stern-Brocot Tree
level=7
Bidimensional display of 255 Rational Numbers by means of the Stern-Brocot Tree
level=8
Empty



(CMAP28 WWW site: this page was created on 08/05/2022 and last updated on 06/04/2026 23:38:44 -CEST-)



[See the generator of this picture [Voir le générateur de cette image]]

[See all related pictures (including this one) [Voir toutes les images associées (incluant celle-ci)]]

[Please visit the related NumberTheory picture gallery [Visitez la galerie d'images NumberTheory associée]]

[Go back toMathematics - A Virtual Instrument For Exploring Space Time And Beyond [Retour à {a chapter of 'Mathematics-AVirtualInstrumentForExploringSpaceTimeAndBeyond'}]]

[The Y2K Bug [Le bug de l'an 2000]]
[Are we ready for the Year 2038 [Notre informatique est-elle prête pour l'An 2038]?]

[Site Map and Help [Plan du Site et Aide]]
[Mail [Courrier]]
[About Pictures and Animations [A Propos des Images et des Animations]]


Copyright © Jean-François COLONNA, 2022-2026.
Copyright © CMAP (Centre de Mathématiques APpliquées) UMR CNRS 7641 / École polytechnique, Institut Polytechnique de Paris, 2022-2026.