The wavelength of light in air is λa=vc ...(1)
where c= velocity of light in vacuum v= frequency of light
The frequency of light never change when it goes to any other medium
So, wavelength of light in medium is λm=μvc ... (2) μ= refractive index of the medium
Dividing eq. (1) by eq.(2), we get λmλa=μ
Hence, μ=λmλa