Given that,
Refractive index of air =n1
Refractive index of medium =n
Distance of image =2r
Distance of object =∞
Sphere is considered as a solid transparent with two spherical refractive surface of radius f curvature
r1=r2=r
The image is formed at 2r distance from the pole of the 1st surface and so no refraction takes place in the second surface.
Effectively refraction take place in single surface and image is formed inside the refractive medium.
n1u+nv=n−n1r
1∞+n2r=n−1r
n=2n−2
n=2
Hence, the value of n is 2