An integer r is called a quadratic residue modulo p if it is congruent to a perfect square modulo p:
with the number of residues for a given prime given by the equation (p − 1)/2 where the one value x2 = 0 is removed before division by 2.
According to the formula when p = 11 the number of residues is 5 and we depict the corresponding x and r values from the residues in Table I:
x | 1 | 2 | 3 | 4 | 5 |
---|---|---|---|---|---|
r | 1 | 4 | 9 | 5 | 3 |
Let us say that each column of numbers corresponds to either of three type of expressions:
where q is the quotient and the values of r, r + p and r + pq in the above three types are perfect squares. Types I and II are easily determined. With large primes x2 can be difficult to find in Type III cases especially if q is unknown. However, a method named The Method of Excludents for obtaining x2 is known and is described in in pages 207-208 of Recreations in the Theory of Numbers by Albert H. Beiler (1966). In addition, a six line description in mathworld.wolfram.com-Excludents basically defines the method.
To determine the value of each type we take the square roots of p and 2p and use a floor function (also known as greatest integer) to convert the values to integers. Using p = 11 the following results are obtained:
where the symbol ⌊y⌋ signifies a floor function, i.e, the largest integer less than or equal to y and where y in this case is √p or √2p.
Accordingly, there are three numbers of Type I, one of Type II and one of Type III when p = 11.
There are three exceptions, however, when p are 3, 5 and 7, respectively:
A sequence can be derived from each p with its corresponding r by (1) taking as the first element the lowest positive x0 and adding p to each subsequent element and −p to all prior elements as in rows 1 and 2 of Table II, then (2) taking the absolute values of |x| and rearranging with lowest to highest as in row four. Row three consists of two Δ values (Δ1 and Δ2) which are to be added to either of two adjacent elements and where Δ1 + Δ2 = p. In addition, in row four the sum of pairs starting with the first pair x0 and x-1 is equal to np, where n takes odd values, 1,3,5,.... Consequently, each element squared in the general sequence of table II is congruent to r (mod p), i.e., leaves no remainder on division by p. :
Δ | ... | -p | -p | -p | p | p | p | p | p | p | ... | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
x | ... | -x-2 | -x-1 | x0 | x1 | x2 | x3 | x4 | x5 | ... | |||||||||
Δs | Δ1 | Δ2 | Δ1 | Δ2 | Δ1 | Δ2 | Δ1 | Δ2 | 9 | ... | |||||||||
|x| | x0 | x-1 | x1 | x-2 | x2 | x-3 | x3 | x-4 | x4 | ... |
Using a specific number for instance p = 11 having an r value of 1 we can generate Table III, where row 2 gives a sequence based on Δ = 11 and row 4 the rearranged sequence with Δ values of 9 and 2.
Δ | ... | -11 | -11 | -11 | 11 | 11 | 11 | 11 | 11 | 11 | ... | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
x | ... | -21 | -10 | 1 | 12 | 21 | 23 | 34 | 45 | ... | |||||||||
Δs | 9 | 2 | 9 | 2 | 9 | 2 | 9 | 2 | 9 | ... | |||||||||
|x| | 1 | 10 | 12 | 21 | 23 | 32 | 34 | 45 | 54 | ... |
The four other sequences |x| based on r values of 4, 9, 5 and 3 are shown in Table IV in that particular order:
Δs | 7 | 4 | 7 | 4 | 7 | 4 | 7 | 4 | 7 | ... | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|x| | 2 | 9 | 13 | 20 | 24 | 31 | 35 | 42 | 46 | ... | |||||||||
Δs | 5 | 6 | 5 | 6 | 5 | 6 | 5 | 6 | 5 | ... | |||||||||
|x| | 3 | 8 | 14 | 19 | 25 | 30 | 36 | 41 | 47 | ... | |||||||||
Δs | 3 | 8 | 3 | 8 | 3 | 8 | 3 | 8 | 3 | ... | |||||||||
|x| | 4 | 7 | 15 | 18 | 26 | 29 | 37 | 40 | 48 | ... | |||||||||
Δs | 1 | 10 | 1 | 10 | 1 | 10 | 1 | 10 | 1 | ... | |||||||||
|x| | 5 | 6 | 16 | 17 | 27 | 28 | 38 | 39 | 49 | ... |
The methods employed here also produce similar results with larger primes, viz, 1193 and 135287 see Part II.
Go back to homepage.
Copyright © 2022 by Eddie N Gutierrez. E-Mail: enaguti1949@gmail.com