test.py 78 Bytes Edit Raw Blame History Permalink 1 2 3 4 5 6 7 8 N = 10 m = 31 a = 4 x = 3 for i in range(N): x = (a * x) % m print(x)