For calculating the refractive index of a prism, use the formula \( n = \frac{\sin \left( \frac{A+D}{2} \right)}{\sin \left( \frac{A}{2} \right)} \), where \( A \) is the angle of the prism and \( D \) is the angle of deviation.
The refractive index \( n \) of a prism is given by the formula:
\[
n = \frac{\sin \left( \frac{A+D}{2} \right)}{\sin \left( \frac{A}{2} \right)}
\]
This formula relates the angle of the prism \( A \) and the deviation angle \( D \). Thus, the correct answer is option (3).