We wish to generate a periodic sequence of numbers that cycles through the integers from 1 to 100 in a pseudorandom fashion.
Choose a pair of integers that can be used in the power residue method to produce a sequence of the desired form.
Write a MATLAB program to verify that the sequence produced does in fact cycle through each of the integers 1-100 exactly once each before the sequence repeats.