数论:Stern-Brocot树

[Reference]Grapham, Kunth and Patashnik. Concrete Mathematics(2th edition). Chapter 4 Number Theory: 4.5 Relative Primality