Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
If $a_k$ is the mean of the first $k$ elements, then $a_{k+1}=\lceil (ka_k+1)/(k+1)\rceil$. This formula is monotone in $a_k$, hence $a_k$ is a monotone function of $a_1=n$. Hence so is $r(n)$, which equals $a_k$ for all sufficiently large $k$.
The limit distance $d(x,y)$ may be zero for some $x\ne y$, so it is not a metric in the usual sense. Do you disallow this, or use a generalized notion of a metric?
Papasoglu estimates the Cheeger constant, which does not control the area bounded be the loop, only the length/area ratio. It can happen that the loop bounds a small area and is very short itself, isn't it?
Apply Morse theorem to $Y=f^{-1}(0)$ being a submanifold of $\mathbb R\times X$, and the function $g(s,x)=s$ restricted to $Y$. This function on $Y$ is proper and regular on, hence Morse theory applies.