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

Theorem 1259lem1 14460
Description: Lemma for 1259prm 14465. Calculate a power mod. In decimal, we calculate  2 ^ 1 6  =  5 2 N  +  6 8  ==  6 8 and  2 ^ 1 7  ==  6 8  x.  2  =  1 3 6 in this lemma. (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
1259lem1  |-  ( ( 2 ^; 1 7 )  mod 
N )  =  (;; 1 3 6  mod 
N )

Proof of Theorem 1259lem1
StepHypRef Expression
1 1259prm.1 . . 3  |-  N  = ;;; 1 2 5 9
2 1nn0 10800 . . . . . 6  |-  1  e.  NN0
3 2nn0 10801 . . . . . 6  |-  2  e.  NN0
42, 3deccl 10979 . . . . 5  |- ; 1 2  e.  NN0
5 5nn0 10804 . . . . 5  |-  5  e.  NN0
64, 5deccl 10979 . . . 4  |- ;; 1 2 5  e.  NN0
7 9nn 10689 . . . 4  |-  9  e.  NN
86, 7decnncl 10978 . . 3  |- ;;; 1 2 5 9  e.  NN
91, 8eqeltri 2544 . 2  |-  N  e.  NN
10 2nn 10682 . 2  |-  2  e.  NN
11 6nn0 10805 . . 3  |-  6  e.  NN0
122, 11deccl 10979 . 2  |- ; 1 6  e.  NN0
13 0z 10864 . 2  |-  0  e.  ZZ
14 8nn0 10807 . . 3  |-  8  e.  NN0
1511, 14deccl 10979 . 2  |- ; 6 8  e.  NN0
16 3nn0 10802 . . . 4  |-  3  e.  NN0
172, 16deccl 10979 . . 3  |- ; 1 3  e.  NN0
1817, 11deccl 10979 . 2  |- ;; 1 3 6  e.  NN0
195, 3deccl 10979 . . . 4  |- ; 5 2  e.  NN0
2019nn0zi 10878 . . 3  |- ; 5 2  e.  ZZ
213, 14nn0expcli 12148 . . 3  |-  ( 2 ^ 8 )  e. 
NN0
22 eqid 2460 . . 3  |-  ( ( 2 ^ 8 )  mod  N )  =  ( ( 2 ^ 8 )  mod  N
)
2314nn0cni 10796 . . . 4  |-  8  e.  CC
24 2cn 10595 . . . 4  |-  2  e.  CC
25 8t2e16 11053 . . . 4  |-  ( 8  x.  2 )  = ; 1
6
2623, 24, 25mulcomli 9592 . . 3  |-  ( 2  x.  8 )  = ; 1
6
27 9nn0 10808 . . . . 5  |-  9  e.  NN0
28 eqid 2460 . . . . 5  |- ; 6 8  = ; 6 8
29 4nn0 10803 . . . . . 6  |-  4  e.  NN0
30 7nn0 10806 . . . . . 6  |-  7  e.  NN0
3129, 30deccl 10979 . . . . 5  |- ; 4 7  e.  NN0
32 eqid 2460 . . . . . 6  |- ;; 1 2 5  = ;; 1 2 5
33 0nn0 10799 . . . . . . 7  |-  0  e.  NN0
3411dec0h 10981 . . . . . . 7  |-  6  = ; 0 6
35 eqid 2460 . . . . . . 7  |- ; 4 7  = ; 4 7
36 4cn 10602 . . . . . . . . . 10  |-  4  e.  CC
3736addid2i 9756 . . . . . . . . 9  |-  ( 0  +  4 )  =  4
3837oveq1i 6285 . . . . . . . 8  |-  ( ( 0  +  4 )  +  1 )  =  ( 4  +  1 )
39 4p1e5 10651 . . . . . . . 8  |-  ( 4  +  1 )  =  5
4038, 39eqtri 2489 . . . . . . 7  |-  ( ( 0  +  4 )  +  1 )  =  5
41 7cn 10608 . . . . . . . 8  |-  7  e.  CC
42 6cn 10606 . . . . . . . 8  |-  6  e.  CC
43 7p6e13 11019 . . . . . . . 8  |-  ( 7  +  6 )  = ; 1
3
4441, 42, 43addcomli 9760 . . . . . . 7  |-  ( 6  +  7 )  = ; 1
3
4533, 11, 29, 30, 34, 35, 40, 16, 44decaddc 11007 . . . . . 6  |-  ( 6  + ; 4 7 )  = ; 5
3
463, 11deccl 10979 . . . . . 6  |- ; 2 6  e.  NN0
47 eqid 2460 . . . . . . 7  |- ; 1 2  = ; 1 2
485dec0h 10981 . . . . . . . 8  |-  5  = ; 0 5
49 eqid 2460 . . . . . . . 8  |- ; 2 6  = ; 2 6
5024addid2i 9756 . . . . . . . . . 10  |-  ( 0  +  2 )  =  2
5150oveq1i 6285 . . . . . . . . 9  |-  ( ( 0  +  2 )  +  1 )  =  ( 2  +  1 )
52 2p1e3 10648 . . . . . . . . 9  |-  ( 2  +  1 )  =  3
5351, 52eqtri 2489 . . . . . . . 8  |-  ( ( 0  +  2 )  +  1 )  =  3
54 5cn 10604 . . . . . . . . 9  |-  5  e.  CC
55 6p5e11 11015 . . . . . . . . 9  |-  ( 6  +  5 )  = ; 1
1
5642, 54, 55addcomli 9760 . . . . . . . 8  |-  ( 5  +  6 )  = ; 1
1
5733, 5, 3, 11, 48, 49, 53, 2, 56decaddc 11007 . . . . . . 7  |-  ( 5  + ; 2 6 )  = ; 3
1
58 10nn0 10809 . . . . . . 7  |-  10  e.  NN0
59 eqid 2460 . . . . . . . 8  |- ; 5 2  = ; 5 2
6016dec0h 10981 . . . . . . . . 9  |-  3  = ; 0 3
61 dec10 10995 . . . . . . . . 9  |-  10  = ; 1 0
62 ax-1cn 9539 . . . . . . . . . 10  |-  1  e.  CC
6362addid2i 9756 . . . . . . . . 9  |-  ( 0  +  1 )  =  1
64 3cn 10599 . . . . . . . . . 10  |-  3  e.  CC
6564addid1i 9755 . . . . . . . . 9  |-  ( 3  +  0 )  =  3
6633, 16, 2, 33, 60, 61, 63, 65decadd 11006 . . . . . . . 8  |-  ( 3  +  10 )  = ; 1
3
6754mulid1i 9587 . . . . . . . . . 10  |-  ( 5  x.  1 )  =  5
6862addid1i 9755 . . . . . . . . . 10  |-  ( 1  +  0 )  =  1
6967, 68oveq12i 6287 . . . . . . . . 9  |-  ( ( 5  x.  1 )  +  ( 1  +  0 ) )  =  ( 5  +  1 )
70 5p1e6 10652 . . . . . . . . 9  |-  ( 5  +  1 )  =  6
7169, 70eqtri 2489 . . . . . . . 8  |-  ( ( 5  x.  1 )  +  ( 1  +  0 ) )  =  6
7224mulid1i 9587 . . . . . . . . . 10  |-  ( 2  x.  1 )  =  2
7372oveq1i 6285 . . . . . . . . 9  |-  ( ( 2  x.  1 )  +  3 )  =  ( 2  +  3 )
74 3p2e5 10657 . . . . . . . . . 10  |-  ( 3  +  2 )  =  5
7564, 24, 74addcomli 9760 . . . . . . . . 9  |-  ( 2  +  3 )  =  5
7673, 75, 483eqtri 2493 . . . . . . . 8  |-  ( ( 2  x.  1 )  +  3 )  = ; 0
5
775, 3, 2, 16, 59, 66, 2, 5, 33, 71, 76decmac 11004 . . . . . . 7  |-  ( (; 5
2  x.  1 )  +  ( 3  +  10 ) )  = ; 6
5
782dec0h 10981 . . . . . . . 8  |-  1  = ; 0 1
79 5t2e10 10679 . . . . . . . . . 10  |-  ( 5  x.  2 )  =  10
80 00id 9743 . . . . . . . . . 10  |-  ( 0  +  0 )  =  0
8179, 80oveq12i 6287 . . . . . . . . 9  |-  ( ( 5  x.  2 )  +  ( 0  +  0 ) )  =  ( 10  +  0 )
82 10nn 10690 . . . . . . . . . . 11  |-  10  e.  NN
8382nncni 10535 . . . . . . . . . 10  |-  10  e.  CC
8483addid1i 9755 . . . . . . . . 9  |-  ( 10  +  0 )  =  10
8581, 84eqtri 2489 . . . . . . . 8  |-  ( ( 5  x.  2 )  +  ( 0  +  0 ) )  =  10
86 2t2e4 10674 . . . . . . . . . 10  |-  ( 2  x.  2 )  =  4
8786oveq1i 6285 . . . . . . . . 9  |-  ( ( 2  x.  2 )  +  1 )  =  ( 4  +  1 )
8887, 39, 483eqtri 2493 . . . . . . . 8  |-  ( ( 2  x.  2 )  +  1 )  = ; 0
5
895, 3, 33, 2, 59, 78, 3, 5, 33, 85, 88decmac 11004 . . . . . . 7  |-  ( (; 5
2  x.  2 )  +  1 )  = ; 10 5
902, 3, 16, 2, 47, 57, 19, 5, 58, 77, 89decma2c 11005 . . . . . 6  |-  ( (; 5
2  x. ; 1 2 )  +  ( 5  + ; 2 6 ) )  = ;; 6 5 5
9163oveq2i 6286 . . . . . . . 8  |-  ( ( 5  x.  5 )  +  ( 0  +  1 ) )  =  ( ( 5  x.  5 )  +  1 )
92 5t5e25 11041 . . . . . . . . 9  |-  ( 5  x.  5 )  = ; 2
5
933, 5, 70, 92decsuc 10988 . . . . . . . 8  |-  ( ( 5  x.  5 )  +  1 )  = ; 2
6
9491, 93eqtri 2489 . . . . . . 7  |-  ( ( 5  x.  5 )  +  ( 0  +  1 ) )  = ; 2
6
9554, 24, 79mulcomli 9592 . . . . . . . . 9  |-  ( 2  x.  5 )  =  10
9695, 61eqtri 2489 . . . . . . . 8  |-  ( 2  x.  5 )  = ; 1
0
9764addid2i 9756 . . . . . . . 8  |-  ( 0  +  3 )  =  3
982, 33, 16, 96, 97decaddi 11009 . . . . . . 7  |-  ( ( 2  x.  5 )  +  3 )  = ; 1
3
995, 3, 33, 16, 59, 60, 5, 16, 2, 94, 98decmac 11004 . . . . . 6  |-  ( (; 5
2  x.  5 )  +  3 )  = ;; 2 6 3
1004, 5, 5, 16, 32, 45, 19, 16, 46, 90, 99decma2c 11005 . . . . 5  |-  ( (; 5
2  x. ;; 1 2 5 )  +  ( 6  + ; 4 7 ) )  = ;;; 6 5 5 3
10114dec0h 10981 . . . . . 6  |-  8  = ; 0 8
10250oveq2i 6286 . . . . . . 7  |-  ( ( 5  x.  9 )  +  ( 0  +  2 ) )  =  ( ( 5  x.  9 )  +  2 )
103 9cn 10612 . . . . . . . . 9  |-  9  e.  CC
104 9t5e45 11063 . . . . . . . . 9  |-  ( 9  x.  5 )  = ; 4
5
105103, 54, 104mulcomli 9592 . . . . . . . 8  |-  ( 5  x.  9 )  = ; 4
5
106 5p2e7 10662 . . . . . . . 8  |-  ( 5  +  2 )  =  7
10729, 5, 3, 105, 106decaddi 11009 . . . . . . 7  |-  ( ( 5  x.  9 )  +  2 )  = ; 4
7
108102, 107eqtri 2489 . . . . . 6  |-  ( ( 5  x.  9 )  +  ( 0  +  2 ) )  = ; 4
7
109 9t2e18 11060 . . . . . . . 8  |-  ( 9  x.  2 )  = ; 1
8
110103, 24, 109mulcomli 9592 . . . . . . 7  |-  ( 2  x.  9 )  = ; 1
8
111 1p1e2 10638 . . . . . . 7  |-  ( 1  +  1 )  =  2
112 8p8e16 11026 . . . . . . 7  |-  ( 8  +  8 )  = ; 1
6
1132, 14, 14, 110, 111, 11, 112decaddci 11010 . . . . . 6  |-  ( ( 2  x.  9 )  +  8 )  = ; 2
6
1145, 3, 33, 14, 59, 101, 27, 11, 3, 108, 113decmac 11004 . . . . 5  |-  ( (; 5
2  x.  9 )  +  8 )  = ;; 4 7 6
1156, 27, 11, 14, 1, 28, 19, 11, 31, 100, 114decma2c 11005 . . . 4  |-  ( (; 5
2  x.  N )  + ; 6 8 )  = ;;;; 6 5 5 3 6
116 2exp16 14422 . . . 4  |-  ( 2 ^; 1 6 )  = ;;;; 6 5 5 3 6
117 eqid 2460 . . . . 5  |-  ( 2 ^ 8 )  =  ( 2 ^ 8 )
118 eqid 2460 . . . . 5  |-  ( ( 2 ^ 8 )  x.  ( 2 ^ 8 ) )  =  ( ( 2 ^ 8 )  x.  (
2 ^ 8 ) )
1193, 14, 26, 117, 118numexp2x 14413 . . . 4  |-  ( 2 ^; 1 6 )  =  ( ( 2 ^ 8 )  x.  (
2 ^ 8 ) )
120115, 116, 1193eqtr2i 2495 . . 3  |-  ( (; 5
2  x.  N )  + ; 6 8 )  =  ( ( 2 ^ 8 )  x.  (
2 ^ 8 ) )
1219, 10, 14, 20, 21, 15, 22, 26, 120mod2xi 14403 . 2  |-  ( ( 2 ^; 1 6 )  mod 
N )  =  (; 6
8  mod  N )
122 6p1e7 10653 . . 3  |-  ( 6  +  1 )  =  7
123 eqid 2460 . . 3  |- ; 1 6  = ; 1 6
1242, 11, 122, 123decsuc 10988 . 2  |-  (; 1 6  +  1 )  = ; 1 7
12518nn0cni 10796 . . . 4  |- ;; 1 3 6  e.  CC
126125addid2i 9756 . . 3  |-  ( 0  + ;; 1 3 6 )  = ;; 1 3 6
1279nncni 10535 . . . . 5  |-  N  e.  CC
128127mul02i 9757 . . . 4  |-  ( 0  x.  N )  =  0
129128oveq1i 6285 . . 3  |-  ( ( 0  x.  N )  + ;; 1 3 6 )  =  ( 0  + ;; 1 3 6 )
130 6t2e12 11042 . . . . 5  |-  ( 6  x.  2 )  = ; 1
2
1312, 3, 52, 130decsuc 10988 . . . 4  |-  ( ( 6  x.  2 )  +  1 )  = ; 1
3
1323, 11, 14, 28, 11, 2, 131, 25decmul1c 11012 . . 3  |-  (; 6 8  x.  2 )  = ;; 1 3 6
133126, 129, 1323eqtr4i 2499 . 2  |-  ( ( 0  x.  N )  + ;; 1 3 6 )  =  (; 6
8  x.  2 )
1349, 10, 12, 13, 15, 18, 121, 124, 133modxp1i 14404 1  |-  ( ( 2 ^; 1 7 )  mod 
N )  =  (;; 1 3 6  mod 
N )
Colors of variables: wff setvar class
Syntax hints:    = wceq 1374  (class class class)co 6275   0cc0 9481   1c1 9482    + caddc 9484    x. cmul 9486   NNcn 10525   2c2 10574   3c3 10575   4c4 10576   5c5 10577   6c6 10578   7c7 10579   8c8 10580   9c9 10581   10c10 10582  ;cdc 10965    mod cmo 11952   ^cexp 12122
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1596  ax-4 1607  ax-5 1675  ax-6 1714  ax-7 1734  ax-8 1764  ax-9 1766  ax-10 1781  ax-11 1786  ax-12 1798  ax-13 1961  ax-ext 2438  ax-sep 4561  ax-nul 4569  ax-pow 4618  ax-pr 4679  ax-un 6567  ax-cnex 9537  ax-resscn 9538  ax-1cn 9539  ax-icn 9540  ax-addcl 9541  ax-addrcl 9542  ax-mulcl 9543  ax-mulrcl 9544  ax-mulcom 9545  ax-addass 9546  ax-mulass 9547  ax-distr 9548  ax-i2m1 9549  ax-1ne0 9550  ax-1rid 9551  ax-rnegex 9552  ax-rrecex 9553  ax-cnre 9554  ax-pre-lttri 9555  ax-pre-lttrn 9556  ax-pre-ltadd 9557  ax-pre-mulgt0 9558  ax-pre-sup 9559
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3or 969  df-3an 970  df-tru 1377  df-ex 1592  df-nf 1595  df-sb 1707  df-eu 2272  df-mo 2273  df-clab 2446  df-cleq 2452  df-clel 2455  df-nfc 2610  df-ne 2657  df-nel 2658  df-ral 2812  df-rex 2813  df-reu 2814  df-rmo 2815  df-rab 2816  df-v 3108  df-sbc 3325  df-csb 3429  df-dif 3472  df-un 3474  df-in 3476  df-ss 3483  df-pss 3485  df-nul 3779  df-if 3933  df-pw 4005  df-sn 4021  df-pr 4023  df-tp 4025  df-op 4027  df-uni 4239  df-iun 4320  df-br 4441  df-opab 4499  df-mpt 4500  df-tr 4534  df-eprel 4784  df-id 4788  df-po 4793  df-so 4794  df-fr 4831  df-we 4833  df-ord 4874  df-on 4875  df-lim 4876  df-suc 4877  df-xp 4998  df-rel 4999  df-cnv 5000  df-co 5001  df-dm 5002  df-rn 5003  df-res 5004  df-ima 5005  df-iota 5542  df-fun 5581  df-fn 5582  df-f 5583  df-f1 5584  df-fo 5585  df-f1o 5586  df-fv 5587  df-riota 6236  df-ov 6278  df-oprab 6279  df-mpt2 6280  df-om 6672  df-2nd 6775  df-recs 7032  df-rdg 7066  df-er 7301  df-en 7507  df-dom 7508  df-sdom 7509  df-sup 7890  df-pnf 9619  df-mnf 9620  df-xr 9621  df-ltxr 9622  df-le 9623  df-sub 9796  df-neg 9797  df-div 10196  df-nn 10526  df-2 10583  df-3 10584  df-4 10585  df-5 10586  df-6 10587  df-7 10588  df-8 10589  df-9 10590  df-10 10591  df-n0 10785  df-z 10854  df-dec 10966  df-uz 11072  df-rp 11210  df-fl 11886  df-mod 11953  df-seq 12064  df-exp 12123
This theorem is referenced by:  1259lem2  14461  1259lem4  14463
  Copyright terms: Public domain W3C validator