Err this is going of on a tangent because the number seems really large

since the only number that goes into 7 evenly is 49

7^2 = 49

and 49 doesn't apply to all the rules we further sq 49 since it will also be a number that goes evenly with 7 and no other number except 49

49^2 = 2401

and there is always 1 remainder for the set {2,6}