On the asymptotic density of the ordered pairs
(a,b) of positive integers such that
gcd(ab,a+b)=gcd(a,b)This paper establishes asymptotic formulas for sums of the form $\sum_{a,b\le x} h(\gcd(ab,a+b)/\gcd(a,b))$, where $h$ lies in a certain class of arithmetic functions. In particular, for a fixed positive integer $m$, the density of ordered pairs $(a,b)$ with $f(a,b)=m$ is determined. For $m=1$, the density equals the quadratic class number constant $C = \prod_p (1-1/(p^2(p+1))) \approx 0.881513$.