MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  1259lem4 Structured version   Unicode version

Theorem 1259lem4 14493
Description: Lemma for 1259prm 14495. Calculate a power mod. In decimal, we calculate  2 ^ 3 0 6  =  ( 2 ^ 7 6 ) ^ 4  x.  4  ==  5 ^ 4  x.  4  =  2 N  -  1 8,  2 ^ 6 1 2  =  ( 2 ^ 3 0 6 ) ^ 2  ==  1 8 ^ 2  =  3 2 4,  2 ^ 6 2 9  =  2 ^ 6 1 2  x.  2 ^ 1 7  ==  3 2 4  x.  1 3 6  =  3 5 N  -  1 and finally  2 ^ ( N  -  1 )  =  ( 2 ^ 6 2 9 ) ^ 2  ==  1 ^ 2  =  1. (Contributed by Mario Carneiro, 22-Feb-2014.) (Revised by Mario Carneiro, 20-Apr-2015.)
Hypothesis
Ref Expression
1259prm.1  |-  N  = ;;; 1 2 5 9
Assertion
Ref Expression
1259lem4  |-  ( ( 2 ^ ( N  -  1 ) )  mod  N )  =  ( 1  mod  N
)

Proof of Theorem 1259lem4
StepHypRef Expression
1 2nn 10699 . 2  |-  2  e.  NN
2 6nn0 10822 . . . 4  |-  6  e.  NN0
3 2nn0 10818 . . . 4  |-  2  e.  NN0
42, 3deccl 10998 . . 3  |- ; 6 2  e.  NN0
5 9nn0 10825 . . 3  |-  9  e.  NN0
64, 5deccl 10998 . 2  |- ;; 6 2 9  e.  NN0
7 0z 10881 . 2  |-  0  e.  ZZ
8 1nn 10553 . 2  |-  1  e.  NN
9 1nn0 10817 . 2  |-  1  e.  NN0
10 1259prm.1 . . . . . 6  |-  N  = ;;; 1 2 5 9
119, 3deccl 10998 . . . . . . . 8  |- ; 1 2  e.  NN0
12 5nn0 10821 . . . . . . . 8  |-  5  e.  NN0
1311, 12deccl 10998 . . . . . . 7  |- ;; 1 2 5  e.  NN0
14 8nn0 10824 . . . . . . 7  |-  8  e.  NN0
15 8p1e9 10672 . . . . . . 7  |-  ( 8  +  1 )  =  9
16 eqid 2443 . . . . . . 7  |- ;;; 1 2 5 8  = ;;; 1 2 5 8
1713, 14, 15, 16decsuc 11007 . . . . . 6  |-  (;;; 1 2 5 8  +  1 )  = ;;; 1 2 5 9
1810, 17eqtr4i 2475 . . . . 5  |-  N  =  (;;; 1 2 5 8  +  1 )
1918oveq1i 6291 . . . 4  |-  ( N  -  1 )  =  ( (;;; 1 2 5 8  +  1 )  - 
1 )
2013, 14deccl 10998 . . . . . 6  |- ;;; 1 2 5 8  e.  NN0
2120nn0cni 10813 . . . . 5  |- ;;; 1 2 5 8  e.  CC
22 ax-1cn 9553 . . . . 5  |-  1  e.  CC
2321, 22pncan3oi 9841 . . . 4  |-  ( (;;; 1 2 5 8  +  1 )  -  1 )  = ;;; 1 2 5 8
2419, 23eqtri 2472 . . 3  |-  ( N  -  1 )  = ;;; 1 2 5 8
2524, 20eqeltri 2527 . 2  |-  ( N  -  1 )  e. 
NN0
26 9nn 10706 . . . . 5  |-  9  e.  NN
2713, 26decnncl 10997 . . . 4  |- ;;; 1 2 5 9  e.  NN
2810, 27eqeltri 2527 . . 3  |-  N  e.  NN
292, 9deccl 10998 . . . 4  |- ; 6 1  e.  NN0
3029, 3deccl 10998 . . 3  |- ;; 6 1 2  e.  NN0
31 3nn0 10819 . . . . 5  |-  3  e.  NN0
32 4nn0 10820 . . . . 5  |-  4  e.  NN0
3331, 32deccl 10998 . . . 4  |- ; 3 4  e.  NN0
3433nn0zi 10895 . . 3  |- ; 3 4  e.  ZZ
3531, 3deccl 10998 . . . 4  |- ; 3 2  e.  NN0
3635, 32deccl 10998 . . 3  |- ;; 3 2 4  e.  NN0
37 7nn0 10823 . . . 4  |-  7  e.  NN0
389, 37deccl 10998 . . 3  |- ; 1 7  e.  NN0
399, 31deccl 10998 . . . 4  |- ; 1 3  e.  NN0
4039, 2deccl 10998 . . 3  |- ;; 1 3 6  e.  NN0
41 0nn0 10816 . . . . . 6  |-  0  e.  NN0
4231, 41deccl 10998 . . . . 5  |- ; 3 0  e.  NN0
4342, 2deccl 10998 . . . 4  |- ;; 3 0 6  e.  NN0
44 8nn 10705 . . . . 5  |-  8  e.  NN
459, 44decnncl 10997 . . . 4  |- ; 1 8  e.  NN
4611, 32deccl 10998 . . . . 5  |- ;; 1 2 4  e.  NN0
4746, 9deccl 10998 . . . 4  |- ;;; 1 2 4 1  e.  NN0
489, 12deccl 10998 . . . . . 6  |- ; 1 5  e.  NN0
4948, 31deccl 10998 . . . . 5  |- ;; 1 5 3  e.  NN0
50 1z 10900 . . . . 5  |-  1  e.  ZZ
5112, 41deccl 10998 . . . . 5  |- ; 5 0  e.  NN0
5248, 3deccl 10998 . . . . . 6  |- ;; 1 5 2  e.  NN0
533, 12deccl 10998 . . . . . 6  |- ; 2 5  e.  NN0
5437, 2deccl 10998 . . . . . . 7  |- ; 7 6  e.  NN0
55101259lem3 14492 . . . . . . 7  |-  ( ( 2 ^; 7 6 )  mod 
N )  =  ( 5  mod  N )
56 eqid 2443 . . . . . . . 8  |- ; 7 6  = ; 7 6
57 4p1e5 10668 . . . . . . . . 9  |-  ( 4  +  1 )  =  5
58 7cn 10625 . . . . . . . . . 10  |-  7  e.  CC
59 2cn 10612 . . . . . . . . . 10  |-  2  e.  CC
60 7t2e14 11066 . . . . . . . . . 10  |-  ( 7  x.  2 )  = ; 1
4
6158, 59, 60mulcomli 9606 . . . . . . . . 9  |-  ( 2  x.  7 )  = ; 1
4
629, 32, 57, 61decsuc 11007 . . . . . . . 8  |-  ( ( 2  x.  7 )  +  1 )  = ; 1
5
63 6cn 10623 . . . . . . . . 9  |-  6  e.  CC
64 6t2e12 11061 . . . . . . . . 9  |-  ( 6  x.  2 )  = ; 1
2
6563, 59, 64mulcomli 9606 . . . . . . . 8  |-  ( 2  x.  6 )  = ; 1
2
663, 37, 2, 56, 3, 9, 62, 65decmul2c 11032 . . . . . . 7  |-  ( 2  x. ; 7 6 )  = ;; 1 5 2
6753nn0cni 10813 . . . . . . . . 9  |- ; 2 5  e.  CC
6867addid2i 9771 . . . . . . . 8  |-  ( 0  + ; 2 5 )  = ; 2
5
6928nncni 10552 . . . . . . . . . 10  |-  N  e.  CC
7069mul02i 9772 . . . . . . . . 9  |-  ( 0  x.  N )  =  0
7170oveq1i 6291 . . . . . . . 8  |-  ( ( 0  x.  N )  + ; 2 5 )  =  ( 0  + ; 2 5 )
72 5t5e25 11060 . . . . . . . 8  |-  ( 5  x.  5 )  = ; 2
5
7368, 71, 723eqtr4i 2482 . . . . . . 7  |-  ( ( 0  x.  N )  + ; 2 5 )  =  ( 5  x.  5 )
7428, 1, 54, 7, 12, 53, 55, 66, 73mod2xi 14432 . . . . . 6  |-  ( ( 2 ^;; 1 5 2 )  mod 
N )  =  (; 2
5  mod  N )
75 2p1e3 10665 . . . . . . 7  |-  ( 2  +  1 )  =  3
76 eqid 2443 . . . . . . 7  |- ;; 1 5 2  = ;; 1 5 2
7748, 3, 75, 76decsuc 11007 . . . . . 6  |-  (;; 1 5 2  +  1 )  = ;; 1 5 3
7851nn0cni 10813 . . . . . . . 8  |- ; 5 0  e.  CC
7978addid2i 9771 . . . . . . 7  |-  ( 0  + ; 5 0 )  = ; 5
0
8070oveq1i 6291 . . . . . . 7  |-  ( ( 0  x.  N )  + ; 5 0 )  =  ( 0  + ; 5 0 )
81 eqid 2443 . . . . . . . 8  |- ; 2 5  = ; 2 5
82 2t2e4 10691 . . . . . . . . . 10  |-  ( 2  x.  2 )  =  4
8382oveq1i 6291 . . . . . . . . 9  |-  ( ( 2  x.  2 )  +  1 )  =  ( 4  +  1 )
8483, 57eqtri 2472 . . . . . . . 8  |-  ( ( 2  x.  2 )  +  1 )  =  5
85 5t2e10 10696 . . . . . . . . 9  |-  ( 5  x.  2 )  =  10
86 dec10 11014 . . . . . . . . 9  |-  10  = ; 1 0
8785, 86eqtri 2472 . . . . . . . 8  |-  ( 5  x.  2 )  = ; 1
0
883, 3, 12, 81, 41, 9, 84, 87decmul1c 11031 . . . . . . 7  |-  (; 2 5  x.  2 )  = ; 5 0
8979, 80, 883eqtr4i 2482 . . . . . 6  |-  ( ( 0  x.  N )  + ; 5 0 )  =  (; 2 5  x.  2 )
9028, 1, 52, 7, 53, 51, 74, 77, 89modxp1i 14433 . . . . 5  |-  ( ( 2 ^;; 1 5 3 )  mod 
N )  =  (; 5
0  mod  N )
91 eqid 2443 . . . . . 6  |- ;; 1 5 3  = ;; 1 5 3
92 eqid 2443 . . . . . . . . 9  |- ; 1 5  = ; 1 5
9359mulid1i 9601 . . . . . . . . . . 11  |-  ( 2  x.  1 )  =  2
9493oveq1i 6291 . . . . . . . . . 10  |-  ( ( 2  x.  1 )  +  1 )  =  ( 2  +  1 )
9594, 75eqtri 2472 . . . . . . . . 9  |-  ( ( 2  x.  1 )  +  1 )  =  3
96 5cn 10621 . . . . . . . . . . 11  |-  5  e.  CC
9796, 59, 85mulcomli 9606 . . . . . . . . . 10  |-  ( 2  x.  5 )  =  10
9897, 86eqtri 2472 . . . . . . . . 9  |-  ( 2  x.  5 )  = ; 1
0
993, 9, 12, 92, 41, 9, 95, 98decmul2c 11032 . . . . . . . 8  |-  ( 2  x. ; 1 5 )  = ; 3
0
10099oveq1i 6291 . . . . . . 7  |-  ( ( 2  x. ; 1 5 )  +  0 )  =  (; 3
0  +  0 )
10142nn0cni 10813 . . . . . . . 8  |- ; 3 0  e.  CC
102101addid1i 9770 . . . . . . 7  |-  (; 3 0  +  0 )  = ; 3 0
103100, 102eqtri 2472 . . . . . 6  |-  ( ( 2  x. ; 1 5 )  +  0 )  = ; 3 0
104 3cn 10616 . . . . . . . 8  |-  3  e.  CC
105 3t2e6 10693 . . . . . . . 8  |-  ( 3  x.  2 )  =  6
106104, 59, 105mulcomli 9606 . . . . . . 7  |-  ( 2  x.  3 )  =  6
1072dec0h 11000 . . . . . . 7  |-  6  = ; 0 6
108106, 107eqtri 2472 . . . . . 6  |-  ( 2  x.  3 )  = ; 0
6
1093, 48, 31, 91, 2, 41, 103, 108decmul2c 11032 . . . . 5  |-  ( 2  x. ;; 1 5 3 )  = ;; 3 0 6
11069mulid2i 9602 . . . . . . . 8  |-  ( 1  x.  N )  =  N
111110, 10eqtri 2472 . . . . . . 7  |-  ( 1  x.  N )  = ;;; 1 2 5 9
112 eqid 2443 . . . . . . 7  |- ;;; 1 2 4 1  = ;;; 1 2 4 1
1133, 32deccl 10998 . . . . . . . 8  |- ; 2 4  e.  NN0
114 eqid 2443 . . . . . . . . 9  |- ; 2 4  = ; 2 4
1153, 32, 57, 114decsuc 11007 . . . . . . . 8  |-  (; 2 4  +  1 )  = ; 2 5
116 eqid 2443 . . . . . . . . 9  |- ;; 1 2 5  = ;; 1 2 5
117 eqid 2443 . . . . . . . . 9  |- ;; 1 2 4  = ;; 1 2 4
118 eqid 2443 . . . . . . . . . 10  |- ; 1 2  = ; 1 2
119 1p1e2 10655 . . . . . . . . . 10  |-  ( 1  +  1 )  =  2
120 2p2e4 10659 . . . . . . . . . 10  |-  ( 2  +  2 )  =  4
1219, 3, 9, 3, 118, 118, 119, 120decadd 11025 . . . . . . . . 9  |-  (; 1 2  + ; 1 2 )  = ; 2
4
122 5p4e9 10681 . . . . . . . . 9  |-  ( 5  +  4 )  =  9
12311, 12, 11, 32, 116, 117, 121, 122decadd 11025 . . . . . . . 8  |-  (;; 1 2 5  + ;; 1 2 4 )  = ;; 2 4 9
124113, 115, 123decsucc 11011 . . . . . . 7  |-  ( (;; 1 2 5  + ;; 1 2 4 )  +  1 )  = ;; 2 5 0
125 9p1e10 10673 . . . . . . 7  |-  ( 9  +  1 )  =  10
12613, 5, 46, 9, 111, 112, 124, 125decaddc2 11027 . . . . . 6  |-  ( ( 1  x.  N )  + ;;; 1 2 4 1 )  = ;;; 2 5 0 0
127 eqid 2443 . . . . . . 7  |- ; 5 0  = ; 5 0
12872oveq1i 6291 . . . . . . . . . . 11  |-  ( ( 5  x.  5 )  +  0 )  =  (; 2 5  +  0 )
12967addid1i 9770 . . . . . . . . . . 11  |-  (; 2 5  +  0 )  = ; 2 5
130128, 129eqtri 2472 . . . . . . . . . 10  |-  ( ( 5  x.  5 )  +  0 )  = ; 2
5
13196mul02i 9772 . . . . . . . . . . 11  |-  ( 0  x.  5 )  =  0
13241dec0h 11000 . . . . . . . . . . 11  |-  0  = ; 0 0
133131, 132eqtri 2472 . . . . . . . . . 10  |-  ( 0  x.  5 )  = ; 0
0
13412, 12, 41, 127, 41, 41, 130, 133decmul1c 11031 . . . . . . . . 9  |-  (; 5 0  x.  5 )  = ;; 2 5 0
135134oveq1i 6291 . . . . . . . 8  |-  ( (; 5
0  x.  5 )  +  0 )  =  (;; 2 5 0  +  0 )
13653, 41deccl 10998 . . . . . . . . . 10  |- ;; 2 5 0  e.  NN0
137136nn0cni 10813 . . . . . . . . 9  |- ;; 2 5 0  e.  CC
138137addid1i 9770 . . . . . . . 8  |-  (;; 2 5 0  +  0 )  = ;; 2 5 0
139135, 138eqtri 2472 . . . . . . 7  |-  ( (; 5
0  x.  5 )  +  0 )  = ;; 2 5 0
14078mul01i 9773 . . . . . . . 8  |-  (; 5 0  x.  0 )  =  0
141140, 132eqtri 2472 . . . . . . 7  |-  (; 5 0  x.  0 )  = ; 0 0
14251, 12, 41, 127, 41, 41, 139, 141decmul2c 11032 . . . . . 6  |-  (; 5 0  x. ; 5 0 )  = ;;; 2 5 0 0
143126, 142eqtr4i 2475 . . . . 5  |-  ( ( 1  x.  N )  + ;;; 1 2 4 1 )  =  (; 5 0  x. ; 5 0 )
14428, 1, 49, 50, 51, 47, 90, 109, 143mod2xi 14432 . . . 4  |-  ( ( 2 ^;; 3 0 6 )  mod 
N )  =  (;;; 1 2 4 1  mod 
N )
145 eqid 2443 . . . . 5  |- ;; 3 0 6  = ;; 3 0 6
146 eqid 2443 . . . . . 6  |- ; 3 0  = ; 3 0
1479dec0h 11000 . . . . . 6  |-  1  = ; 0 1
148 00id 9758 . . . . . . . 8  |-  ( 0  +  0 )  =  0
149106, 148oveq12i 6293 . . . . . . 7  |-  ( ( 2  x.  3 )  +  ( 0  +  0 ) )  =  ( 6  +  0 )
15063addid1i 9770 . . . . . . 7  |-  ( 6  +  0 )  =  6
151149, 150eqtri 2472 . . . . . 6  |-  ( ( 2  x.  3 )  +  ( 0  +  0 ) )  =  6
15259mul01i 9773 . . . . . . . 8  |-  ( 2  x.  0 )  =  0
153152oveq1i 6291 . . . . . . 7  |-  ( ( 2  x.  0 )  +  1 )  =  ( 0  +  1 )
154 0p1e1 10653 . . . . . . 7  |-  ( 0  +  1 )  =  1
155153, 154, 1473eqtri 2476 . . . . . 6  |-  ( ( 2  x.  0 )  +  1 )  = ; 0
1
15631, 41, 41, 9, 146, 147, 3, 9, 41, 151, 155decma2c 11024 . . . . 5  |-  ( ( 2  x. ; 3 0 )  +  1 )  = ; 6 1
1573, 42, 2, 145, 3, 9, 156, 65decmul2c 11032 . . . 4  |-  ( 2  x. ;; 3 0 6 )  = ;; 6 1 2
158 eqid 2443 . . . . . 6  |- ; 1 8  = ; 1 8
15911, 32, 57, 117decsuc 11007 . . . . . 6  |-  (;; 1 2 4  +  1 )  = ;; 1 2 5
160 8cn 10627 . . . . . . 7  |-  8  e.  CC
161160, 22, 15addcomli 9775 . . . . . 6  |-  ( 1  +  8 )  =  9
16246, 9, 9, 14, 112, 158, 159, 161decadd 11025 . . . . 5  |-  (;;; 1 2 4 1  + ; 1 8 )  = ;;; 1 2 5 9
163162, 10eqtr4i 2475 . . . 4  |-  (;;; 1 2 4 1  + ; 1 8 )  =  N
16436nn0cni 10813 . . . . . 6  |- ;; 3 2 4  e.  CC
165164addid2i 9771 . . . . 5  |-  ( 0  + ;; 3 2 4 )  = ;; 3 2 4
16670oveq1i 6291 . . . . 5  |-  ( ( 0  x.  N )  + ;; 3 2 4 )  =  ( 0  + ;; 3 2 4 )
1679, 14deccl 10998 . . . . . 6  |- ; 1 8  e.  NN0
1689, 32deccl 10998 . . . . . 6  |- ; 1 4  e.  NN0
169 eqid 2443 . . . . . . 7  |- ; 1 4  = ; 1 4
17022mulid1i 9601 . . . . . . . . 9  |-  ( 1  x.  1 )  =  1
171170, 119oveq12i 6293 . . . . . . . 8  |-  ( ( 1  x.  1 )  +  ( 1  +  1 ) )  =  ( 1  +  2 )
172 1p2e3 10666 . . . . . . . 8  |-  ( 1  +  2 )  =  3
173171, 172eqtri 2472 . . . . . . 7  |-  ( ( 1  x.  1 )  +  ( 1  +  1 ) )  =  3
174160mulid1i 9601 . . . . . . . . 9  |-  ( 8  x.  1 )  =  8
175174oveq1i 6291 . . . . . . . 8  |-  ( ( 8  x.  1 )  +  4 )  =  ( 8  +  4 )
176 8p4e12 11041 . . . . . . . 8  |-  ( 8  +  4 )  = ; 1
2
177175, 176eqtri 2472 . . . . . . 7  |-  ( ( 8  x.  1 )  +  4 )  = ; 1
2
1789, 14, 9, 32, 158, 169, 9, 3, 9, 173, 177decmac 11023 . . . . . 6  |-  ( (; 1
8  x.  1 )  + ; 1 4 )  = ; 3
2
179160mulid2i 9602 . . . . . . . . 9  |-  ( 1  x.  8 )  =  8
180179oveq1i 6291 . . . . . . . 8  |-  ( ( 1  x.  8 )  +  6 )  =  ( 8  +  6 )
181 8p6e14 11043 . . . . . . . 8  |-  ( 8  +  6 )  = ; 1
4
182180, 181eqtri 2472 . . . . . . 7  |-  ( ( 1  x.  8 )  +  6 )  = ; 1
4
183 8t8e64 11078 . . . . . . 7  |-  ( 8  x.  8 )  = ; 6
4
18414, 9, 14, 158, 32, 2, 182, 183decmul1c 11031 . . . . . 6  |-  (; 1 8  x.  8 )  = ;; 1 4 4
185167, 9, 14, 158, 32, 168, 178, 184decmul2c 11032 . . . . 5  |-  (; 1 8  x. ; 1 8 )  = ;; 3 2 4
186165, 166, 1853eqtr4i 2482 . . . 4  |-  ( ( 0  x.  N )  + ;; 3 2 4 )  =  (; 1
8  x. ; 1 8 )
1871, 43, 7, 45, 36, 47, 144, 157, 163, 186mod2xnegi 14434 . . 3  |-  ( ( 2 ^;; 6 1 2 )  mod 
N )  =  (;; 3 2 4  mod 
N )
188101259lem1 14490 . . 3  |-  ( ( 2 ^; 1 7 )  mod 
N )  =  (;; 1 3 6  mod 
N )
189 eqid 2443 . . . 4  |- ;; 6 1 2  = ;; 6 1 2
190 eqid 2443 . . . 4  |- ; 1 7  = ; 1 7
191 eqid 2443 . . . . 5  |- ; 6 1  = ; 6 1
1922, 9, 119, 191decsuc 11007 . . . 4  |-  (; 6 1  +  1 )  = ; 6 2
193 7p2e9 10686 . . . . 5  |-  ( 7  +  2 )  =  9
19458, 59, 193addcomli 9775 . . . 4  |-  ( 2  +  7 )  =  9
19529, 3, 9, 37, 189, 190, 192, 194decadd 11025 . . 3  |-  (;; 6 1 2  + ; 1 7 )  = ;; 6 2 9
19631, 9deccl 10998 . . . . 5  |- ; 3 1  e.  NN0
197 eqid 2443 . . . . . . 7  |- ; 3 1  = ; 3 1
198 3p2e5 10674 . . . . . . . . 9  |-  ( 3  +  2 )  =  5
199104, 59, 198addcomli 9775 . . . . . . . 8  |-  ( 2  +  3 )  =  5
2009, 3, 31, 118, 199decaddi 11028 . . . . . . 7  |-  (; 1 2  +  3 )  = ; 1 5
201 5p1e6 10669 . . . . . . 7  |-  ( 5  +  1 )  =  6
20211, 12, 31, 9, 116, 197, 200, 201decadd 11025 . . . . . 6  |-  (;; 1 2 5  + ; 3 1 )  = ;; 1 5 6
203119oveq1i 6291 . . . . . . . . 9  |-  ( ( 1  +  1 )  +  1 )  =  ( 2  +  1 )
204203, 75eqtri 2472 . . . . . . . 8  |-  ( ( 1  +  1 )  +  1 )  =  3
205 7p5e12 11037 . . . . . . . . 9  |-  ( 7  +  5 )  = ; 1
2
20658, 96, 205addcomli 9775 . . . . . . . 8  |-  ( 5  +  7 )  = ; 1
2
2079, 12, 9, 37, 92, 190, 204, 3, 206decaddc 11026 . . . . . . 7  |-  (; 1 5  + ; 1 7 )  = ; 3
2
208 eqid 2443 . . . . . . . 8  |- ; 3 4  = ; 3 4
209 7p3e10 10687 . . . . . . . . . 10  |-  ( 7  +  3 )  =  10
21058, 104, 209addcomli 9775 . . . . . . . . 9  |-  ( 3  +  7 )  =  10
211210, 86eqtri 2472 . . . . . . . 8  |-  ( 3  +  7 )  = ; 1
0
212104mulid1i 9601 . . . . . . . . . 10  |-  ( 3  x.  1 )  =  3
21322addid1i 9770 . . . . . . . . . 10  |-  ( 1  +  0 )  =  1
214212, 213oveq12i 6293 . . . . . . . . 9  |-  ( ( 3  x.  1 )  +  ( 1  +  0 ) )  =  ( 3  +  1 )
215 3p1e4 10667 . . . . . . . . 9  |-  ( 3  +  1 )  =  4
216214, 215eqtri 2472 . . . . . . . 8  |-  ( ( 3  x.  1 )  +  ( 1  +  0 ) )  =  4
217 4cn 10619 . . . . . . . . . . 11  |-  4  e.  CC
218217mulid1i 9601 . . . . . . . . . 10  |-  ( 4  x.  1 )  =  4
219218oveq1i 6291 . . . . . . . . 9  |-  ( ( 4  x.  1 )  +  0 )  =  ( 4  +  0 )
220217addid1i 9770 . . . . . . . . 9  |-  ( 4  +  0 )  =  4
22132dec0h 11000 . . . . . . . . 9  |-  4  = ; 0 4
222219, 220, 2213eqtri 2476 . . . . . . . 8  |-  ( ( 4  x.  1 )  +  0 )  = ; 0
4
22331, 32, 9, 41, 208, 211, 9, 32, 41, 216, 222decmac 11023 . . . . . . 7  |-  ( (; 3
4  x.  1 )  +  ( 3  +  7 ) )  = ; 4
4
2243dec0h 11000 . . . . . . . 8  |-  2  = ; 0 2
225105, 154oveq12i 6293 . . . . . . . . 9  |-  ( ( 3  x.  2 )  +  ( 0  +  1 ) )  =  ( 6  +  1 )
226 6p1e7 10670 . . . . . . . . 9  |-  ( 6  +  1 )  =  7
227225, 226eqtri 2472 . . . . . . . 8  |-  ( ( 3  x.  2 )  +  ( 0  +  1 ) )  =  7
228 4t2e8 10695 . . . . . . . . . 10  |-  ( 4  x.  2 )  =  8
229228oveq1i 6291 . . . . . . . . 9  |-  ( ( 4  x.  2 )  +  2 )  =  ( 8  +  2 )
230 8p2e10 10688 . . . . . . . . 9  |-  ( 8  +  2 )  =  10
231229, 230, 863eqtri 2476 . . . . . . . 8  |-  ( ( 4  x.  2 )  +  2 )  = ; 1
0
23231, 32, 41, 3, 208, 224, 3, 41, 9, 227, 231decmac 11023 . . . . . . 7  |-  ( (; 3
4  x.  2 )  +  2 )  = ; 7
0
2339, 3, 31, 3, 118, 207, 33, 41, 37, 223, 232decma2c 11024 . . . . . 6  |-  ( (; 3
4  x. ; 1 2 )  +  (; 1 5  + ; 1 7 ) )  = ;; 4 4 0
23459addid2i 9771 . . . . . . . . 9  |-  ( 0  +  2 )  =  2
235234oveq2i 6292 . . . . . . . 8  |-  ( ( 3  x.  5 )  +  ( 0  +  2 ) )  =  ( ( 3  x.  5 )  +  2 )
236 5t3e15 11058 . . . . . . . . . 10  |-  ( 5  x.  3 )  = ; 1
5
23796, 104, 236mulcomli 9606 . . . . . . . . 9  |-  ( 3  x.  5 )  = ; 1
5
238 5p2e7 10679 . . . . . . . . 9  |-  ( 5  +  2 )  =  7
2399, 12, 3, 237, 238decaddi 11028 . . . . . . . 8  |-  ( ( 3  x.  5 )  +  2 )  = ; 1
7
240235, 239eqtri 2472 . . . . . . 7  |-  ( ( 3  x.  5 )  +  ( 0  +  2 ) )  = ; 1
7
241 5t4e20 11059 . . . . . . . . 9  |-  ( 5  x.  4 )  = ; 2
0
24296, 217, 241mulcomli 9606 . . . . . . . 8  |-  ( 4  x.  5 )  = ; 2
0
24363addid2i 9771 . . . . . . . 8  |-  ( 0  +  6 )  =  6
2443, 41, 2, 242, 243decaddi 11028 . . . . . . 7  |-  ( ( 4  x.  5 )  +  6 )  = ; 2
6
24531, 32, 41, 2, 208, 107, 12, 2, 3, 240, 244decmac 11023 . . . . . 6  |-  ( (; 3
4  x.  5 )  +  6 )  = ;; 1 7 6
24611, 12, 48, 2, 116, 202, 33, 2, 38, 233, 245decma2c 11024 . . . . 5  |-  ( (; 3
4  x. ;; 1 2 5 )  +  (;; 1 2 5  + ; 3 1 ) )  = ;;; 4 4 0 6
24714dec0h 11000 . . . . . 6  |-  8  = ; 0 8
248217addid2i 9771 . . . . . . . 8  |-  ( 0  +  4 )  =  4
249248oveq2i 6292 . . . . . . 7  |-  ( ( 3  x.  9 )  +  ( 0  +  4 ) )  =  ( ( 3  x.  9 )  +  4 )
250 9cn 10629 . . . . . . . . 9  |-  9  e.  CC
251 9t3e27 11080 . . . . . . . . 9  |-  ( 9  x.  3 )  = ; 2
7
252250, 104, 251mulcomli 9606 . . . . . . . 8  |-  ( 3  x.  9 )  = ; 2
7
253 7p4e11 11036 . . . . . . . 8  |-  ( 7  +  4 )  = ; 1
1
2543, 37, 32, 252, 75, 9, 253decaddci 11029 . . . . . . 7  |-  ( ( 3  x.  9 )  +  4 )  = ; 3
1
255249, 254eqtri 2472 . . . . . 6  |-  ( ( 3  x.  9 )  +  ( 0  +  4 ) )  = ; 3
1
256 9t4e36 11081 . . . . . . . 8  |-  ( 9  x.  4 )  = ; 3
6
257250, 217, 256mulcomli 9606 . . . . . . 7  |-  ( 4  x.  9 )  = ; 3
6
258160, 63, 181addcomli 9775 . . . . . . 7  |-  ( 6  +  8 )  = ; 1
4
25931, 2, 14, 257, 215, 32, 258decaddci 11029 . . . . . 6  |-  ( ( 4  x.  9 )  +  8 )  = ; 4
4
26031, 32, 41, 14, 208, 247, 5, 32, 32, 255, 259decmac 11023 . . . . 5  |-  ( (; 3
4  x.  9 )  +  8 )  = ;; 3 1 4
26113, 5, 13, 14, 10, 24, 33, 32, 196, 246, 260decma2c 11024 . . . 4  |-  ( (; 3
4  x.  N )  +  ( N  - 
1 ) )  = ;;;; 4 4 0 6 4
262 eqid 2443 . . . . 5  |- ;; 1 3 6  = ;; 1 3 6
2639, 5deccl 10998 . . . . . 6  |- ; 1 9  e.  NN0
264263, 32deccl 10998 . . . . 5  |- ;; 1 9 4  e.  NN0
265 eqid 2443 . . . . . 6  |- ; 1 3  = ; 1 3
266 eqid 2443 . . . . . 6  |- ;; 1 9 4  = ;; 1 9 4
2675, 37deccl 10998 . . . . . 6  |- ; 9 7  e.  NN0
2689, 9deccl 10998 . . . . . . 7  |- ; 1 1  e.  NN0
269 eqid 2443 . . . . . . 7  |- ;; 3 2 4  = ;; 3 2 4
270 eqid 2443 . . . . . . . 8  |- ; 1 9  = ; 1 9
271 eqid 2443 . . . . . . . 8  |- ; 9 7  = ; 9 7
272250, 22, 125addcomli 9775 . . . . . . . . . 10  |-  ( 1  +  9 )  =  10
273272, 86eqtri 2472 . . . . . . . . 9  |-  ( 1  +  9 )  = ; 1
0
2749, 41, 154, 273decsuc 11007 . . . . . . . 8  |-  ( ( 1  +  9 )  +  1 )  = ; 1
1
275 9p7e16 11051 . . . . . . . 8  |-  ( 9  +  7 )  = ; 1
6
2769, 5, 5, 37, 270, 271, 274, 2, 275decaddc 11026 . . . . . . 7  |-  (; 1 9  + ; 9 7 )  = ;; 1 1 6
277 eqid 2443 . . . . . . . 8  |- ; 3 2  = ; 3 2
278 eqid 2443 . . . . . . . . 9  |- ; 1 1  = ; 1 1
2799, 9, 119, 278decsuc 11007 . . . . . . . 8  |-  (; 1 1  +  1 )  = ; 1 2
28093oveq1i 6291 . . . . . . . . 9  |-  ( ( 2  x.  1 )  +  2 )  =  ( 2  +  2 )
281280, 120, 2213eqtri 2476 . . . . . . . 8  |-  ( ( 2  x.  1 )  +  2 )  = ; 0
4
28231, 3, 9, 3, 277, 279, 9, 32, 41, 216, 281decmac 11023 . . . . . . 7  |-  ( (; 3
2  x.  1 )  +  (; 1 1  +  1 ) )  = ; 4 4
283218oveq1i 6291 . . . . . . . 8  |-  ( ( 4  x.  1 )  +  6 )  =  ( 4  +  6 )
284 6p4e10 10685 . . . . . . . . 9  |-  ( 6  +  4 )  =  10
28563, 217, 284addcomli 9775 . . . . . . . 8  |-  ( 4  +  6 )  =  10
286283, 285, 863eqtri 2476 . . . . . . 7  |-  ( ( 4  x.  1 )  +  6 )  = ; 1
0
28735, 32, 268, 2, 269, 276, 9, 41, 9, 282, 286decmac 11023 . . . . . 6  |-  ( (;; 3 2 4  x.  1 )  +  (; 1
9  + ; 9 7 ) )  = ;; 4 4 0
288154, 147eqtri 2472 . . . . . . . 8  |-  ( 0  +  1 )  = ; 0
1
289 3t3e9 10694 . . . . . . . . . 10  |-  ( 3  x.  3 )  =  9
290289, 148oveq12i 6293 . . . . . . . . 9  |-  ( ( 3  x.  3 )  +  ( 0  +  0 ) )  =  ( 9  +  0 )
291250addid1i 9770 . . . . . . . . 9  |-  ( 9  +  0 )  =  9
292290, 291eqtri 2472 . . . . . . . 8  |-  ( ( 3  x.  3 )  +  ( 0  +  0 ) )  =  9
293106oveq1i 6291 . . . . . . . . 9  |-  ( ( 2  x.  3 )  +  1 )  =  ( 6  +  1 )
29437dec0h 11000 . . . . . . . . 9  |-  7  = ; 0 7
295293, 226, 2943eqtri 2476 . . . . . . . 8  |-  ( ( 2  x.  3 )  +  1 )  = ; 0
7
29631, 3, 41, 9, 277, 288, 31, 37, 41, 292, 295decmac 11023 . . . . . . 7  |-  ( (; 3
2  x.  3 )  +  ( 0  +  1 ) )  = ; 9
7
297 4t3e12 11056 . . . . . . . 8  |-  ( 4  x.  3 )  = ; 1
2
298 4p2e6 10676 . . . . . . . . 9  |-  ( 4  +  2 )  =  6
299217, 59, 298addcomli 9775 . . . . . . . 8  |-  ( 2  +  4 )  =  6
3009, 3, 32, 297, 299decaddi 11028 . . . . . . 7  |-  ( ( 4  x.  3 )  +  4 )  = ; 1
6
30135, 32, 41, 32, 269, 221, 31, 2, 9, 296, 300decmac 11023 . . . . . 6  |-  ( (;; 3 2 4  x.  3 )  +  4 )  = ;; 9 7 6
3029, 31, 263, 32, 265, 266, 36, 2, 267, 287, 301decma2c 11024 . . . . 5  |-  ( (;; 3 2 4  x. ; 1
3 )  + ;; 1 9 4 )  = ;;; 4 4 0 6
303154oveq2i 6292 . . . . . . . 8  |-  ( ( 3  x.  6 )  +  ( 0  +  1 ) )  =  ( ( 3  x.  6 )  +  1 )
304 6t3e18 11062 . . . . . . . . . 10  |-  ( 6  x.  3 )  = ; 1
8
30563, 104, 304mulcomli 9606 . . . . . . . . 9  |-  ( 3  x.  6 )  = ; 1
8
3069, 14, 15, 305decsuc 11007 . . . . . . . 8  |-  ( ( 3  x.  6 )  +  1 )  = ; 1
9
307303, 306eqtri 2472 . . . . . . 7  |-  ( ( 3  x.  6 )  +  ( 0  +  1 ) )  = ; 1
9
3089, 3, 3, 65, 120decaddi 11028 . . . . . . 7  |-  ( ( 2  x.  6 )  +  2 )  = ; 1
4
30931, 3, 41, 3, 277, 224, 2, 32, 9, 307, 308decmac 11023 . . . . . 6  |-  ( (; 3
2  x.  6 )  +  2 )  = ;; 1 9 4
310 6t4e24 11063 . . . . . . 7  |-  ( 6  x.  4 )  = ; 2
4
31163, 217, 310mulcomli 9606 . . . . . 6  |-  ( 4  x.  6 )  = ; 2
4
3122, 35, 32, 269, 32, 3, 309, 311decmul1c 11031 . . . . 5  |-  (;; 3 2 4  x.  6 )  = ;;; 1 9 4 4
31336, 39, 2, 262, 32, 264, 302, 312decmul2c 11032 . . . 4  |-  (;; 3 2 4  x. ;; 1 3 6 )  = ;;;; 4 4 0 6 4
314261, 313eqtr4i 2475 . . 3  |-  ( (; 3
4  x.  N )  +  ( N  - 
1 ) )  =  (;; 3 2 4  x. ;; 1 3 6 )
31528, 1, 30, 34, 36, 25, 38, 40, 187, 188, 195, 314modxai 14431 . 2  |-  ( ( 2 ^;; 6 2 9 )  mod 
N )  =  ( ( N  -  1 )  mod  N )
316 eqid 2443 . . . 4  |- ;; 6 2 9  = ;; 6 2 9
317 eqid 2443 . . . . 5  |- ; 6 2  = ; 6 2
318148oveq2i 6292 . . . . . 6  |-  ( ( 2  x.  6 )  +  ( 0  +  0 ) )  =  ( ( 2  x.  6 )  +  0 )
31965oveq1i 6291 . . . . . 6  |-  ( ( 2  x.  6 )  +  0 )  =  (; 1 2  +  0 )
32011nn0cni 10813 . . . . . . 7  |- ; 1 2  e.  CC
321320addid1i 9770 . . . . . 6  |-  (; 1 2  +  0 )  = ; 1 2
322318, 319, 3213eqtri 2476 . . . . 5  |-  ( ( 2  x.  6 )  +  ( 0  +  0 ) )  = ; 1
2
32312dec0h 11000 . . . . . 6  |-  5  = ; 0 5
32483, 57, 3233eqtri 2476 . . . . 5  |-  ( ( 2  x.  2 )  +  1 )  = ; 0
5
3252, 3, 41, 9, 317, 147, 3, 12, 41, 322, 324decma2c 11024 . . . 4  |-  ( ( 2  x. ; 6 2 )  +  1 )  = ;; 1 2 5
326 9t2e18 11079 . . . . 5  |-  ( 9  x.  2 )  = ; 1
8
327250, 59, 326mulcomli 9606 . . . 4  |-  ( 2  x.  9 )  = ; 1
8
3283, 4, 5, 316, 14, 9, 325, 327decmul2c 11032 . . 3  |-  ( 2  x. ;; 6 2 9 )  = ;;; 1 2 5 8
329328, 24eqtr4i 2475 . 2  |-  ( 2  x. ;; 6 2 9 )  =  ( N  -  1 )
330 npcan 9834 . . 3  |-  ( ( N  e.  CC  /\  1  e.  CC )  ->  ( ( N  - 
1 )  +  1 )  =  N )
33169, 22, 330mp2an 672 . 2  |-  ( ( N  -  1 )  +  1 )  =  N
33270oveq1i 6291 . . 3  |-  ( ( 0  x.  N )  +  1 )  =  ( 0  +  1 )
333154, 332, 1703eqtr4i 2482 . 2  |-  ( ( 0  x.  N )  +  1 )  =  ( 1  x.  1 )
3341, 6, 7, 8, 9, 25, 315, 329, 331, 333mod2xnegi 14434 1  |-  ( ( 2 ^ ( N  -  1 ) )  mod  N )  =  ( 1  mod  N
)
Colors of variables: wff setvar class
Syntax hints:    = wceq 1383    e. wcel 1804  (class class class)co 6281   CCcc 9493   0cc0 9495   1c1 9496    + caddc 9498    x. cmul 9500    - cmin 9810   NNcn 10542   2c2 10591   3c3 10592   4c4 10593   5c5 10594   6c6 10595   7c7 10596   8c8 10597   9c9 10598   10c10 10599   NN0cn0 10801  ;cdc 10984    mod cmo 11975   ^cexp 12145
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1605  ax-4 1618  ax-5 1691  ax-6 1734  ax-7 1776  ax-8 1806  ax-9 1808  ax-10 1823  ax-11 1828  ax-12 1840  ax-13 1985  ax-ext 2421  ax-sep 4558  ax-nul 4566  ax-pow 4615  ax-pr 4676  ax-un 6577  ax-cnex 9551  ax-resscn 9552  ax-1cn 9553  ax-icn 9554  ax-addcl 9555  ax-addrcl 9556  ax-mulcl 9557  ax-mulrcl 9558  ax-mulcom 9559  ax-addass 9560  ax-mulass 9561  ax-distr 9562  ax-i2m1 9563  ax-1ne0 9564  ax-1rid 9565  ax-rnegex 9566  ax-rrecex 9567  ax-cnre 9568  ax-pre-lttri 9569  ax-pre-lttrn 9570  ax-pre-ltadd 9571  ax-pre-mulgt0 9572  ax-pre-sup 9573
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3or 975  df-3an 976  df-tru 1386  df-ex 1600  df-nf 1604  df-sb 1727  df-eu 2272  df-mo 2273  df-clab 2429  df-cleq 2435  df-clel 2438  df-nfc 2593  df-ne 2640  df-nel 2641  df-ral 2798  df-rex 2799  df-reu 2800  df-rmo 2801  df-rab 2802  df-v 3097  df-sbc 3314  df-csb 3421  df-dif 3464  df-un 3466  df-in 3468  df-ss 3475  df-pss 3477  df-nul 3771  df-if 3927  df-pw 3999  df-sn 4015  df-pr 4017  df-tp 4019  df-op 4021  df-uni 4235  df-iun 4317  df-br 4438  df-opab 4496  df-mpt 4497  df-tr 4531  df-eprel 4781  df-id 4785  df-po 4790  df-so 4791  df-fr 4828  df-we 4830  df-ord 4871  df-on 4872  df-lim 4873  df-suc 4874  df-xp 4995  df-rel 4996  df-cnv 4997  df-co 4998  df-dm 4999  df-rn 5000  df-res 5001  df-ima 5002  df-iota 5541  df-fun 5580  df-fn 5581  df-f 5582  df-f1 5583  df-fo 5584  df-f1o 5585  df-fv 5586  df-riota 6242  df-ov 6284  df-oprab 6285  df-mpt2 6286  df-om 6686  df-2nd 6786  df-recs 7044  df-rdg 7078  df-er 7313  df-en 7519  df-dom 7520  df-sdom 7521  df-sup 7903  df-pnf 9633  df-mnf 9634  df-xr 9635  df-ltxr 9636  df-le 9637  df-sub 9812  df-neg 9813  df-div 10213  df-nn 10543  df-2 10600  df-3 10601  df-4 10602  df-5 10603  df-6 10604  df-7 10605  df-8 10606  df-9 10607  df-10 10608  df-n0 10802  df-z 10871  df-dec 10985  df-uz 11091  df-rp 11230  df-fl 11908  df-mod 11976  df-seq 12087  df-exp 12146
This theorem is referenced by:  1259prm  14495
  Copyright terms: Public domain W3C validator