The Paley class of a positive integer m congruent 0 (mod 4) is defined as the set of all possible quadruples (k, e, q, n) where m = 2^e(q^n + 1), q is an odd prime, and k = {0 | if q = 0 1 | if q^n - 3 congruent 0 (mod 4) 2 | if q^n - 1 congruent 0 (mod 4) undefined | otherwise. auto right match