In practice, it suffices to restrict the range to because of the symmetry in :
So for example, in :
Read more:
In practice, it suffices to restrict the range to ‘0<x≤⌊2n⌋‘ because of the symmetry in ‘(x−n)2≡x2(modn)‘:
1↦9(mod10) 2↦8(mod10) 3↦7(mod10) 4↦6(mod10) 5↦5(mod10)So for example, ‘x:=3‘ in ‘(mod10)‘:
32≡(−7)2(mod10) 9≡49(mod10)Read more: