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

Theorem 4001lem3 14832
Description: Lemma for 4001prm 14834. Calculate a power mod. In decimal, we calculate  2 ^ 1 0 0 0  =  2 ^ 8 0 0  x.  2 ^ 2 0 0  ==  2 3 1 1  x.  9 0 2  =  5 2 1 N  +  1 and finally  2 ^ ( N  -  1 )  =  ( 2 ^ 1 0 0 0 ) ^ 4  ==  1 ^ 4  =  1. (Contributed by Mario Carneiro, 3-Mar-2014.) (Revised by Mario Carneiro, 20-Apr-2015.)
Hypothesis
Ref Expression
4001prm.1  |-  N  = ;;; 4 0 0 1
Assertion
Ref Expression
4001lem3  |-  ( ( 2 ^ ( N  -  1 ) )  mod  N )  =  ( 1  mod  N
)

Proof of Theorem 4001lem3
StepHypRef Expression
1 4001prm.1 . . 3  |-  N  = ;;; 4 0 0 1
2 4nn0 10854 . . . . . 6  |-  4  e.  NN0
3 0nn0 10850 . . . . . 6  |-  0  e.  NN0
42, 3deccl 11032 . . . . 5  |- ; 4 0  e.  NN0
54, 3deccl 11032 . . . 4  |- ;; 4 0 0  e.  NN0
6 1nn 10586 . . . 4  |-  1  e.  NN
75, 6decnncl 11031 . . 3  |- ;;; 4 0 0 1  e.  NN
81, 7eqeltri 2486 . 2  |-  N  e.  NN
9 2nn 10733 . 2  |-  2  e.  NN
10 2nn0 10852 . . . . 5  |-  2  e.  NN0
1110, 3deccl 11032 . . . 4  |- ; 2 0  e.  NN0
1211, 3deccl 11032 . . 3  |- ;; 2 0 0  e.  NN0
1312, 3deccl 11032 . 2  |- ;;; 2 0 0 0  e.  NN0
14 0z 10915 . 2  |-  0  e.  ZZ
15 1nn0 10851 . 2  |-  1  e.  NN0
16 10nn0 10860 . . . . 5  |-  10  e.  NN0
1716, 3deccl 11032 . . . 4  |- ; 10 0  e.  NN0
1817, 3deccl 11032 . . 3  |- ;; 10 0 0  e.  NN0
19 8nn0 10858 . . . . . 6  |-  8  e.  NN0
2019, 3deccl 11032 . . . . 5  |- ; 8 0  e.  NN0
2120, 3deccl 11032 . . . 4  |- ;; 8 0 0  e.  NN0
22 5nn0 10855 . . . . . . 7  |-  5  e.  NN0
2322, 10deccl 11032 . . . . . 6  |- ; 5 2  e.  NN0
2423, 15deccl 11032 . . . . 5  |- ;; 5 2 1  e.  NN0
2524nn0zi 10929 . . . 4  |- ;; 5 2 1  e.  ZZ
26 3nn0 10853 . . . . . . 7  |-  3  e.  NN0
2710, 26deccl 11032 . . . . . 6  |- ; 2 3  e.  NN0
2827, 15deccl 11032 . . . . 5  |- ;; 2 3 1  e.  NN0
2928, 15deccl 11032 . . . 4  |- ;;; 2 3 1 1  e.  NN0
30 9nn0 10859 . . . . . 6  |-  9  e.  NN0
3130, 3deccl 11032 . . . . 5  |- ; 9 0  e.  NN0
3231, 10deccl 11032 . . . 4  |- ;; 9 0 2  e.  NN0
3314001lem2 14831 . . . 4  |-  ( ( 2 ^;; 8 0 0 )  mod 
N )  =  (;;; 2 3 1 1  mod 
N )
3414001lem1 14830 . . . 4  |-  ( ( 2 ^;; 2 0 0 )  mod 
N )  =  (;; 9 0 2  mod 
N )
35 eqid 2402 . . . . 5  |- ;; 8 0 0  = ;; 8 0 0
36 eqid 2402 . . . . 5  |- ;; 2 0 0  = ;; 2 0 0
37 eqid 2402 . . . . . 6  |- ; 8 0  = ; 8 0
38 eqid 2402 . . . . . 6  |- ; 2 0  = ; 2 0
39 8p2e10 10722 . . . . . 6  |-  ( 8  +  2 )  =  10
40 00id 9788 . . . . . 6  |-  ( 0  +  0 )  =  0
4119, 3, 10, 3, 37, 38, 39, 40decadd 11059 . . . . 5  |-  (; 8 0  + ; 2 0 )  = ; 10 0
4220, 3, 11, 3, 35, 36, 41, 40decadd 11059 . . . 4  |-  (;; 8 0 0  + ;; 2 0 0 )  = ;; 10 0 0
4315dec0h 11034 . . . . . 6  |-  1  = ; 0 1
44 eqid 2402 . . . . . . 7  |- ;; 4 0 0  = ;; 4 0 0
4523nn0cni 10847 . . . . . . . 8  |- ; 5 2  e.  CC
4645addid2i 9801 . . . . . . 7  |-  ( 0  + ; 5 2 )  = ; 5
2
47 eqid 2402 . . . . . . . 8  |- ; 4 0  = ; 4 0
48 5cn 10655 . . . . . . . . . 10  |-  5  e.  CC
4948addid1i 9800 . . . . . . . . 9  |-  ( 5  +  0 )  =  5
5022dec0h 11034 . . . . . . . . 9  |-  5  = ; 0 5
5149, 50eqtri 2431 . . . . . . . 8  |-  ( 5  +  0 )  = ; 0
5
52 eqid 2402 . . . . . . . . 9  |- ;; 5 2 1  = ;; 5 2 1
533dec0h 11034 . . . . . . . . . 10  |-  0  = ; 0 0
5440, 53eqtri 2431 . . . . . . . . 9  |-  ( 0  +  0 )  = ; 0
0
55 eqid 2402 . . . . . . . . . 10  |- ; 5 2  = ; 5 2
56 5t4e20 11093 . . . . . . . . . . . 12  |-  ( 5  x.  4 )  = ; 2
0
5756oveq1i 6287 . . . . . . . . . . 11  |-  ( ( 5  x.  4 )  +  0 )  =  (; 2 0  +  0 )
5811nn0cni 10847 . . . . . . . . . . . 12  |- ; 2 0  e.  CC
5958addid1i 9800 . . . . . . . . . . 11  |-  (; 2 0  +  0 )  = ; 2 0
6057, 59eqtri 2431 . . . . . . . . . 10  |-  ( ( 5  x.  4 )  +  0 )  = ; 2
0
61 4cn 10653 . . . . . . . . . . . . 13  |-  4  e.  CC
62 2cn 10646 . . . . . . . . . . . . 13  |-  2  e.  CC
63 4t2e8 10729 . . . . . . . . . . . . 13  |-  ( 4  x.  2 )  =  8
6461, 62, 63mulcomli 9632 . . . . . . . . . . . 12  |-  ( 2  x.  4 )  =  8
6564oveq1i 6287 . . . . . . . . . . 11  |-  ( ( 2  x.  4 )  +  0 )  =  ( 8  +  0 )
66 8cn 10661 . . . . . . . . . . . 12  |-  8  e.  CC
6766addid1i 9800 . . . . . . . . . . 11  |-  ( 8  +  0 )  =  8
6865, 67eqtri 2431 . . . . . . . . . 10  |-  ( ( 2  x.  4 )  +  0 )  =  8
6922, 10, 3, 3, 55, 54, 2, 60, 68decma 11056 . . . . . . . . 9  |-  ( (; 5
2  x.  4 )  +  ( 0  +  0 ) )  = ;; 2 0 8
7061mulid2i 9628 . . . . . . . . . . 11  |-  ( 1  x.  4 )  =  4
7170oveq1i 6287 . . . . . . . . . 10  |-  ( ( 1  x.  4 )  +  0 )  =  ( 4  +  0 )
7261addid1i 9800 . . . . . . . . . 10  |-  ( 4  +  0 )  =  4
732dec0h 11034 . . . . . . . . . 10  |-  4  = ; 0 4
7471, 72, 733eqtri 2435 . . . . . . . . 9  |-  ( ( 1  x.  4 )  +  0 )  = ; 0
4
7523, 15, 3, 3, 52, 54, 2, 2, 3, 69, 74decmac 11057 . . . . . . . 8  |-  ( (;; 5 2 1  x.  4 )  +  ( 0  +  0 ) )  = ;;; 2 0 8 4
7624nn0cni 10847 . . . . . . . . . . 11  |- ;; 5 2 1  e.  CC
7776mul01i 9803 . . . . . . . . . 10  |-  (;; 5 2 1  x.  0 )  =  0
7877oveq1i 6287 . . . . . . . . 9  |-  ( (;; 5 2 1  x.  0 )  +  5 )  =  ( 0  +  5 )
7948addid2i 9801 . . . . . . . . 9  |-  ( 0  +  5 )  =  5
8078, 79, 503eqtri 2435 . . . . . . . 8  |-  ( (;; 5 2 1  x.  0 )  +  5 )  = ; 0 5
812, 3, 3, 22, 47, 51, 24, 22, 3, 75, 80decma2c 11058 . . . . . . 7  |-  ( (;; 5 2 1  x. ; 4
0 )  +  ( 5  +  0 ) )  = ;;;; 2 0 8 4 5
8277oveq1i 6287 . . . . . . . 8  |-  ( (;; 5 2 1  x.  0 )  +  2 )  =  ( 0  +  2 )
8362addid2i 9801 . . . . . . . 8  |-  ( 0  +  2 )  =  2
8410dec0h 11034 . . . . . . . 8  |-  2  = ; 0 2
8582, 83, 843eqtri 2435 . . . . . . 7  |-  ( (;; 5 2 1  x.  0 )  +  2 )  = ; 0 2
864, 3, 22, 10, 44, 46, 24, 10, 3, 81, 85decma2c 11058 . . . . . 6  |-  ( (;; 5 2 1  x. ;; 4 0 0 )  +  ( 0  + ; 5
2 ) )  = ;;;;; 2 0 8 4 5 2
8748mulid1i 9627 . . . . . . . . . 10  |-  ( 5  x.  1 )  =  5
8887, 40oveq12i 6289 . . . . . . . . 9  |-  ( ( 5  x.  1 )  +  ( 0  +  0 ) )  =  ( 5  +  0 )
8988, 49eqtri 2431 . . . . . . . 8  |-  ( ( 5  x.  1 )  +  ( 0  +  0 ) )  =  5
9062mulid1i 9627 . . . . . . . . . 10  |-  ( 2  x.  1 )  =  2
9190oveq1i 6287 . . . . . . . . 9  |-  ( ( 2  x.  1 )  +  0 )  =  ( 2  +  0 )
9262addid1i 9800 . . . . . . . . 9  |-  ( 2  +  0 )  =  2
9391, 92, 843eqtri 2435 . . . . . . . 8  |-  ( ( 2  x.  1 )  +  0 )  = ; 0
2
9422, 10, 3, 3, 55, 54, 15, 10, 3, 89, 93decmac 11057 . . . . . . 7  |-  ( (; 5
2  x.  1 )  +  ( 0  +  0 ) )  = ; 5
2
95 ax-1cn 9579 . . . . . . . . . 10  |-  1  e.  CC
9695mulid2i 9628 . . . . . . . . 9  |-  ( 1  x.  1 )  =  1
9796oveq1i 6287 . . . . . . . 8  |-  ( ( 1  x.  1 )  +  1 )  =  ( 1  +  1 )
98 1p1e2 10689 . . . . . . . 8  |-  ( 1  +  1 )  =  2
9997, 98, 843eqtri 2435 . . . . . . 7  |-  ( ( 1  x.  1 )  +  1 )  = ; 0
2
10023, 15, 3, 15, 52, 43, 15, 10, 3, 94, 99decmac 11057 . . . . . 6  |-  ( (;; 5 2 1  x.  1 )  +  1 )  = ;; 5 2 2
1015, 15, 3, 15, 1, 43, 24, 10, 23, 86, 100decma2c 11058 . . . . 5  |-  ( (;; 5 2 1  x.  N )  +  1 )  = ;;;;;; 2 0 8 4 5 2 2
102 eqid 2402 . . . . . 6  |- ;; 9 0 2  = ;; 9 0 2
103 6nn0 10856 . . . . . . . 8  |-  6  e.  NN0
1042, 103deccl 11032 . . . . . . 7  |- ; 4 6  e.  NN0
105104, 10deccl 11032 . . . . . 6  |- ;; 4 6 2  e.  NN0
106 eqid 2402 . . . . . . 7  |- ; 9 0  = ; 9 0
107 eqid 2402 . . . . . . 7  |- ;; 4 6 2  = ;; 4 6 2
108 eqid 2402 . . . . . . . 8  |- ;;; 2 3 1 1  = ;;; 2 3 1 1
109104nn0cni 10847 . . . . . . . . 9  |- ; 4 6  e.  CC
110109addid1i 9800 . . . . . . . 8  |-  (; 4 6  +  0 )  = ; 4 6
111 eqid 2402 . . . . . . . . 9  |- ;; 2 3 1  = ;; 2 3 1
112 4p1e5 10702 . . . . . . . . . 10  |-  ( 4  +  1 )  =  5
113112, 50eqtri 2431 . . . . . . . . 9  |-  ( 4  +  1 )  = ; 0
5
114 eqid 2402 . . . . . . . . . 10  |- ; 2 3  = ; 2 3
11595addid2i 9801 . . . . . . . . . . 11  |-  ( 0  +  1 )  =  1
116115, 43eqtri 2431 . . . . . . . . . 10  |-  ( 0  +  1 )  = ; 0
1
11783oveq2i 6288 . . . . . . . . . . 11  |-  ( ( 2  x.  9 )  +  ( 0  +  2 ) )  =  ( ( 2  x.  9 )  +  2 )
118 9cn 10663 . . . . . . . . . . . . 13  |-  9  e.  CC
119 9t2e18 11113 . . . . . . . . . . . . 13  |-  ( 9  x.  2 )  = ; 1
8
120118, 62, 119mulcomli 9632 . . . . . . . . . . . 12  |-  ( 2  x.  9 )  = ; 1
8
12115, 19, 10, 120, 98, 39decaddci2 11064 . . . . . . . . . . 11  |-  ( ( 2  x.  9 )  +  2 )  = ; 2
0
122117, 121eqtri 2431 . . . . . . . . . 10  |-  ( ( 2  x.  9 )  +  ( 0  +  2 ) )  = ; 2
0
123 7nn0 10857 . . . . . . . . . . 11  |-  7  e.  NN0
124 7p1e8 10705 . . . . . . . . . . 11  |-  ( 7  +  1 )  =  8
125 3cn 10650 . . . . . . . . . . . 12  |-  3  e.  CC
126 9t3e27 11114 . . . . . . . . . . . 12  |-  ( 9  x.  3 )  = ; 2
7
127118, 125, 126mulcomli 9632 . . . . . . . . . . 11  |-  ( 3  x.  9 )  = ; 2
7
12810, 123, 124, 127decsuc 11041 . . . . . . . . . 10  |-  ( ( 3  x.  9 )  +  1 )  = ; 2
8
12910, 26, 3, 15, 114, 116, 30, 19, 10, 122, 128decmac 11057 . . . . . . . . 9  |-  ( (; 2
3  x.  9 )  +  ( 0  +  1 ) )  = ;; 2 0 8
130118mulid2i 9628 . . . . . . . . . . 11  |-  ( 1  x.  9 )  =  9
131130oveq1i 6287 . . . . . . . . . 10  |-  ( ( 1  x.  9 )  +  5 )  =  ( 9  +  5 )
132 9p5e14 11083 . . . . . . . . . 10  |-  ( 9  +  5 )  = ; 1
4
133131, 132eqtri 2431 . . . . . . . . 9  |-  ( ( 1  x.  9 )  +  5 )  = ; 1
4
13427, 15, 3, 22, 111, 113, 30, 2, 15, 129, 133decmac 11057 . . . . . . . 8  |-  ( (;; 2 3 1  x.  9 )  +  ( 4  +  1 ) )  = ;;; 2 0 8 4
135130oveq1i 6287 . . . . . . . . 9  |-  ( ( 1  x.  9 )  +  6 )  =  ( 9  +  6 )
136 9p6e15 11084 . . . . . . . . 9  |-  ( 9  +  6 )  = ; 1
5
137135, 136eqtri 2431 . . . . . . . 8  |-  ( ( 1  x.  9 )  +  6 )  = ; 1
5
13828, 15, 2, 103, 108, 110, 30, 22, 15, 134, 137decmac 11057 . . . . . . 7  |-  ( (;;; 2 3 1 1  x.  9 )  +  (; 4
6  +  0 ) )  = ;;;; 2 0 8 4 5
13929nn0cni 10847 . . . . . . . . . 10  |- ;;; 2 3 1 1  e.  CC
140139mul01i 9803 . . . . . . . . 9  |-  (;;; 2 3 1 1  x.  0 )  =  0
141140oveq1i 6287 . . . . . . . 8  |-  ( (;;; 2 3 1 1  x.  0 )  +  2 )  =  ( 0  +  2 )
142141, 83, 843eqtri 2435 . . . . . . 7  |-  ( (;;; 2 3 1 1  x.  0 )  +  2 )  = ; 0 2
14330, 3, 104, 10, 106, 107, 29, 10, 3, 138, 142decma2c 11058 . . . . . 6  |-  ( (;;; 2 3 1 1  x. ; 9
0 )  + ;; 4 6 2 )  = ;;;;; 2 0 8 4 5 2
144 2t2e4 10725 . . . . . . . . . . . . . . 15  |-  ( 2  x.  2 )  =  4
145144oveq1i 6287 . . . . . . . . . . . . . 14  |-  ( ( 2  x.  2 )  +  0 )  =  ( 4  +  0 )
146145, 72eqtri 2431 . . . . . . . . . . . . 13  |-  ( ( 2  x.  2 )  +  0 )  =  4
147 3t2e6 10727 . . . . . . . . . . . . . 14  |-  ( 3  x.  2 )  =  6
148103dec0h 11034 . . . . . . . . . . . . . 14  |-  6  = ; 0 6
149147, 148eqtri 2431 . . . . . . . . . . . . 13  |-  ( 3  x.  2 )  = ; 0
6
15010, 10, 26, 114, 103, 3, 146, 149decmul1c 11065 . . . . . . . . . . . 12  |-  (; 2 3  x.  2 )  = ; 4 6
151150oveq1i 6287 . . . . . . . . . . 11  |-  ( (; 2
3  x.  2 )  +  0 )  =  (; 4 6  +  0 )
152151, 110eqtri 2431 . . . . . . . . . 10  |-  ( (; 2
3  x.  2 )  +  0 )  = ; 4
6
15362mulid2i 9628 . . . . . . . . . . 11  |-  ( 1  x.  2 )  =  2
154153, 84eqtri 2431 . . . . . . . . . 10  |-  ( 1  x.  2 )  = ; 0
2
15510, 27, 15, 111, 10, 3, 152, 154decmul1c 11065 . . . . . . . . 9  |-  (;; 2 3 1  x.  2 )  = ;; 4 6 2
156155oveq1i 6287 . . . . . . . 8  |-  ( (;; 2 3 1  x.  2 )  +  0 )  =  (;; 4 6 2  +  0 )
157105nn0cni 10847 . . . . . . . . 9  |- ;; 4 6 2  e.  CC
158157addid1i 9800 . . . . . . . 8  |-  (;; 4 6 2  +  0 )  = ;; 4 6 2
159156, 158eqtri 2431 . . . . . . 7  |-  ( (;; 2 3 1  x.  2 )  +  0 )  = ;; 4 6 2
16010, 28, 15, 108, 10, 3, 159, 154decmul1c 11065 . . . . . 6  |-  (;;; 2 3 1 1  x.  2 )  = ;;; 4 6 2 2
16129, 31, 10, 102, 10, 105, 143, 160decmul2c 11066 . . . . 5  |-  (;;; 2 3 1 1  x. ;; 9 0 2 )  = ;;;;;; 2 0 8 4 5 2 2
162101, 161eqtr4i 2434 . . . 4  |-  ( (;; 5 2 1  x.  N )  +  1 )  =  (;;; 2 3 1 1  x. ;; 9 0 2 )
1638, 9, 21, 25, 29, 15, 12, 32, 33, 34, 42, 162modxai 14761 . . 3  |-  ( ( 2 ^;; 10 0 0 )  mod 
N )  =  ( 1  mod  N )
164 eqid 2402 . . . 4  |- ;; 10 0 0  = ;; 10 0 0
165 eqid 2402 . . . . . . 7  |- ; 10 0  = ; 10 0
166 dec10 11048 . . . . . . . . . 10  |-  10  = ; 1 0
16791, 92eqtri 2431 . . . . . . . . . 10  |-  ( ( 2  x.  1 )  +  0 )  =  2
16862mul01i 9803 . . . . . . . . . . 11  |-  ( 2  x.  0 )  =  0
169168, 53eqtri 2431 . . . . . . . . . 10  |-  ( 2  x.  0 )  = ; 0
0
17010, 15, 3, 166, 3, 3, 167, 169decmul2c 11066 . . . . . . . . 9  |-  ( 2  x.  10 )  = ; 2
0
171170oveq1i 6287 . . . . . . . 8  |-  ( ( 2  x.  10 )  +  0 )  =  (; 2 0  +  0 )
172171, 59eqtri 2431 . . . . . . 7  |-  ( ( 2  x.  10 )  +  0 )  = ; 2
0
17310, 16, 3, 165, 3, 3, 172, 169decmul2c 11066 . . . . . 6  |-  ( 2  x. ; 10 0 )  = ;; 2 0 0
174173oveq1i 6287 . . . . 5  |-  ( ( 2  x. ; 10 0 )  +  0 )  =  (;; 2 0 0  +  0 )
17512nn0cni 10847 . . . . . 6  |- ;; 2 0 0  e.  CC
176175addid1i 9800 . . . . 5  |-  (;; 2 0 0  +  0 )  = ;; 2 0 0
177174, 176eqtri 2431 . . . 4  |-  ( ( 2  x. ; 10 0 )  +  0 )  = ;; 2 0 0
17810, 17, 3, 164, 3, 3, 177, 169decmul2c 11066 . . 3  |-  ( 2  x. ;; 10 0 0 )  = ;;; 2 0 0 0
1798nncni 10585 . . . . . 6  |-  N  e.  CC
180179mul02i 9802 . . . . 5  |-  ( 0  x.  N )  =  0
181180oveq1i 6287 . . . 4  |-  ( ( 0  x.  N )  +  1 )  =  ( 0  +  1 )
18296, 115eqtr4i 2434 . . . 4  |-  ( 1  x.  1 )  =  ( 0  +  1 )
183181, 182eqtr4i 2434 . . 3  |-  ( ( 0  x.  N )  +  1 )  =  ( 1  x.  1 )
1848, 9, 18, 14, 15, 15, 163, 178, 183mod2xi 14762 . 2  |-  ( ( 2 ^;;; 2 0 0 0 )  mod  N )  =  ( 1  mod 
N )
185 eqid 2402 . . . 4  |- ;;; 2 0 0 0  = ;;; 2 0 0 0
18610, 10, 3, 38, 3, 3, 146, 169decmul2c 11066 . . . . . . . . 9  |-  ( 2  x. ; 2 0 )  = ; 4
0
187186oveq1i 6287 . . . . . . . 8  |-  ( ( 2  x. ; 2 0 )  +  0 )  =  (; 4
0  +  0 )
1884nn0cni 10847 . . . . . . . . 9  |- ; 4 0  e.  CC
189188addid1i 9800 . . . . . . . 8  |-  (; 4 0  +  0 )  = ; 4 0
190187, 189eqtri 2431 . . . . . . 7  |-  ( ( 2  x. ; 2 0 )  +  0 )  = ; 4 0
19110, 11, 3, 36, 3, 3, 190, 169decmul2c 11066 . . . . . 6  |-  ( 2  x. ;; 2 0 0 )  = ;; 4 0 0
192191oveq1i 6287 . . . . 5  |-  ( ( 2  x. ;; 2 0 0 )  +  0 )  =  (;; 4 0 0  +  0 )
1935nn0cni 10847 . . . . . 6  |- ;; 4 0 0  e.  CC
194193addid1i 9800 . . . . 5  |-  (;; 4 0 0  +  0 )  = ;; 4 0 0
195192, 194eqtri 2431 . . . 4  |-  ( ( 2  x. ;; 2 0 0 )  +  0 )  = ;; 4 0 0
19610, 12, 3, 185, 3, 3, 195, 169decmul2c 11066 . . 3  |-  ( 2  x. ;;; 2 0 0 0 )  = ;;; 4 0 0 0
197 eqid 2402 . . . . . . 7  |- ;;; 4 0 0 0  = ;;; 4 0 0 0
1985, 3, 115, 197decsuc 11041 . . . . . 6  |-  (;;; 4 0 0 0  +  1 )  = ;;; 4 0 0 1
1991, 198eqtr4i 2434 . . . . 5  |-  N  =  (;;; 4 0 0 0  +  1 )
200199oveq1i 6287 . . . 4  |-  ( N  -  1 )  =  ( (;;; 4 0 0 0  +  1 )  - 
1 )
2015, 3deccl 11032 . . . . . 6  |- ;;; 4 0 0 0  e.  NN0
202201nn0cni 10847 . . . . 5  |- ;;; 4 0 0 0  e.  CC
203202, 95pncan3oi 9871 . . . 4  |-  ( (;;; 4 0 0 0  +  1 )  -  1 )  = ;;; 4 0 0 0
204200, 203eqtri 2431 . . 3  |-  ( N  -  1 )  = ;;; 4 0 0 0
205196, 204eqtr4i 2434 . 2  |-  ( 2  x. ;;; 2 0 0 0 )  =  ( N  -  1 )
2068, 9, 13, 14, 15, 15, 184, 205, 183mod2xi 14762 1  |-  ( ( 2 ^ ( N  -  1 ) )  mod  N )  =  ( 1  mod  N
)
Colors of variables: wff setvar class
Syntax hints:    = wceq 1405  (class class class)co 6277   0cc0 9521   1c1 9522    + caddc 9524    x. cmul 9526    - cmin 9840   NNcn 10575   2c2 10625   3c3 10626   4c4 10627   5c5 10628   6c6 10629   7c7 10630   8c8 10631   9c9 10632   10c10 10633  ;cdc 11018    mod cmo 12032   ^cexp 12208
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1639  ax-4 1652  ax-5 1725  ax-6 1771  ax-7 1814  ax-8 1844  ax-9 1846  ax-10 1861  ax-11 1866  ax-12 1878  ax-13 2026  ax-ext 2380  ax-sep 4516  ax-nul 4524  ax-pow 4571  ax-pr 4629  ax-un 6573  ax-cnex 9577  ax-resscn 9578  ax-1cn 9579  ax-icn 9580  ax-addcl 9581  ax-addrcl 9582  ax-mulcl 9583  ax-mulrcl 9584  ax-mulcom 9585  ax-addass 9586  ax-mulass 9587  ax-distr 9588  ax-i2m1 9589  ax-1ne0 9590  ax-1rid 9591  ax-rnegex 9592  ax-rrecex 9593  ax-cnre 9594  ax-pre-lttri 9595  ax-pre-lttrn 9596  ax-pre-ltadd 9597  ax-pre-mulgt0 9598  ax-pre-sup 9599
This theorem depends on definitions:  df-bi 185  df-or 368  df-an 369  df-3or 975  df-3an 976  df-tru 1408  df-ex 1634  df-nf 1638  df-sb 1764  df-eu 2242  df-mo 2243  df-clab 2388  df-cleq 2394  df-clel 2397  df-nfc 2552  df-ne 2600  df-nel 2601  df-ral 2758  df-rex 2759  df-reu 2760  df-rmo 2761  df-rab 2762  df-v 3060  df-sbc 3277  df-csb 3373  df-dif 3416  df-un 3418  df-in 3420  df-ss 3427  df-pss 3429  df-nul 3738  df-if 3885  df-pw 3956  df-sn 3972  df-pr 3974  df-tp 3976  df-op 3978  df-uni 4191  df-iun 4272  df-br 4395  df-opab 4453  df-mpt 4454  df-tr 4489  df-eprel 4733  df-id 4737  df-po 4743  df-so 4744  df-fr 4781  df-we 4783  df-xp 4828  df-rel 4829  df-cnv 4830  df-co 4831  df-dm 4832  df-rn 4833  df-res 4834  df-ima 4835  df-pred 5366  df-ord 5412  df-on 5413  df-lim 5414  df-suc 5415  df-iota 5532  df-fun 5570  df-fn 5571  df-f 5572  df-f1 5573  df-fo 5574  df-f1o 5575  df-fv 5576  df-riota 6239  df-ov 6280  df-oprab 6281  df-mpt2 6282  df-om 6683  df-2nd 6784  df-wrecs 7012  df-recs 7074  df-rdg 7112  df-er 7347  df-en 7554  df-dom 7555  df-sdom 7556  df-sup 7934  df-pnf 9659  df-mnf 9660  df-xr 9661  df-ltxr 9662  df-le 9663  df-sub 9842  df-neg 9843  df-div 10247  df-nn 10576  df-2 10634  df-3 10635  df-4 10636  df-5 10637  df-6 10638  df-7 10639  df-8 10640  df-9 10641  df-10 10642  df-n0 10836  df-z 10905  df-dec 11019  df-uz 11127  df-rp 11265  df-fl 11964  df-mod 12033  df-seq 12150  df-exp 12209
This theorem is referenced by:  4001prm  14834
  Copyright terms: Public domain W3C validator