Chapter 1: Q39E (page 51)
Give a polynomial-time algorithm for computing, given a,b,c, and prime p.
Short Answer
An Algorithm:
Use Fermat’s little theorem
Apply on with twice modular exponentiation operation
Return a,b,c,p
The algorithm runs in time.