for what n does total internal reflection occur
Total internal reflection only occurs when light is passing from a higher refractive index medium to a lower refractive index medium. The easiest way to see why it happens is described below. In the diagram above Snell's law tells us that: $$ \sin\theta_{air} = \frac{n_{water}}{n_{air}} \space \sin\theta_{water} $$