Index of refraction depend on:

Focal length

Speed of light

Distance of object

Distance of image