MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  1259prm Structured version   Visualization version   GIF version

Theorem 1259prm 17075
Description: 1259 is a prime number. (Contributed by Mario Carneiro, 22-Feb-2014.) (Proof shortened by Mario Carneiro, 20-Apr-2015.)
Hypothesis
Ref Expression
1259prm.1 ๐‘ = 1259
Assertion
Ref Expression
1259prm ๐‘ โˆˆ โ„™

Proof of Theorem 1259prm
StepHypRef Expression
1 37prm 17060 . 2 37 โˆˆ โ„™
2 3nn0 12491 . . 3 3 โˆˆ โ„•0
3 4nn 12296 . . 3 4 โˆˆ โ„•
42, 3decnncl 12698 . 2 34 โˆˆ โ„•
5 1nn0 12489 . . . . . . . 8 1 โˆˆ โ„•0
6 2nn0 12490 . . . . . . . 8 2 โˆˆ โ„•0
75, 6deccl 12693 . . . . . . 7 12 โˆˆ โ„•0
8 5nn0 12493 . . . . . . 7 5 โˆˆ โ„•0
97, 8deccl 12693 . . . . . 6 125 โˆˆ โ„•0
10 8nn0 12496 . . . . . 6 8 โˆˆ โ„•0
119, 10deccl 12693 . . . . 5 1258 โˆˆ โ„•0
1211nn0cni 12485 . . . 4 1258 โˆˆ โ„‚
13 ax-1cn 11167 . . . 4 1 โˆˆ โ„‚
14 1259prm.1 . . . . 5 ๐‘ = 1259
15 eqid 2726 . . . . . 6 1258 = 1258
16 8p1e9 12363 . . . . . 6 (8 + 1) = 9
179, 10, 5, 15, 16decaddi 12738 . . . . 5 (1258 + 1) = 1259
1814, 17eqtr4i 2757 . . . 4 ๐‘ = (1258 + 1)
1912, 13, 18mvrraddi 11478 . . 3 (๐‘ โˆ’ 1) = 1258
20 4nn0 12492 . . . . 5 4 โˆˆ โ„•0
212, 20deccl 12693 . . . 4 34 โˆˆ โ„•0
22 7nn0 12495 . . . 4 7 โˆˆ โ„•0
23 eqid 2726 . . . 4 37 = 37
246, 2deccl 12693 . . . 4 23 โˆˆ โ„•0
25 eqid 2726 . . . . 5 34 = 34
26 eqid 2726 . . . . 5 23 = 23
27 3t3e9 12380 . . . . . . 7 (3 ยท 3) = 9
28 2p1e3 12355 . . . . . . 7 (2 + 1) = 3
2927, 28oveq12i 7416 . . . . . 6 ((3 ยท 3) + (2 + 1)) = (9 + 3)
30 9p3e12 12766 . . . . . 6 (9 + 3) = 12
3129, 30eqtri 2754 . . . . 5 ((3 ยท 3) + (2 + 1)) = 12
32 4t3e12 12776 . . . . . 6 (4 ยท 3) = 12
33 3cn 12294 . . . . . . 7 3 โˆˆ โ„‚
34 2cn 12288 . . . . . . 7 2 โˆˆ โ„‚
35 3p2e5 12364 . . . . . . 7 (3 + 2) = 5
3633, 34, 35addcomli 11407 . . . . . 6 (2 + 3) = 5
375, 6, 2, 32, 36decaddi 12738 . . . . 5 ((4 ยท 3) + 3) = 15
382, 20, 6, 2, 25, 26, 2, 8, 5, 31, 37decmac 12730 . . . 4 ((34 ยท 3) + 23) = 125
39 7cn 12307 . . . . . . 7 7 โˆˆ โ„‚
40 7t3e21 12788 . . . . . . 7 (7 ยท 3) = 21
4139, 33, 40mulcomli 11224 . . . . . 6 (3 ยท 7) = 21
42 1p2e3 12356 . . . . . 6 (1 + 2) = 3
436, 5, 6, 41, 42decaddi 12738 . . . . 5 ((3 ยท 7) + 2) = 23
44 4cn 12298 . . . . . 6 4 โˆˆ โ„‚
45 7t4e28 12789 . . . . . 6 (7 ยท 4) = 28
4639, 44, 45mulcomli 11224 . . . . 5 (4 ยท 7) = 28
4722, 2, 20, 25, 10, 6, 43, 46decmul1c 12743 . . . 4 (34 ยท 7) = 238
4821, 2, 22, 23, 10, 24, 38, 47decmul2c 12744 . . 3 (34 ยท 37) = 1258
4919, 48eqtr4i 2757 . 2 (๐‘ โˆ’ 1) = (34 ยท 37)
50 9nn0 12497 . . . . . . 7 9 โˆˆ โ„•0
519, 50deccl 12693 . . . . . 6 1259 โˆˆ โ„•0
5214, 51eqeltri 2823 . . . . 5 ๐‘ โˆˆ โ„•0
5352nn0cni 12485 . . . 4 ๐‘ โˆˆ โ„‚
54 npcan 11470 . . . 4 ((๐‘ โˆˆ โ„‚ โˆง 1 โˆˆ โ„‚) โ†’ ((๐‘ โˆ’ 1) + 1) = ๐‘)
5553, 13, 54mp2an 689 . . 3 ((๐‘ โˆ’ 1) + 1) = ๐‘
5655eqcomi 2735 . 2 ๐‘ = ((๐‘ โˆ’ 1) + 1)
57 1nn 12224 . 2 1 โˆˆ โ„•
58 2nn 12286 . 2 2 โˆˆ โ„•
592, 22deccl 12693 . . . . 5 37 โˆˆ โ„•0
6059numexp1 17016 . . . 4 (37โ†‘1) = 37
6160oveq2i 7415 . . 3 (34 ยท (37โ†‘1)) = (34 ยท 37)
6249, 61eqtr4i 2757 . 2 (๐‘ โˆ’ 1) = (34 ยท (37โ†‘1))
63 7nn 12305 . . . 4 7 โˆˆ โ„•
64 4lt7 12401 . . . 4 4 < 7
652, 20, 63, 64declt 12706 . . 3 34 < 37
6665, 60breqtrri 5168 . 2 34 < (37โ†‘1)
67141259lem4 17073 . 2 ((2โ†‘(๐‘ โˆ’ 1)) mod ๐‘) = (1 mod ๐‘)
68141259lem5 17074 . 2 (((2โ†‘34) โˆ’ 1) gcd ๐‘) = 1
691, 4, 49, 56, 4, 57, 58, 62, 66, 67, 68pockthi 16846 1 ๐‘ โˆˆ โ„™
Colors of variables: wff setvar class
Syntax hints:   = wceq 1533   โˆˆ wcel 2098  (class class class)co 7404  โ„‚cc 11107  1c1 11110   + caddc 11112   ยท cmul 11114   < clt 11249   โˆ’ cmin 11445  2c2 12268  3c3 12269  4c4 12270  5c5 12271  7c7 12273  8c8 12274  9c9 12275  โ„•0cn0 12473  cdc 12678  โ†‘cexp 14029  โ„™cprime 16612
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1789  ax-4 1803  ax-5 1905  ax-6 1963  ax-7 2003  ax-8 2100  ax-9 2108  ax-10 2129  ax-11 2146  ax-12 2163  ax-ext 2697  ax-rep 5278  ax-sep 5292  ax-nul 5299  ax-pow 5356  ax-pr 5420  ax-un 7721  ax-cnex 11165  ax-resscn 11166  ax-1cn 11167  ax-icn 11168  ax-addcl 11169  ax-addrcl 11170  ax-mulcl 11171  ax-mulrcl 11172  ax-mulcom 11173  ax-addass 11174  ax-mulass 11175  ax-distr 11176  ax-i2m1 11177  ax-1ne0 11178  ax-1rid 11179  ax-rnegex 11180  ax-rrecex 11181  ax-cnre 11182  ax-pre-lttri 11183  ax-pre-lttrn 11184  ax-pre-ltadd 11185  ax-pre-mulgt0 11186  ax-pre-sup 11187
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 845  df-3or 1085  df-3an 1086  df-tru 1536  df-fal 1546  df-ex 1774  df-nf 1778  df-sb 2060  df-mo 2528  df-eu 2557  df-clab 2704  df-cleq 2718  df-clel 2804  df-nfc 2879  df-ne 2935  df-nel 3041  df-ral 3056  df-rex 3065  df-rmo 3370  df-reu 3371  df-rab 3427  df-v 3470  df-sbc 3773  df-csb 3889  df-dif 3946  df-un 3948  df-in 3950  df-ss 3960  df-pss 3962  df-nul 4318  df-if 4524  df-pw 4599  df-sn 4624  df-pr 4626  df-op 4630  df-uni 4903  df-int 4944  df-iun 4992  df-br 5142  df-opab 5204  df-mpt 5225  df-tr 5259  df-id 5567  df-eprel 5573  df-po 5581  df-so 5582  df-fr 5624  df-we 5626  df-xp 5675  df-rel 5676  df-cnv 5677  df-co 5678  df-dm 5679  df-rn 5680  df-res 5681  df-ima 5682  df-pred 6293  df-ord 6360  df-on 6361  df-lim 6362  df-suc 6363  df-iota 6488  df-fun 6538  df-fn 6539  df-f 6540  df-f1 6541  df-fo 6542  df-f1o 6543  df-fv 6544  df-riota 7360  df-ov 7407  df-oprab 7408  df-mpo 7409  df-om 7852  df-1st 7971  df-2nd 7972  df-frecs 8264  df-wrecs 8295  df-recs 8369  df-rdg 8408  df-1o 8464  df-2o 8465  df-oadd 8468  df-er 8702  df-en 8939  df-dom 8940  df-sdom 8941  df-fin 8942  df-sup 9436  df-inf 9437  df-dju 9895  df-card 9933  df-pnf 11251  df-mnf 11252  df-xr 11253  df-ltxr 11254  df-le 11255  df-sub 11447  df-neg 11448  df-div 11873  df-nn 12214  df-2 12276  df-3 12277  df-4 12278  df-5 12279  df-6 12280  df-7 12281  df-8 12282  df-9 12283  df-n0 12474  df-xnn0 12546  df-z 12560  df-dec 12679  df-uz 12824  df-q 12934  df-rp 12978  df-fz 13488  df-fzo 13631  df-fl 13760  df-mod 13838  df-seq 13970  df-exp 14030  df-hash 14293  df-cj 15049  df-re 15050  df-im 15051  df-sqrt 15185  df-abs 15186  df-dvds 16202  df-gcd 16440  df-prm 16613  df-odz 16704  df-phi 16705  df-pc 16776
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator