Find The Last Digits Of A Number And Exponent