import matplotlib.pyplot as plt

N=101
A=7
L=[A]

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

print(L)

L1=L[0:N]
L2=L[1:N+1]
plt.plot(L1,L2,'.')
plt.show()