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

Theorem 1259lem2 13146
Description: Lemma for 1259prm 13150. 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 9997 . . . . . 6  |-  1  e.  NN0
3 2nn0 9998 . . . . . 6  |-  2  e.  NN0
42, 3deccl 10154 . . . . 5  |- ; 1 2  e.  NN0
5 5nn0 10001 . . . . 5  |-  5  e.  NN0
64, 5deccl 10154 . . . 4  |- ;; 1 2 5  e.  NN0
7 9nn 9900 . . . 4  |-  9  e.  NN
86, 7decnncl 10153 . . 3  |- ;;; 1 2 5 9  e.  NN
91, 8eqeltri 2366 . 2  |-  N  e.  NN
10 2nn 9893 . 2  |-  2  e.  NN
11 7nn0 10003 . . 3  |-  7  e.  NN0
122, 11deccl 10154 . 2  |- ; 1 7  e.  NN0
13 4nn0 10000 . . . 4  |-  4  e.  NN0
142, 13deccl 10154 . . 3  |- ; 1 4  e.  NN0
1514nn0zi 10064 . 2  |- ; 1 4  e.  ZZ
16 3nn0 9999 . . . 4  |-  3  e.  NN0
172, 16deccl 10154 . . 3  |- ; 1 3  e.  NN0
18 6nn0 10002 . . 3  |-  6  e.  NN0
1917, 18deccl 10154 . 2  |- ;; 1 3 6  e.  NN0
20 8nn0 10004 . . . 4  |-  8  e.  NN0
2120, 11deccl 10154 . . 3  |- ; 8 7  e.  NN0
22 0nn0 9996 . . 3  |-  0  e.  NN0
2321, 22deccl 10154 . 2  |- ;; 8 7 0  e.  NN0
2411259lem1 13145 . 2  |-  ( ( 2 ^; 1 7 )  mod 
N )  =  (;; 1 3 6  mod 
N )
25 eqid 2296 . . 3  |- ; 1 7  = ; 1 7
26 2cn 9832 . . . . . 6  |-  2  e.  CC
2726mulid1i 8855 . . . . 5  |-  ( 2  x.  1 )  =  2
2827oveq1i 5884 . . . 4  |-  ( ( 2  x.  1 )  +  1 )  =  ( 2  +  1 )
29 2p1e3 9863 . . . 4  |-  ( 2  +  1 )  =  3
3028, 29eqtri 2316 . . 3  |-  ( ( 2  x.  1 )  +  1 )  =  3
31 7nn 9898 . . . . 5  |-  7  e.  NN
3231nncni 9772 . . . 4  |-  7  e.  CC
33 7t2e14 10222 . . . 4  |-  ( 7  x.  2 )  = ; 1
4
3432, 26, 33mulcomli 8860 . . 3  |-  ( 2  x.  7 )  = ; 1
4
353, 2, 11, 25, 13, 2, 30, 34decmul2c 10188 . 2  |-  ( 2  x. ; 1 7 )  = ; 3
4
36 9nn0 10005 . . . 4  |-  9  e.  NN0
37 eqid 2296 . . . 4  |- ;; 8 7 0  = ;; 8 7 0
38 eqid 2296 . . . . 5  |- ;; 1 2 5  = ;; 1 2 5
39 eqid 2296 . . . . . 6  |- ; 8 7  = ; 8 7
40 eqid 2296 . . . . . 6  |- ; 1 2  = ; 1 2
41 8p1e9 9869 . . . . . 6  |-  ( 8  +  1 )  =  9
42 7p2e9 9883 . . . . . 6  |-  ( 7  +  2 )  =  9
4320, 11, 2, 3, 39, 40, 41, 42decadd 10181 . . . . 5  |-  (; 8 7  + ; 1 2 )  = ; 9
9
44 9p7e16 10207 . . . . . 6  |-  ( 9  +  7 )  = ; 1
6
45 eqid 2296 . . . . . . 7  |- ; 1 4  = ; 1 4
46 3cn 9834 . . . . . . . . 9  |-  3  e.  CC
47 ax-1cn 8811 . . . . . . . . 9  |-  1  e.  CC
48 3p1e4 9864 . . . . . . . . 9  |-  ( 3  +  1 )  =  4
4946, 47, 48addcomli 9020 . . . . . . . 8  |-  ( 1  +  3 )  =  4
5013dec0h 10156 . . . . . . . 8  |-  4  = ; 0 4
5149, 50eqtri 2316 . . . . . . 7  |-  ( 1  +  3 )  = ; 0
4
5247mulid1i 8855 . . . . . . . . 9  |-  ( 1  x.  1 )  =  1
53 00id 9003 . . . . . . . . 9  |-  ( 0  +  0 )  =  0
5452, 53oveq12i 5886 . . . . . . . 8  |-  ( ( 1  x.  1 )  +  ( 0  +  0 ) )  =  ( 1  +  0 )
5547addid1i 9015 . . . . . . . 8  |-  ( 1  +  0 )  =  1
5654, 55eqtri 2316 . . . . . . 7  |-  ( ( 1  x.  1 )  +  ( 0  +  0 ) )  =  1
57 4cn 9836 . . . . . . . . . 10  |-  4  e.  CC
5857mulid1i 8855 . . . . . . . . 9  |-  ( 4  x.  1 )  =  4
5958oveq1i 5884 . . . . . . . 8  |-  ( ( 4  x.  1 )  +  4 )  =  ( 4  +  4 )
60 4p4e8 9875 . . . . . . . 8  |-  ( 4  +  4 )  =  8
6120dec0h 10156 . . . . . . . 8  |-  8  = ; 0 8
6259, 60, 613eqtri 2320 . . . . . . 7  |-  ( ( 4  x.  1 )  +  4 )  = ; 0
8
632, 13, 22, 13, 45, 51, 2, 20, 22, 56, 62decmac 10179 . . . . . 6  |-  ( (; 1
4  x.  1 )  +  ( 1  +  3 ) )  = ; 1
8
6418dec0h 10156 . . . . . . 7  |-  6  = ; 0 6
6526mulid2i 8856 . . . . . . . . 9  |-  ( 1  x.  2 )  =  2
6647addid2i 9016 . . . . . . . . 9  |-  ( 0  +  1 )  =  1
6765, 66oveq12i 5886 . . . . . . . 8  |-  ( ( 1  x.  2 )  +  ( 0  +  1 ) )  =  ( 2  +  1 )
6867, 29eqtri 2316 . . . . . . 7  |-  ( ( 1  x.  2 )  +  ( 0  +  1 ) )  =  3
69 4t2e8 9890 . . . . . . . . 9  |-  ( 4  x.  2 )  =  8
7069oveq1i 5884 . . . . . . . 8  |-  ( ( 4  x.  2 )  +  6 )  =  ( 8  +  6 )
71 8p6e14 10199 . . . . . . . 8  |-  ( 8  +  6 )  = ; 1
4
7270, 71eqtri 2316 . . . . . . 7  |-  ( ( 4  x.  2 )  +  6 )  = ; 1
4
732, 13, 22, 18, 45, 64, 3, 13, 2, 68, 72decmac 10179 . . . . . 6  |-  ( (; 1
4  x.  2 )  +  6 )  = ; 3
4
742, 3, 2, 18, 40, 44, 14, 13, 16, 63, 73decma2c 10180 . . . . 5  |-  ( (; 1
4  x. ; 1 2 )  +  ( 9  +  7 ) )  = ;; 1 8 4
7536dec0h 10156 . . . . . 6  |-  9  = ; 0 9
76 5nn 9896 . . . . . . . . . 10  |-  5  e.  NN
7776nncni 9772 . . . . . . . . 9  |-  5  e.  CC
7877mulid2i 8856 . . . . . . . 8  |-  ( 1  x.  5 )  =  5
7926addid2i 9016 . . . . . . . 8  |-  ( 0  +  2 )  =  2
8078, 79oveq12i 5886 . . . . . . 7  |-  ( ( 1  x.  5 )  +  ( 0  +  2 ) )  =  ( 5  +  2 )
81 5p2e7 9876 . . . . . . 7  |-  ( 5  +  2 )  =  7
8280, 81eqtri 2316 . . . . . 6  |-  ( ( 1  x.  5 )  +  ( 0  +  2 ) )  =  7
83 5t4e20 10215 . . . . . . . 8  |-  ( 5  x.  4 )  = ; 2
0
8477, 57, 83mulcomli 8860 . . . . . . 7  |-  ( 4  x.  5 )  = ; 2
0
857nncni 9772 . . . . . . . 8  |-  9  e.  CC
8685addid2i 9016 . . . . . . 7  |-  ( 0  +  9 )  =  9
873, 22, 36, 84, 86decaddi 10184 . . . . . 6  |-  ( ( 4  x.  5 )  +  9 )  = ; 2
9
882, 13, 22, 36, 45, 75, 5, 36, 3, 82, 87decmac 10179 . . . . 5  |-  ( (; 1
4  x.  5 )  +  9 )  = ; 7
9
894, 5, 36, 36, 38, 43, 14, 36, 11, 74, 88decma2c 10180 . . . 4  |-  ( (; 1
4  x. ;; 1 2 5 )  +  (; 8 7  + ; 1 2 ) )  = ;;; 1 8 4 9
9085mulid2i 8856 . . . . . . . . 9  |-  ( 1  x.  9 )  =  9
9190oveq1i 5884 . . . . . . . 8  |-  ( ( 1  x.  9 )  +  3 )  =  ( 9  +  3 )
92 9p3e12 10203 . . . . . . . 8  |-  ( 9  +  3 )  = ; 1
2
9391, 92eqtri 2316 . . . . . . 7  |-  ( ( 1  x.  9 )  +  3 )  = ; 1
2
94 9t4e36 10237 . . . . . . . 8  |-  ( 9  x.  4 )  = ; 3
6
9585, 57, 94mulcomli 8860 . . . . . . 7  |-  ( 4  x.  9 )  = ; 3
6
9636, 2, 13, 45, 18, 16, 93, 95decmul1c 10187 . . . . . 6  |-  (; 1 4  x.  9 )  = ;; 1 2 6
9796oveq1i 5884 . . . . 5  |-  ( (; 1
4  x.  9 )  +  0 )  =  (;; 1 2 6  +  0 )
984, 18deccl 10154 . . . . . . 7  |- ;; 1 2 6  e.  NN0
9998nn0cni 9993 . . . . . 6  |- ;; 1 2 6  e.  CC
10099addid1i 9015 . . . . 5  |-  (;; 1 2 6  +  0 )  = ;; 1 2 6
10197, 100eqtri 2316 . . . 4  |-  ( (; 1
4  x.  9 )  +  0 )  = ;; 1 2 6
1026, 36, 21, 22, 1, 37, 14, 18, 4, 89, 101decma2c 10180 . . 3  |-  ( (; 1
4  x.  N )  + ;; 8 7 0 )  = ;;;; 1 8 4 9 6
103 eqid 2296 . . . 4  |- ;; 1 3 6  = ;; 1 3 6
10420, 2deccl 10154 . . . 4  |- ; 8 1  e.  NN0
105 eqid 2296 . . . . 5  |- ; 1 3  = ; 1 3
106 eqid 2296 . . . . 5  |- ; 8 1  = ; 8 1
10713, 22deccl 10154 . . . . 5  |- ; 4 0  e.  NN0
108 eqid 2296 . . . . . . 7  |- ; 4 0  = ; 4 0
10957addid2i 9016 . . . . . . 7  |-  ( 0  +  4 )  =  4
110 8nn 9899 . . . . . . . . 9  |-  8  e.  NN
111110nncni 9772 . . . . . . . 8  |-  8  e.  CC
112111addid1i 9015 . . . . . . 7  |-  ( 8  +  0 )  =  8
11322, 20, 13, 22, 61, 108, 109, 112decadd 10181 . . . . . 6  |-  ( 8  + ; 4 0 )  = ; 4
8
114 4p1e5 9865 . . . . . . . 8  |-  ( 4  +  1 )  =  5
1155dec0h 10156 . . . . . . . 8  |-  5  = ; 0 5
116114, 115eqtri 2316 . . . . . . 7  |-  ( 4  +  1 )  = ; 0
5
11746mulid1i 8855 . . . . . . . . 9  |-  ( 3  x.  1 )  =  3
118117oveq1i 5884 . . . . . . . 8  |-  ( ( 3  x.  1 )  +  5 )  =  ( 3  +  5 )
119 5p3e8 9877 . . . . . . . . 9  |-  ( 5  +  3 )  =  8
12077, 46, 119addcomli 9020 . . . . . . . 8  |-  ( 3  +  5 )  =  8
121118, 120, 613eqtri 2320 . . . . . . 7  |-  ( ( 3  x.  1 )  +  5 )  = ; 0
8
1222, 16, 22, 5, 105, 116, 2, 20, 22, 56, 121decmac 10179 . . . . . 6  |-  ( (; 1
3  x.  1 )  +  ( 4  +  1 ) )  = ; 1
8
123 6nn 9897 . . . . . . . . . 10  |-  6  e.  NN
124123nncni 9772 . . . . . . . . 9  |-  6  e.  CC
125124mulid1i 8855 . . . . . . . 8  |-  ( 6  x.  1 )  =  6
126125oveq1i 5884 . . . . . . 7  |-  ( ( 6  x.  1 )  +  8 )  =  ( 6  +  8 )
127111, 124, 71addcomli 9020 . . . . . . 7  |-  ( 6  +  8 )  = ; 1
4
128126, 127eqtri 2316 . . . . . 6  |-  ( ( 6  x.  1 )  +  8 )  = ; 1
4
12917, 18, 13, 20, 103, 113, 2, 13, 2, 122, 128decmac 10179 . . . . 5  |-  ( (;; 1 3 6  x.  1 )  +  ( 8  + ; 4 0 ) )  = ;; 1 8 4
1302dec0h 10156 . . . . . 6  |-  1  = ; 0 1
13166, 130eqtri 2316 . . . . . . 7  |-  ( 0  +  1 )  = ; 0
1
13246mulid2i 8856 . . . . . . . . 9  |-  ( 1  x.  3 )  =  3
133132, 66oveq12i 5886 . . . . . . . 8  |-  ( ( 1  x.  3 )  +  ( 0  +  1 ) )  =  ( 3  +  1 )
134133, 48eqtri 2316 . . . . . . 7  |-  ( ( 1  x.  3 )  +  ( 0  +  1 ) )  =  4
135 3t3e9 9889 . . . . . . . . 9  |-  ( 3  x.  3 )  =  9
136135oveq1i 5884 . . . . . . . 8  |-  ( ( 3  x.  3 )  +  1 )  =  ( 9  +  1 )
137 9p1e10 9870 . . . . . . . 8  |-  ( 9  +  1 )  =  10
138 dec10 10170 . . . . . . . 8  |-  10  = ; 1 0
139136, 137, 1383eqtri 2320 . . . . . . 7  |-  ( ( 3  x.  3 )  +  1 )  = ; 1
0
1402, 16, 22, 2, 105, 131, 16, 22, 2, 134, 139decmac 10179 . . . . . 6  |-  ( (; 1
3  x.  3 )  +  ( 0  +  1 ) )  = ; 4
0
141 6t3e18 10218 . . . . . . 7  |-  ( 6  x.  3 )  = ; 1
8
1422, 20, 2, 141, 41decaddi 10184 . . . . . 6  |-  ( ( 6  x.  3 )  +  1 )  = ; 1
9
14317, 18, 22, 2, 103, 130, 16, 36, 2, 140, 142decmac 10179 . . . . 5  |-  ( (;; 1 3 6  x.  3 )  +  1 )  = ;; 4 0 9
1442, 16, 20, 2, 105, 106, 19, 36, 107, 129, 143decma2c 10180 . . . 4  |-  ( (;; 1 3 6  x. ; 1
3 )  + ; 8 1 )  = ;;; 1 8 4 9
14516dec0h 10156 . . . . . 6  |-  3  = ; 0 3
146124mulid2i 8856 . . . . . . . 8  |-  ( 1  x.  6 )  =  6
147146, 79oveq12i 5886 . . . . . . 7  |-  ( ( 1  x.  6 )  +  ( 0  +  2 ) )  =  ( 6  +  2 )
148 6p2e8 9880 . . . . . . 7  |-  ( 6  +  2 )  =  8
149147, 148eqtri 2316 . . . . . 6  |-  ( ( 1  x.  6 )  +  ( 0  +  2 ) )  =  8
150124, 46, 141mulcomli 8860 . . . . . . 7  |-  ( 3  x.  6 )  = ; 1
8
151 1p1e2 9856 . . . . . . 7  |-  ( 1  +  1 )  =  2
152 8p3e11 10196 . . . . . . 7  |-  ( 8  +  3 )  = ; 1
1
1532, 20, 16, 150, 151, 2, 152decaddci 10185 . . . . . 6  |-  ( ( 3  x.  6 )  +  3 )  = ; 2
1
1542, 16, 22, 16, 105, 145, 18, 2, 3, 149, 153decmac 10179 . . . . 5  |-  ( (; 1
3  x.  6 )  +  3 )  = ; 8
1
155 6t6e36 10221 . . . . 5  |-  ( 6  x.  6 )  = ; 3
6
15618, 17, 18, 103, 18, 16, 154, 155decmul1c 10187 . . . 4  |-  (;; 1 3 6  x.  6 )  = ;; 8 1 6
15719, 17, 18, 103, 18, 104, 144, 156decmul2c 10188 . . 3  |-  (;; 1 3 6  x. ;; 1 3 6 )  = ;;;; 1 8 4 9 6
158102, 157eqtr4i 2319 . 2  |-  ( (; 1
4  x.  N )  + ;; 8 7 0 )  =  (;; 1 3 6  x. ;; 1 3 6 )
1599, 10, 12, 15, 19, 23, 24, 35, 158mod2xi 13100 1  |-  ( ( 2 ^; 3 4 )  mod 
N )  =  (;; 8 7 0  mod 
N )
Colors of variables: wff set class
Syntax hints:    = wceq 1632  (class class class)co 5874   0cc0 8753   1c1 8754    + caddc 8756    x. cmul 8758   NNcn 9762   2c2 9811   3c3 9812   4c4 9813   5c5 9814   6c6 9815   7c7 9816   8c8 9817   9c9 9818   10c10 9819  ;cdc 10140    mod cmo 10989   ^cexp 11120
This theorem is referenced by:  1259lem3  13147  1259lem5  13149
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1536  ax-5 1547  ax-17 1606  ax-9 1644  ax-8 1661  ax-13 1698  ax-14 1700  ax-6 1715  ax-7 1720  ax-11 1727  ax-12 1878  ax-ext 2277  ax-sep 4157  ax-nul 4165  ax-pow 4204  ax-pr 4230  ax-un 4528  ax-cnex 8809  ax-resscn 8810  ax-1cn 8811  ax-icn 8812  ax-addcl 8813  ax-addrcl 8814  ax-mulcl 8815  ax-mulrcl 8816  ax-mulcom 8817  ax-addass 8818  ax-mulass 8819  ax-distr 8820  ax-i2m1 8821  ax-1ne0 8822  ax-1rid 8823  ax-rnegex 8824  ax-rrecex 8825  ax-cnre 8826  ax-pre-lttri 8827  ax-pre-lttrn 8828  ax-pre-ltadd 8829  ax-pre-mulgt0 8830  ax-pre-sup 8831
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3or 935  df-3an 936  df-tru 1310  df-ex 1532  df-nf 1535  df-sb 1639  df-eu 2160  df-mo 2161  df-clab 2283  df-cleq 2289  df-clel 2292  df-nfc 2421  df-ne 2461  df-nel 2462  df-ral 2561  df-rex 2562  df-reu 2563  df-rmo 2564  df-rab 2565  df-v 2803  df-sbc 3005  df-csb 3095  df-dif 3168  df-un 3170  df-in 3172  df-ss 3179  df-pss 3181  df-nul 3469  df-if 3579  df-pw 3640  df-sn 3659  df-pr 3660  df-tp 3661  df-op 3662  df-uni 3844  df-iun 3923  df-br 4040  df-opab 4094  df-mpt 4095  df-tr 4130  df-eprel 4321  df-id 4325  df-po 4330  df-so 4331  df-fr 4368  df-we 4370  df-ord 4411  df-on 4412  df-lim 4413  df-suc 4414  df-om 4673  df-xp 4711  df-rel 4712  df-cnv 4713  df-co 4714  df-dm 4715  df-rn 4716  df-res 4717  df-ima 4718  df-iota 5235  df-fun 5273  df-fn 5274  df-f 5275  df-f1 5276  df-fo 5277  df-f1o 5278  df-fv 5279  df-ov 5877  df-oprab 5878  df-mpt2 5879  df-2nd 6139  df-riota 6320  df-recs 6404  df-rdg 6439  df-er 6676  df-en 6880  df-dom 6881  df-sdom 6882  df-sup 7210  df-pnf 8885  df-mnf 8886  df-xr 8887  df-ltxr 8888  df-le 8889  df-sub 9055  df-neg 9056  df-div 9440  df-nn 9763  df-2 9820  df-3 9821  df-4 9822  df-5 9823  df-6 9824  df-7 9825  df-8 9826  df-9 9827  df-10 9828  df-n0 9982  df-z 10041  df-dec 10141  df-uz 10247  df-rp 10371  df-fl 10941  df-mod 10990  df-seq 11063  df-exp 11121
  Copyright terms: Public domain W3C validator