A ray of light passes through four transparent media with refractive indices , , and as shown in the figure. The surfaces of all media are parallel. If the emergent ray is parallel to the incident ray , we must have [2001]

(4)
Applying Snell's law at A,

Applying Snell's law at B,
Again applying Snell's law at C,
Multiplying eq. (i), (ii) and (iii),
If the emergent ray is parallel to the incident ray after travelling through a number of parallel interfaces, then the refractive index of the first and the last medium is always the same.
Here, the incident ray is medium-1 , so the emergent ray is in medium-4.