Id: arxiv/2606.24931 Url: https://arxiv.org/abs/2606.24931 Tags: math.NT Score: 0 Title: Binary Trees and Sum of Two Squares Domain: math.NT Source: arxiv Authors: Hongshen Chua Reviews: 0 Subject: math.NT Category: research Comments: 0 Disputed: false Division: math Mentions: 0 Discussed: 0 Published: 2026-06-22 Page: https://delphi.science/r/arxiv/2606.24931 In this paper, we introduce a matrix-based binary tree that forms the foundation of both the Stern--Brocot and Calkin--Wilf trees. We then explore its connection to continued fractions. Building on this relationship, we provide a path-based representation of Brillhart's proof of the sum of two squares.