Primitive Pythagorean triplets $a^2 = b^2 + c^2, \gcd(b,c) = 1$ are given by $a = r^2 + s^2$, $b = r^2 - s^2$ and $c = 2rs$ where $r > s$ are natural numbers. Let the $n$-th primitive triplet be the one formed by the $n$-th smallest pair in increasing order of $(r,s)$.
Claim 1: Let $\mu_n$ be the arithmetic mean of the ratio of the perimeter to the hypotenuse of first $n$ primitive Pythagorean triplets; then,
$$ \lim_{n \to \infty}\mu_n = \frac{\pi}{2} + \log 2$$
Claim 2: Let $\mu_x$ be the arithmetic mean of the ratio of the perimeter to the hypotenuse of all primitive Pythagorean triplets in which no side exceeds $x$; then,
$$ \lim_{x \to \infty}\mu_x = 1 + \frac{4}{\pi}$$
Update 8-Oct-2019: Claim 2 has been proved in Mathoverflow.
Data for claim 1: From the plot of $\mu_n$ vs. $n$ for $n \le 5 \times 10^8$ we observe that $\mu_n$ is approaching a limiting value which is somwhere between $2.263942$ and $2.263944$. The midpoint of the distribution of $\mu_n$ agrees with the above closed form to $6$ decimal places. Claim 2 has similar data.
Question: Are these limits known if not, can it be proved or disproved?
Sage code for claim 1
r = 2
s = 1
n = sum = 0
max = 10^20
while(r <= max):
s = 1
while(s < r):
a = r^2 + s^2
b = r^2 - s^2
if(gcd(a,b) == 1):
c = 2*r*s
if(gcd(b,c) == 1):
n = n + 1
sum = sum + ((a+b+c)/a).n()
if(n%10^5 == 0):
print(n,sum/n)
s = s + 1
r = r + 1