The Calkin-Wilf and Stern-Brocot trees are two famous ways to arrange all positi...

@johncarlosbaez@mathstodon.xyz

The Calkin-Wilf and Stern-Brocot trees are two famous ways to arrange all positive rational numbers in a binary tree, but I just learned how they're connected!

Make a binary tree listing all matrix products of

1 0 and 1 1
1 1 0 1

as below. If you multiply the column vector

1
1

on the left by all these matrices, you get the Calkin-Wilf tree. If you multiply the row vector

1 1

on the right by all these matrices, you get the Stern-Brocot tree!

Katherine Stange's article explains this simply and quickly:

math.colorado.edu/~kstange/pap