Algorithmic number theory, Volume I: e cient algorithms (1992)

by E Bach, J Shallit