Description: Variant of Fermat's little theorem if A is not a multiple of P , see theorem 5.18 in ApostolNT p. 113. (Contributed by AV, 21-Aug-2020) (Proof shortened by AV, 5-Sep-2020)
Ref | Expression | ||
---|---|---|---|
Assertion | vfermltl | |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | phiprm | |
|
2 | 1 | eqcomd | |
3 | 2 | 3ad2ant1 | |
4 | 3 | oveq2d | |
5 | 4 | oveq1d | |
6 | prmnn | |
|
7 | 6 | 3ad2ant1 | |
8 | simp2 | |
|
9 | prmz | |
|
10 | 9 | anim1ci | |
11 | 10 | 3adant3 | |
12 | gcdcom | |
|
13 | 11 12 | syl | |
14 | coprm | |
|
15 | 14 | biimp3a | |
16 | 13 15 | eqtrd | |
17 | eulerth | |
|
18 | 7 8 16 17 | syl3anc | |
19 | 6 | nnred | |
20 | prmgt1 | |
|
21 | 19 20 | jca | |
22 | 21 | 3ad2ant1 | |
23 | 1mod | |
|
24 | 22 23 | syl | |
25 | 5 18 24 | 3eqtrd | |