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

Theorem 1259lem2 14488
Description: Lemma for 1259prm 14492. Calculate a power mod. In decimal, we calculate  2 ^ 3 4  =  ( 2 ^ 1 7 ) ^ 2  ==  1
3 6 ^ 2  ==  1 4 N  +  8 7 0. (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
1259lem2  |-  ( ( 2 ^; 3 4 )  mod 
N )  =  (;; 8 7 0  mod 
N )

Proof of Theorem 1259lem2
StepHypRef Expression
1 1259prm.1 . . 3  |-  N  = ;;; 1 2 5 9
2 1nn0 10814 . . . . . 6  |-  1  e.  NN0
3 2nn0 10815 . . . . . 6  |-  2  e.  NN0
42, 3deccl 10995 . . . . 5  |- ; 1 2  e.  NN0
5 5nn0 10818 . . . . 5  |-  5  e.  NN0
64, 5deccl 10995 . . . 4  |- ;; 1 2 5  e.  NN0
7 9nn 10703 . . . 4  |-  9  e.  NN
86, 7decnncl 10994 . . 3  |- ;;; 1 2 5 9  e.  NN
91, 8eqeltri 2525 . 2  |-  N  e.  NN
10 2nn 10696 . 2  |-  2  e.  NN
11 7nn0 10820 . . 3  |-  7  e.  NN0
122, 11deccl 10995 . 2  |- ; 1 7  e.  NN0
13 4nn0 10817 . . . 4  |-  4  e.  NN0
142, 13deccl 10995 . . 3  |- ; 1 4  e.  NN0
1514nn0zi 10892 . 2  |- ; 1 4  e.  ZZ
16 3nn0 10816 . . . 4  |-  3  e.  NN0
172, 16deccl 10995 . . 3  |- ; 1 3  e.  NN0
18 6nn0 10819 . . 3  |-  6  e.  NN0
1917, 18deccl 10995 . 2  |- ;; 1 3 6  e.  NN0
20 8nn0 10821 . . . 4  |-  8  e.  NN0
2120, 11deccl 10995 . . 3  |- ; 8 7  e.  NN0
22 0nn0 10813 . . 3  |-  0  e.  NN0
2321, 22deccl 10995 . 2  |- ;; 8 7 0  e.  NN0
2411259lem1 14487 . 2  |-  ( ( 2 ^; 1 7 )  mod 
N )  =  (;; 1 3 6  mod 
N )
25 eqid 2441 . . 3  |- ; 1 7  = ; 1 7
26 2cn 10609 . . . . . 6  |-  2  e.  CC
2726mulid1i 9598 . . . . 5  |-  ( 2  x.  1 )  =  2
2827oveq1i 6288 . . . 4  |-  ( ( 2  x.  1 )  +  1 )  =  ( 2  +  1 )
29 2p1e3 10662 . . . 4  |-  ( 2  +  1 )  =  3
3028, 29eqtri 2470 . . 3  |-  ( ( 2  x.  1 )  +  1 )  =  3
31 7cn 10622 . . . 4  |-  7  e.  CC
32 7t2e14 11063 . . . 4  |-  ( 7  x.  2 )  = ; 1
4
3331, 26, 32mulcomli 9603 . . 3  |-  ( 2  x.  7 )  = ; 1
4
343, 2, 11, 25, 13, 2, 30, 33decmul2c 11029 . 2  |-  ( 2  x. ; 1 7 )  = ; 3
4
35 9nn0 10822 . . . 4  |-  9  e.  NN0
36 eqid 2441 . . . 4  |- ;; 8 7 0  = ;; 8 7 0
37 eqid 2441 . . . . 5  |- ;; 1 2 5  = ;; 1 2 5
38 eqid 2441 . . . . . 6  |- ; 8 7  = ; 8 7
39 eqid 2441 . . . . . 6  |- ; 1 2  = ; 1 2
40 8p1e9 10669 . . . . . 6  |-  ( 8  +  1 )  =  9
41 7p2e9 10683 . . . . . 6  |-  ( 7  +  2 )  =  9
4220, 11, 2, 3, 38, 39, 40, 41decadd 11022 . . . . 5  |-  (; 8 7  + ; 1 2 )  = ; 9
9
43 9p7e16 11048 . . . . . 6  |-  ( 9  +  7 )  = ; 1
6
44 eqid 2441 . . . . . . 7  |- ; 1 4  = ; 1 4
45 3cn 10613 . . . . . . . . 9  |-  3  e.  CC
46 ax-1cn 9550 . . . . . . . . 9  |-  1  e.  CC
47 3p1e4 10664 . . . . . . . . 9  |-  ( 3  +  1 )  =  4
4845, 46, 47addcomli 9772 . . . . . . . 8  |-  ( 1  +  3 )  =  4
4913dec0h 10997 . . . . . . . 8  |-  4  = ; 0 4
5048, 49eqtri 2470 . . . . . . 7  |-  ( 1  +  3 )  = ; 0
4
5146mulid1i 9598 . . . . . . . . 9  |-  ( 1  x.  1 )  =  1
52 00id 9755 . . . . . . . . 9  |-  ( 0  +  0 )  =  0
5351, 52oveq12i 6290 . . . . . . . 8  |-  ( ( 1  x.  1 )  +  ( 0  +  0 ) )  =  ( 1  +  0 )
5446addid1i 9767 . . . . . . . 8  |-  ( 1  +  0 )  =  1
5553, 54eqtri 2470 . . . . . . 7  |-  ( ( 1  x.  1 )  +  ( 0  +  0 ) )  =  1
56 4cn 10616 . . . . . . . . . 10  |-  4  e.  CC
5756mulid1i 9598 . . . . . . . . 9  |-  ( 4  x.  1 )  =  4
5857oveq1i 6288 . . . . . . . 8  |-  ( ( 4  x.  1 )  +  4 )  =  ( 4  +  4 )
59 4p4e8 10675 . . . . . . . 8  |-  ( 4  +  4 )  =  8
6020dec0h 10997 . . . . . . . 8  |-  8  = ; 0 8
6158, 59, 603eqtri 2474 . . . . . . 7  |-  ( ( 4  x.  1 )  +  4 )  = ; 0
8
622, 13, 22, 13, 44, 50, 2, 20, 22, 55, 61decmac 11020 . . . . . 6  |-  ( (; 1
4  x.  1 )  +  ( 1  +  3 ) )  = ; 1
8
6318dec0h 10997 . . . . . . 7  |-  6  = ; 0 6
6426mulid2i 9599 . . . . . . . . 9  |-  ( 1  x.  2 )  =  2
6546addid2i 9768 . . . . . . . . 9  |-  ( 0  +  1 )  =  1
6664, 65oveq12i 6290 . . . . . . . 8  |-  ( ( 1  x.  2 )  +  ( 0  +  1 ) )  =  ( 2  +  1 )
6766, 29eqtri 2470 . . . . . . 7  |-  ( ( 1  x.  2 )  +  ( 0  +  1 ) )  =  3
68 4t2e8 10692 . . . . . . . . 9  |-  ( 4  x.  2 )  =  8
6968oveq1i 6288 . . . . . . . 8  |-  ( ( 4  x.  2 )  +  6 )  =  ( 8  +  6 )
70 8p6e14 11040 . . . . . . . 8  |-  ( 8  +  6 )  = ; 1
4
7169, 70eqtri 2470 . . . . . . 7  |-  ( ( 4  x.  2 )  +  6 )  = ; 1
4
722, 13, 22, 18, 44, 63, 3, 13, 2, 67, 71decmac 11020 . . . . . 6  |-  ( (; 1
4  x.  2 )  +  6 )  = ; 3
4
732, 3, 2, 18, 39, 43, 14, 13, 16, 62, 72decma2c 11021 . . . . 5  |-  ( (; 1
4  x. ; 1 2 )  +  ( 9  +  7 ) )  = ;; 1 8 4
7435dec0h 10997 . . . . . 6  |-  9  = ; 0 9
75 5cn 10618 . . . . . . . . 9  |-  5  e.  CC
7675mulid2i 9599 . . . . . . . 8  |-  ( 1  x.  5 )  =  5
7726addid2i 9768 . . . . . . . 8  |-  ( 0  +  2 )  =  2
7876, 77oveq12i 6290 . . . . . . 7  |-  ( ( 1  x.  5 )  +  ( 0  +  2 ) )  =  ( 5  +  2 )
79 5p2e7 10676 . . . . . . 7  |-  ( 5  +  2 )  =  7
8078, 79eqtri 2470 . . . . . 6  |-  ( ( 1  x.  5 )  +  ( 0  +  2 ) )  =  7
81 5t4e20 11056 . . . . . . . 8  |-  ( 5  x.  4 )  = ; 2
0
8275, 56, 81mulcomli 9603 . . . . . . 7  |-  ( 4  x.  5 )  = ; 2
0
83 9cn 10626 . . . . . . . 8  |-  9  e.  CC
8483addid2i 9768 . . . . . . 7  |-  ( 0  +  9 )  =  9
853, 22, 35, 82, 84decaddi 11025 . . . . . 6  |-  ( ( 4  x.  5 )  +  9 )  = ; 2
9
862, 13, 22, 35, 44, 74, 5, 35, 3, 80, 85decmac 11020 . . . . 5  |-  ( (; 1
4  x.  5 )  +  9 )  = ; 7
9
874, 5, 35, 35, 37, 42, 14, 35, 11, 73, 86decma2c 11021 . . . 4  |-  ( (; 1
4  x. ;; 1 2 5 )  +  (; 8 7  + ; 1 2 ) )  = ;;; 1 8 4 9
8883mulid2i 9599 . . . . . . . . 9  |-  ( 1  x.  9 )  =  9
8988oveq1i 6288 . . . . . . . 8  |-  ( ( 1  x.  9 )  +  3 )  =  ( 9  +  3 )
90 9p3e12 11044 . . . . . . . 8  |-  ( 9  +  3 )  = ; 1
2
9189, 90eqtri 2470 . . . . . . 7  |-  ( ( 1  x.  9 )  +  3 )  = ; 1
2
92 9t4e36 11078 . . . . . . . 8  |-  ( 9  x.  4 )  = ; 3
6
9383, 56, 92mulcomli 9603 . . . . . . 7  |-  ( 4  x.  9 )  = ; 3
6
9435, 2, 13, 44, 18, 16, 91, 93decmul1c 11028 . . . . . 6  |-  (; 1 4  x.  9 )  = ;; 1 2 6
9594oveq1i 6288 . . . . 5  |-  ( (; 1
4  x.  9 )  +  0 )  =  (;; 1 2 6  +  0 )
964, 18deccl 10995 . . . . . . 7  |- ;; 1 2 6  e.  NN0
9796nn0cni 10810 . . . . . 6  |- ;; 1 2 6  e.  CC
9897addid1i 9767 . . . . 5  |-  (;; 1 2 6  +  0 )  = ;; 1 2 6
9995, 98eqtri 2470 . . . 4  |-  ( (; 1
4  x.  9 )  +  0 )  = ;; 1 2 6
1006, 35, 21, 22, 1, 36, 14, 18, 4, 87, 99decma2c 11021 . . 3  |-  ( (; 1
4  x.  N )  + ;; 8 7 0 )  = ;;;; 1 8 4 9 6
101 eqid 2441 . . . 4  |- ;; 1 3 6  = ;; 1 3 6
10220, 2deccl 10995 . . . 4  |- ; 8 1  e.  NN0
103 eqid 2441 . . . . 5  |- ; 1 3  = ; 1 3
104 eqid 2441 . . . . 5  |- ; 8 1  = ; 8 1
10513, 22deccl 10995 . . . . 5  |- ; 4 0  e.  NN0
106 eqid 2441 . . . . . . 7  |- ; 4 0  = ; 4 0
10756addid2i 9768 . . . . . . 7  |-  ( 0  +  4 )  =  4
108 8cn 10624 . . . . . . . 8  |-  8  e.  CC
109108addid1i 9767 . . . . . . 7  |-  ( 8  +  0 )  =  8
11022, 20, 13, 22, 60, 106, 107, 109decadd 11022 . . . . . 6  |-  ( 8  + ; 4 0 )  = ; 4
8
111 4p1e5 10665 . . . . . . . 8  |-  ( 4  +  1 )  =  5
1125dec0h 10997 . . . . . . . 8  |-  5  = ; 0 5
113111, 112eqtri 2470 . . . . . . 7  |-  ( 4  +  1 )  = ; 0
5
11445mulid1i 9598 . . . . . . . . 9  |-  ( 3  x.  1 )  =  3
115114oveq1i 6288 . . . . . . . 8  |-  ( ( 3  x.  1 )  +  5 )  =  ( 3  +  5 )
116 5p3e8 10677 . . . . . . . . 9  |-  ( 5  +  3 )  =  8
11775, 45, 116addcomli 9772 . . . . . . . 8  |-  ( 3  +  5 )  =  8
118115, 117, 603eqtri 2474 . . . . . . 7  |-  ( ( 3  x.  1 )  +  5 )  = ; 0
8
1192, 16, 22, 5, 103, 113, 2, 20, 22, 55, 118decmac 11020 . . . . . 6  |-  ( (; 1
3  x.  1 )  +  ( 4  +  1 ) )  = ; 1
8
120 6cn 10620 . . . . . . . . 9  |-  6  e.  CC
121120mulid1i 9598 . . . . . . . 8  |-  ( 6  x.  1 )  =  6
122121oveq1i 6288 . . . . . . 7  |-  ( ( 6  x.  1 )  +  8 )  =  ( 6  +  8 )
123108, 120, 70addcomli 9772 . . . . . . 7  |-  ( 6  +  8 )  = ; 1
4
124122, 123eqtri 2470 . . . . . 6  |-  ( ( 6  x.  1 )  +  8 )  = ; 1
4
12517, 18, 13, 20, 101, 110, 2, 13, 2, 119, 124decmac 11020 . . . . 5  |-  ( (;; 1 3 6  x.  1 )  +  ( 8  + ; 4 0 ) )  = ;; 1 8 4
1262dec0h 10997 . . . . . 6  |-  1  = ; 0 1
12765, 126eqtri 2470 . . . . . . 7  |-  ( 0  +  1 )  = ; 0
1
12845mulid2i 9599 . . . . . . . . 9  |-  ( 1  x.  3 )  =  3
129128, 65oveq12i 6290 . . . . . . . 8  |-  ( ( 1  x.  3 )  +  ( 0  +  1 ) )  =  ( 3  +  1 )
130129, 47eqtri 2470 . . . . . . 7  |-  ( ( 1  x.  3 )  +  ( 0  +  1 ) )  =  4
131 3t3e9 10691 . . . . . . . . 9  |-  ( 3  x.  3 )  =  9
132131oveq1i 6288 . . . . . . . 8  |-  ( ( 3  x.  3 )  +  1 )  =  ( 9  +  1 )
133 9p1e10 10670 . . . . . . . 8  |-  ( 9  +  1 )  =  10
134 dec10 11011 . . . . . . . 8  |-  10  = ; 1 0
135132, 133, 1343eqtri 2474 . . . . . . 7  |-  ( ( 3  x.  3 )  +  1 )  = ; 1
0
1362, 16, 22, 2, 103, 127, 16, 22, 2, 130, 135decmac 11020 . . . . . 6  |-  ( (; 1
3  x.  3 )  +  ( 0  +  1 ) )  = ; 4
0
137 6t3e18 11059 . . . . . . 7  |-  ( 6  x.  3 )  = ; 1
8
1382, 20, 2, 137, 40decaddi 11025 . . . . . 6  |-  ( ( 6  x.  3 )  +  1 )  = ; 1
9
13917, 18, 22, 2, 101, 126, 16, 35, 2, 136, 138decmac 11020 . . . . 5  |-  ( (;; 1 3 6  x.  3 )  +  1 )  = ;; 4 0 9
1402, 16, 20, 2, 103, 104, 19, 35, 105, 125, 139decma2c 11021 . . . 4  |-  ( (;; 1 3 6  x. ; 1
3 )  + ; 8 1 )  = ;;; 1 8 4 9
14116dec0h 10997 . . . . . 6  |-  3  = ; 0 3
142120mulid2i 9599 . . . . . . . 8  |-  ( 1  x.  6 )  =  6
143142, 77oveq12i 6290 . . . . . . 7  |-  ( ( 1  x.  6 )  +  ( 0  +  2 ) )  =  ( 6  +  2 )
144 6p2e8 10680 . . . . . . 7  |-  ( 6  +  2 )  =  8
145143, 144eqtri 2470 . . . . . 6  |-  ( ( 1  x.  6 )  +  ( 0  +  2 ) )  =  8
146120, 45, 137mulcomli 9603 . . . . . . 7  |-  ( 3  x.  6 )  = ; 1
8
147 1p1e2 10652 . . . . . . 7  |-  ( 1  +  1 )  =  2
148 8p3e11 11037 . . . . . . 7  |-  ( 8  +  3 )  = ; 1
1
1492, 20, 16, 146, 147, 2, 148decaddci 11026 . . . . . 6  |-  ( ( 3  x.  6 )  +  3 )  = ; 2
1
1502, 16, 22, 16, 103, 141, 18, 2, 3, 145, 149decmac 11020 . . . . 5  |-  ( (; 1
3  x.  6 )  +  3 )  = ; 8
1
151 6t6e36 11062 . . . . 5  |-  ( 6  x.  6 )  = ; 3
6
15218, 17, 18, 101, 18, 16, 150, 151decmul1c 11028 . . . 4  |-  (;; 1 3 6  x.  6 )  = ;; 8 1 6
15319, 17, 18, 101, 18, 102, 140, 152decmul2c 11029 . . 3  |-  (;; 1 3 6  x. ;; 1 3 6 )  = ;;;; 1 8 4 9 6
154100, 153eqtr4i 2473 . 2  |-  ( (; 1
4  x.  N )  + ;; 8 7 0 )  =  (;; 1 3 6  x. ;; 1 3 6 )
1559, 10, 12, 15, 19, 23, 24, 34, 154mod2xi 14429 1  |-  ( ( 2 ^; 3 4 )  mod 
N )  =  (;; 8 7 0  mod 
N )
Colors of variables: wff setvar class
Syntax hints:    = wceq 1381  (class class class)co 6278   0cc0 9492   1c1 9493    + caddc 9495    x. cmul 9497   NNcn 10539   2c2 10588   3c3 10589   4c4 10590   5c5 10591   6c6 10592   7c7 10593   8c8 10594   9c9 10595   10c10 10596  ;cdc 10981    mod cmo 11972   ^cexp 12142
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1603  ax-4 1616  ax-5 1689  ax-6 1732  ax-7 1774  ax-8 1804  ax-9 1806  ax-10 1821  ax-11 1826  ax-12 1838  ax-13 1983  ax-ext 2419  ax-sep 4555  ax-nul 4563  ax-pow 4612  ax-pr 4673  ax-un 6574  ax-cnex 9548  ax-resscn 9549  ax-1cn 9550  ax-icn 9551  ax-addcl 9552  ax-addrcl 9553  ax-mulcl 9554  ax-mulrcl 9555  ax-mulcom 9556  ax-addass 9557  ax-mulass 9558  ax-distr 9559  ax-i2m1 9560  ax-1ne0 9561  ax-1rid 9562  ax-rnegex 9563  ax-rrecex 9564  ax-cnre 9565  ax-pre-lttri 9566  ax-pre-lttrn 9567  ax-pre-ltadd 9568  ax-pre-mulgt0 9569  ax-pre-sup 9570
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3or 973  df-3an 974  df-tru 1384  df-ex 1598  df-nf 1602  df-sb 1725  df-eu 2270  df-mo 2271  df-clab 2427  df-cleq 2433  df-clel 2436  df-nfc 2591  df-ne 2638  df-nel 2639  df-ral 2796  df-rex 2797  df-reu 2798  df-rmo 2799  df-rab 2800  df-v 3095  df-sbc 3312  df-csb 3419  df-dif 3462  df-un 3464  df-in 3466  df-ss 3473  df-pss 3475  df-nul 3769  df-if 3924  df-pw 3996  df-sn 4012  df-pr 4014  df-tp 4016  df-op 4018  df-uni 4232  df-iun 4314  df-br 4435  df-opab 4493  df-mpt 4494  df-tr 4528  df-eprel 4778  df-id 4782  df-po 4787  df-so 4788  df-fr 4825  df-we 4827  df-ord 4868  df-on 4869  df-lim 4870  df-suc 4871  df-xp 4992  df-rel 4993  df-cnv 4994  df-co 4995  df-dm 4996  df-rn 4997  df-res 4998  df-ima 4999  df-iota 5538  df-fun 5577  df-fn 5578  df-f 5579  df-f1 5580  df-fo 5581  df-f1o 5582  df-fv 5583  df-riota 6239  df-ov 6281  df-oprab 6282  df-mpt2 6283  df-om 6683  df-2nd 6783  df-recs 7041  df-rdg 7075  df-er 7310  df-en 7516  df-dom 7517  df-sdom 7518  df-sup 7900  df-pnf 9630  df-mnf 9631  df-xr 9632  df-ltxr 9633  df-le 9634  df-sub 9809  df-neg 9810  df-div 10210  df-nn 10540  df-2 10597  df-3 10598  df-4 10599  df-5 10600  df-6 10601  df-7 10602  df-8 10603  df-9 10604  df-10 10605  df-n0 10799  df-z 10868  df-dec 10982  df-uz 11088  df-rp 11227  df-fl 11905  df-mod 11973  df-seq 12084  df-exp 12143
This theorem is referenced by:  1259lem3  14489  1259lem5  14491
  Copyright terms: Public domain W3C validator