ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  1259lem3 GIF version

Theorem 1259lem3 13278
Description: Lemma for 1259prm 13281. Calculate a power mod. In decimal, we calculate 2↑38 = 2↑34 · 2↑4≡870 · 16 = 11𝑁 + 71 and 2↑76 = (2↑34)↑2≡71↑2 = 4𝑁 + 5≡5. (Contributed by Mario Carneiro, 22-Feb-2014.) (Revised by Mario Carneiro, 20-Apr-2015.) (Proof shortened by AV, 16-Sep-2021.)
Hypothesis
Ref Expression
1259prm.1 𝑁 = 1259
Assertion
Ref Expression
1259lem3 ((2↑76) mod 𝑁) = (5 mod 𝑁)

Proof of Theorem 1259lem3
StepHypRef Expression
1 1259prm.1 . . 3 𝑁 = 1259
2 1nn0 9596 . . . . . 6 1 ∈ ℕ0
3 2nn0 9597 . . . . . 6 2 ∈ ℕ0
42, 3deccl 9807 . . . . 5 12 ∈ ℕ0
5 5nn0 9600 . . . . 5 5 ∈ ℕ0
64, 5deccl 9807 . . . 4 125 ∈ ℕ0
7 9nn 9490 . . . 4 9 ∈ ℕ
86, 7decnncl 9816 . . 3 1259 ∈ ℕ
91, 8eqeltri 2311 . 2 𝑁 ∈ ℕ
10 2nn 9483 . 2 2 ∈ ℕ
11 3nn0 9598 . . 3 3 ∈ ℕ0
12 8nn0 9603 . . 3 8 ∈ ℕ0
1311, 12deccl 9807 . 2 38 ∈ ℕ0
14 4z 9689 . 2 4 ∈ ℤ
15 7nn0 9602 . . 3 7 ∈ ℕ0
1615, 2deccl 9807 . 2 71 ∈ ℕ0
17 4nn0 9599 . . . 4 4 ∈ ℕ0
1811, 17deccl 9807 . . 3 34 ∈ ℕ0
192, 2deccl 9807 . . . 4 11 ∈ ℕ0
2019nn0zi 9681 . . 3 11 ∈ ℤ
2112, 15deccl 9807 . . . 4 87 ∈ ℕ0
22 0nn0 9595 . . . 4 0 ∈ ℕ0
2321, 22deccl 9807 . . 3 870 ∈ ℕ0
24 6nn0 9601 . . . 4 6 ∈ ℕ0
252, 24deccl 9807 . . 3 16 ∈ ℕ0
2611259lem2 13277 . . 3 ((2↑34) mod 𝑁) = (870 mod 𝑁)
27 2exp4 13245 . . . 4 (2↑4) = 16
2827oveq1i 6102 . . 3 ((2↑4) mod 𝑁) = (16 mod 𝑁)
29 eqid 2238 . . . 4 34 = 34
30 4p4e8 9465 . . . 4 (4 + 4) = 8
3111, 17, 17, 29, 30decaddi 9857 . . 3 (34 + 4) = 38
32 9nn0 9604 . . . . 5 9 ∈ ℕ0
33 eqid 2238 . . . . 5 71 = 71
34 10nn0 9814 . . . . 5 10 ∈ ℕ0
35 eqid 2238 . . . . . 6 11 = 11
3634nn0cni 9592 . . . . . . 7 10 ∈ ℂ
37 7cn 9403 . . . . . . 7 7 ∈ ℂ
38 dec10p 9840 . . . . . . 7 (10 + 7) = 17
3936, 37, 38addcomli 8484 . . . . . 6 (7 + 10) = 17
402, 11deccl 9807 . . . . . 6 13 ∈ ℕ0
416nn0cni 9592 . . . . . . . 8 125 ∈ ℂ
4241mullidi 8341 . . . . . . 7 (1 · 125) = 125
432dec0h 9819 . . . . . . . 8 1 = 01
44 eqid 2238 . . . . . . . 8 13 = 13
45 0p1e1 9433 . . . . . . . 8 (0 + 1) = 1
46 3cn 9394 . . . . . . . . 9 3 ∈ ℂ
47 ax-1cn 8284 . . . . . . . . 9 1 ∈ ℂ
48 3p1e4 9455 . . . . . . . . 9 (3 + 1) = 4
4946, 47, 48addcomli 8484 . . . . . . . 8 (1 + 3) = 4
5022, 2, 2, 11, 43, 44, 45, 49decadd 9851 . . . . . . 7 (1 + 13) = 14
51 2p1e3 9453 . . . . . . . 8 (2 + 1) = 3
52 eqid 2238 . . . . . . . 8 12 = 12
532, 3, 51, 52decsuc 9828 . . . . . . 7 (12 + 1) = 13
54 5p4e9 9468 . . . . . . 7 (5 + 4) = 9
554, 5, 2, 17, 42, 50, 53, 54decadd 9851 . . . . . 6 ((1 · 125) + (1 + 13)) = 139
56 5cn 9399 . . . . . . . 8 5 ∈ ℂ
57 7p5e12 9874 . . . . . . . 8 (7 + 5) = 12
5837, 56, 57addcomli 8484 . . . . . . 7 (5 + 7) = 12
594, 5, 15, 42, 53, 3, 58decaddci 9858 . . . . . 6 ((1 · 125) + 7) = 132
602, 2, 2, 15, 35, 39, 6, 3, 40, 55, 59decmac 9849 . . . . 5 ((11 · 125) + (7 + 10)) = 1392
61 9p1e10 9795 . . . . . 6 (9 + 1) = 10
62 9cn 9407 . . . . . . 7 9 ∈ ℂ
6319nn0cni 9592 . . . . . . 7 11 ∈ ℂ
64 9t11e99 9927 . . . . . . 7 (9 · 11) = 99
6562, 63, 64mulcomli 8345 . . . . . 6 (11 · 9) = 99
6632, 61, 65decsucc 9838 . . . . 5 ((11 · 9) + 1) = 100
676, 32, 15, 2, 1, 33, 19, 22, 34, 60, 66decma2c 9850 . . . 4 ((11 · 𝑁) + 71) = 13920
68 eqid 2238 . . . . 5 16 = 16
695, 3deccl 9807 . . . . . 6 52 ∈ ℕ0
7069, 3deccl 9807 . . . . 5 522 ∈ ℕ0
71 eqid 2238 . . . . . 6 870 = 870
72 eqid 2238 . . . . . 6 522 = 522
73 eqid 2238 . . . . . . 7 87 = 87
7469nn0cni 9592 . . . . . . . 8 52 ∈ ℂ
7574addridi 8481 . . . . . . 7 (52 + 0) = 52
76 8cn 9405 . . . . . . . . . 10 8 ∈ ℂ
7776mulridi 8340 . . . . . . . . 9 (8 · 1) = 8
7856addridi 8481 . . . . . . . . 9 (5 + 0) = 5
7977, 78oveq12i 6104 . . . . . . . 8 ((8 · 1) + (5 + 0)) = (8 + 5)
80 8p5e13 9880 . . . . . . . 8 (8 + 5) = 13
8179, 80eqtri 2259 . . . . . . 7 ((8 · 1) + (5 + 0)) = 13
8237mulridi 8340 . . . . . . . . 9 (7 · 1) = 7
8382oveq1i 6102 . . . . . . . 8 ((7 · 1) + 2) = (7 + 2)
84 7p2e9 9471 . . . . . . . 8 (7 + 2) = 9
8532dec0h 9819 . . . . . . . 8 9 = 09
8683, 84, 853eqtri 2263 . . . . . . 7 ((7 · 1) + 2) = 09
8712, 15, 5, 3, 73, 75, 2, 32, 22, 81, 86decmac 9849 . . . . . 6 ((87 · 1) + (52 + 0)) = 139
8847mul02i 8730 . . . . . . . 8 (0 · 1) = 0
8988oveq1i 6102 . . . . . . 7 ((0 · 1) + 2) = (0 + 2)
90 2cn 9390 . . . . . . . 8 2 ∈ ℂ
9190addlidi 8482 . . . . . . 7 (0 + 2) = 2
923dec0h 9819 . . . . . . 7 2 = 02
9389, 91, 923eqtri 2263 . . . . . 6 ((0 · 1) + 2) = 02
9421, 22, 69, 3, 71, 72, 2, 3, 22, 87, 93decmac 9849 . . . . 5 ((870 · 1) + 522) = 1392
95 8t6e48 9916 . . . . . . . 8 (8 · 6) = 48
96 4p1e5 9456 . . . . . . . 8 (4 + 1) = 5
97 8p4e12 9879 . . . . . . . 8 (8 + 4) = 12
9817, 12, 17, 95, 96, 3, 97decaddci 9858 . . . . . . 7 ((8 · 6) + 4) = 52
99 7t6e42 9910 . . . . . . 7 (7 · 6) = 42
10024, 12, 15, 73, 3, 17, 98, 99decmul1c 9862 . . . . . 6 (87 · 6) = 522
101 6cn 9401 . . . . . . 7 6 ∈ ℂ
102101mul02i 8730 . . . . . 6 (0 · 6) = 0
10324, 21, 22, 71, 22, 100, 102decmul1 9861 . . . . 5 (870 · 6) = 5220
10423, 2, 24, 68, 22, 70, 94, 103decmul2c 9863 . . . 4 (870 · 16) = 13920
10567, 104eqtr4i 2262 . . 3 ((11 · 𝑁) + 71) = (870 · 16)
1069, 10, 18, 20, 23, 16, 17, 25, 26, 28, 31, 105modxai 13229 . 2 ((2↑38) mod 𝑁) = (71 mod 𝑁)
107 eqid 2238 . . 3 38 = 38
108 2t3e6 9477 . . . . 5 (2 · 3) = 6
109108oveq1i 6102 . . . 4 ((2 · 3) + 1) = (6 + 1)
110 6p1e7 9458 . . . 4 (6 + 1) = 7
111109, 110eqtri 2259 . . 3 ((2 · 3) + 1) = 7
112 8t2e16 9912 . . . 4 (8 · 2) = 16
11376, 90, 112mulcomli 8345 . . 3 (2 · 8) = 16
1143, 11, 12, 107, 24, 2, 111, 113decmul2c 9863 . 2 (2 · 38) = 76
1155dec0h 9819 . . . 4 5 = 05
116 eqid 2238 . . . . 5 125 = 125
117 4cn 9397 . . . . . . 7 4 ∈ ℂ
118117addlidi 8482 . . . . . 6 (0 + 4) = 4
11917dec0h 9819 . . . . . 6 4 = 04
120118, 119eqtri 2259 . . . . 5 (0 + 4) = 04
12191, 92eqtri 2259 . . . . . 6 (0 + 2) = 02
122117mulridi 8340 . . . . . . . 8 (4 · 1) = 4
123122, 45oveq12i 6104 . . . . . . 7 ((4 · 1) + (0 + 1)) = (4 + 1)
124123, 96eqtri 2259 . . . . . 6 ((4 · 1) + (0 + 1)) = 5
125 4t2e8 9479 . . . . . . . 8 (4 · 2) = 8
126125oveq1i 6102 . . . . . . 7 ((4 · 2) + 2) = (8 + 2)
127 8p2e10 9877 . . . . . . 7 (8 + 2) = 10
128126, 127eqtri 2259 . . . . . 6 ((4 · 2) + 2) = 10
1292, 3, 22, 3, 52, 121, 17, 22, 2, 124, 128decma2c 9850 . . . . 5 ((4 · 12) + (0 + 2)) = 50
130 5t4e20 9899 . . . . . . 7 (5 · 4) = 20
13156, 117, 130mulcomli 8345 . . . . . 6 (4 · 5) = 20
1323, 22, 17, 131, 118decaddi 9857 . . . . 5 ((4 · 5) + 4) = 24
1334, 5, 22, 17, 116, 120, 17, 17, 3, 129, 132decma2c 9850 . . . 4 ((4 · 125) + (0 + 4)) = 504
134 9t4e36 9921 . . . . . 6 (9 · 4) = 36
13562, 117, 134mulcomli 8345 . . . . 5 (4 · 9) = 36
136 6p5e11 9870 . . . . 5 (6 + 5) = 11
13711, 24, 5, 135, 48, 2, 136decaddci 9858 . . . 4 ((4 · 9) + 5) = 41
1386, 32, 22, 5, 1, 115, 17, 2, 17, 133, 137decma2c 9850 . . 3 ((4 · 𝑁) + 5) = 5041
139 7t7e49 9911 . . . . . 6 (7 · 7) = 49
14017, 96, 139decsucc 9838 . . . . 5 ((7 · 7) + 1) = 50
14137mullidi 8341 . . . . . . 7 (1 · 7) = 7
142141oveq1i 6102 . . . . . 6 ((1 · 7) + 7) = (7 + 7)
143 7p7e14 9876 . . . . . 6 (7 + 7) = 14
144142, 143eqtri 2259 . . . . 5 ((1 · 7) + 7) = 14
14515, 2, 15, 33, 15, 17, 2, 140, 144decrmac 9855 . . . 4 ((71 · 7) + 7) = 504
14616nn0cni 9592 . . . . 5 71 ∈ ℂ
147146mulridi 8340 . . . 4 (71 · 1) = 71
14816, 15, 2, 33, 2, 15, 145, 147decmul2c 9863 . . 3 (71 · 71) = 5041
149138, 148eqtr4i 2262 . 2 ((4 · 𝑁) + 5) = (71 · 71)
1509, 10, 13, 14, 16, 5, 106, 114, 149mod2xi 13230 1 ((2↑76) mod 𝑁) = (5 mod 𝑁)
Colors of variables:    wff set class
This proof depends on syntax axioms:   = wceq 1402  (class class class)co 6092  0cc0 8191  1c1 8192   + caddc 8194   · cmul 8196  ℕcn 9319  2c2 9370  3c3 9371  4c4 9372  5c5 9373  6c6 9374  7c7 9375  8c8 9376  9c9 9377  cdc 9793   mod cmo 10785  ↑cexp 11001
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 623  ax-in2 624  ax-io 721  ax-5 1500  ax-7 1501  ax-gen 1502  ax-ie1 1546  ax-ie2 1547  ax-8 1557  ax-10 1558  ax-11 1559  ax-i12 1560  ax-bndl 1562  ax-4 1563  ax-17 1579  ax-i9 1583  ax-ial 1587  ax-i5r 1588  ax-14 2212  ax-ext 2220  ax-coll 4248  ax-sep 4251  ax-nul 4261  ax-pow 4313  ax-pr 4348  ax-un 4580  ax-setind 4686  ax-iinf 4737  ax-cnex 8282  ax-resscn 8283  ax-1cn 8284  ax-1re 8285  ax-icn 8286  ax-addcl 8287  ax-addrcl 8288  ax-mulcl 8289  ax-mulrcl 8290  ax-addcom 8291  ax-mulcom 8292  ax-addass 8293  ax-mulass 8294  ax-distr 8295  ax-i2m1 8296  ax-0lt1 8297  ax-1rid 8298  ax-0id 8299  ax-rnegex 8300  ax-precex 8301  ax-cnre 8302  ax-pre-ltirr 8303  ax-pre-ltwlin 8304  ax-pre-lttrn 8305  ax-pre-apti 8306  ax-pre-ltadd 8307  ax-pre-mulgt0 8308  ax-pre-mulext 8309  ax-arch 8310
This proof depends on definitions:  df-bi 117  df-dc 847  df-3or 1010  df-3an 1011  df-tru 1405  df-fal 1408  df-nf 1514  df-sb 1816  df-eu 2089  df-mo 2090  df-clab 2225  df-cleq 2231  df-clel 2234  df-nfc 2381  df-ne 2421  df-nel 2516  df-ral 2533  df-rex 2534  df-reu 2535  df-rmo 2536  df-rab 2537  df-v 2823  df-sbc 3052  df-csb 3148  df-dif 3222  df-un 3224  df-in 3226  df-ss 3233  df-nul 3521  df-if 3639  df-pw 3690  df-sn 3715  df-pr 3716  df-op 3718  df-uni 3936  df-int 3971  df-iun 4014  df-br 4132  df-opab 4194  df-mpt 4195  df-tr 4232  df-id 4440  df-po 4443  df-iso 4444  df-iord 4513  df-on 4515  df-ilim 4516  df-suc 4518  df-iom 4740  df-xp 4782  df-rel 4783  df-cnv 4784  df-co 4785  df-dm 4786  df-rn 4787  df-res 4788  df-ima 4789  df-iota 5344  df-fun 5386  df-fn 5387  df-f 5388  df-f1 5389  df-fo 5390  df-f1o 5391  df-fv 5392  df-riota 6045  df-ov 6095  df-oprab 6096  df-mpo 6097  df-1st 6382  df-2nd 6383  df-recs 6586  df-frec 6672  df-pnf 8374  df-mnf 8375  df-xr 8376  df-ltxr 8377  df-le 8378  df-sub 8512  df-neg 8513  df-reap 8917  df-ap 8924  df-div 9017  df-inn 9320  df-2 9378  df-3 9379  df-4 9380  df-5 9381  df-6 9382  df-7 9383  df-8 9384  df-9 9385  df-n0 9581  df-z 9660  df-dec 9794  df-uz 9943  df-q 10041  df-rp 10077  df-fl 10727  df-mod 10786  df-seqfrec 10911  df-exp 11002
This theorem is used by:  1259lem4  13279
  Copyright terms: Public domain W3C validator