How to Use
Enter fraction or index:
- Path: Binary path from root
- Index: Position in BFS
- Children: Left and right
Stern Connection
The n-th fraction in BFS order is b(n)/b(n+1) where b is the Stern diatomic sequence: b(0)=0, b(1)=1, b(2n)=b(n), b(2n+1)=b(n)+b(n+1). This connects the tree to hyperbinary representations.
vs Stern-Brocot
Both trees contain every positive rational once. Stern-Brocot uses mediants (sorted order). Calkin-Wilf uses simpler rules (not sorted). Calkin-Wilf was discovered in 2000; Stern-Brocot in 1858.
Step-by-Step Instructions
- 1Enter fraction.
- 2Find path.
- 3Browse levels.
- 4Compare to Stern-Brocot.
- 5Check index.