Finding Powers Of k With A Permutation

Time: :

k1,k2,k3, ..., kr where r is the order of k mod n =