5. Congruence
In this section, P is prime, is any integer, .
The following congruences are based on P. .
Definition 5.1. If , define , .
Theorem 5.1. ,
, .
, .
, . , .
Proof.
.
.
. .
.
Prove the part of PTS through [Theorem 2.2(2)].
, [Theorem 2.3](1) . □
Remove products, it can derive many congruence equations. Wilson’s Theorem is a special case.
Theorem 5.2.
(1). , .
(2). .
(3). .
(4). .
(5). .
(6). .
(7). .
Proof.
,
, .
If , .
If , in the express of , , when the largest is encountered where the number of 2 is g. , , so .
.
.
.
.
, .
.
.
, .
and , induction shows that (6).
.
.
This is Wolstenholme’s Theory: . □
A Direct Proof of Wilson’s Theorem:
.
.
.
Let . It can be proved by induction: .
. Use , similar conclusions were reached.
Theorem 5.3. . .
.
.
Theorem 5.4.
(1). .
(2). ,
. For , sum over all PTs meet the condition.
(3). In (1) and (2), then .
Proof. Obviously, holds for (1).
, If in the summation term; If .
holds. Prove by induction that (1) holds.
Removing the repeated products, it still holds due to symmetry. That’s (2). It can be proven that: , applying the same method → (3), they’re generalization of Wolstenholme’s Theory. □
Special: . .
Form classification [Theorem 2.7], .
We can get . For Example: ,
,
,
,
,
. All of them
In fact,. (*)