Q. If and are the roots of the quadratic equation where are integers and is prime then the value of equals

 2509  121 Inverse Trigonometric Functions Report Error

Solution:

.
Hence the quadratic equation whose roots are and .