import matplotlib.pyplot as plt

N=101
A=7
L=[A]
i=0

while L[i]!=1:
    L+=[(A*L[i])%N]
    i+=1

print(L)

if i+1==N-1:
    print(f"Tous les {i+1} nombres différents ont été explorés")
else:
    print(f"Seuls {i+1} nombres différents ont été explorés")
