i have tried this code
p = 1000003 q = 400003 M = p*q n = 84480 X = [6225**2%M] new = X[0]**2%M i = 1 while new not in X and len(X)