n = c/v = sin i/sin r
Explanation:
n = Speed of light in vacuum/Speed of light in the medium = c/v
n = sin i/sin r where i is the angle of incidence and r is the angle of refraction.