NPTEL Computational Number Theory and Algebra Assignment 7 Answer