import matplotlib.pyplot as plt

N=101
A=7
L=[A]

for i in range(N):
    L+=[(A*L[i])%N]

print(L)

plt.plot(L,'.')
plt.show()