Assume in $\mathbb{R}^3$ there is a sphere $S=S(A,R)$ centered at a point $A$ with radius $R$, and $|A|=a$, where $|A|$ is the Euclid norm of $A$.
Now let a $X$ be a uniform distributed random point on $S$, we want to calculate $$E\frac{1}{|X|}.$$
the expectation of the reciprocal of the distance between $X$ and the origin $O$.
I got stuck here:
because $f(x,y,z)=1/\sqrt{x^2+y^2+z^2}$ is a harmonic function in $\mathbb{R^3}-O$, so if the origin $O$ sits strictly outside the sphere $S$, then the integration is just the value of $f$ at the point $A$, which follows from the mean value propery of harmonic functions.
But what if $O$ sits strictly inside $S$ or sits just on $S$? In the latter case, the integration would have a singularity at $O$, but I think it still converges (in Lebesegue integration), but I cannot make my argument rigorously.
I know this question lies just in the rudiments of potential theory (or harmonic function theory), but I could not find a reference at hand.