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

Theorem 1sgmprm 27677
Description: The sum of divisors for a prime is 𝑃 + 1 because the only divisors are 1 and 𝑃. (Contributed by Mario Carneiro, 17-May-2016.)
Assertion
Ref Expression
1sgmprm (𝑃 ∈ ℙ → (1 σ 𝑃) = (𝑃 + 1))

Proof of Theorem 1sgmprm
Dummy variable 𝑘 is distinct from all other variables.
StepHypRef Expression
1 ax-1cn 11316 . . 3 1 ∈ ℂ
2 1nn0 12682 . . 3 1 ∈ ℕ0
3 sgmppw 27675 . . 3 ((1 ∈ ℂ ∧ 𝑃 ∈ ℙ ∧ 1 ∈ ℕ0) → (1 σ (𝑃↑1)) = Σ𝑘 ∈ (0...1)((𝑃↑𝑐1)↑𝑘))
41, 2, 3mp3an13 1484 . 2 (𝑃 ∈ ℙ → (1 σ (𝑃↑1)) = Σ𝑘 ∈ (0...1)((𝑃↑𝑐1)↑𝑘))
5 prmnn 16915 . . . . 5 (𝑃 ∈ ℙ → 𝑃 ∈ ℕ)
65nncnd 12411 . . . 4 (𝑃 ∈ ℙ → 𝑃 ∈ ℂ)
76exp1d 14346 . . 3 (𝑃 ∈ ℙ → (𝑃↑1) = 𝑃)
87oveq2d 7486 . 2 (𝑃 ∈ ℙ → (1 σ (𝑃↑1)) = (1 σ 𝑃))
96adantr 486 . . . . . 6 ((𝑃 ∈ ℙ ∧ 𝑘 ∈ (0...1)) → 𝑃 ∈ ℂ)
109cxp1d 27167 . . . . 5 ((𝑃 ∈ ℙ ∧ 𝑘 ∈ (0...1)) → (𝑃↑𝑐1) = 𝑃)
1110oveq1d 7485 . . . 4 ((𝑃 ∈ ℙ ∧ 𝑘 ∈ (0...1)) → ((𝑃↑𝑐1)↑𝑘) = (𝑃↑𝑘))
1211sumeq2dv 15935 . . 3 (𝑃 ∈ ℙ → Σ𝑘 ∈ (0...1)((𝑃↑𝑐1)↑𝑘) = Σ𝑘 ∈ (0...1)(𝑃↑𝑘))
13 1m1e0 12475 . . . . . . . 8 (1 − 1) = 0
1413oveq2i 7481 . . . . . . 7 (0...(1 − 1)) = (0...0)
1514sumeq1i 15930 . . . . . 6 Σ𝑘 ∈ (0...(1 − 1))(𝑃↑𝑘) = Σ𝑘 ∈ (0...0)(𝑃↑𝑘)
16 0z 12764 . . . . . . . 8 0 ∈ ℤ
176exp0d 14345 . . . . . . . . 9 (𝑃 ∈ ℙ → (𝑃↑0) = 1)
1817, 1eqeltrdi 2883 . . . . . . . 8 (𝑃 ∈ ℙ → (𝑃↑0) ∈ ℂ)
19 oveq2 7478 . . . . . . . . 9 (𝑘 = 0 → (𝑃↑𝑘) = (𝑃↑0))
2019fsum1 15979 . . . . . . . 8 ((0 ∈ ℤ ∧ (𝑃↑0) ∈ ℂ) → Σ𝑘 ∈ (0...0)(𝑃↑𝑘) = (𝑃↑0))
2116, 18, 20sylancr 599 . . . . . . 7 (𝑃 ∈ ℙ → Σ𝑘 ∈ (0...0)(𝑃↑𝑘) = (𝑃↑0))
2221, 17eqtrd 2809 . . . . . 6 (𝑃 ∈ ℙ → Σ𝑘 ∈ (0...0)(𝑃↑𝑘) = 1)
2315, 22eqtrid 2821 . . . . 5 (𝑃 ∈ ℙ → Σ𝑘 ∈ (0...(1 − 1))(𝑃↑𝑘) = 1)
2423, 7oveq12d 7488 . . . 4 (𝑃 ∈ ℙ → (Σ𝑘 ∈ (0...(1 − 1))(𝑃↑𝑘) + (𝑃↑1)) = (1 + 𝑃))
252a1i 11 . . . . . 6 (𝑃 ∈ ℙ → 1 ∈ ℕ0)
26 nn0uz 13063 . . . . . 6 ℕ0 = (ℤ≥‘0)
2725, 26eleqtrdi 2885 . . . . 5 (𝑃 ∈ ℙ → 1 ∈ (ℤ≥‘0))
28 elfznn0 13814 . . . . . 6 (𝑘 ∈ (0...1) → 𝑘 ∈ ℕ0)
29 expcl 14284 . . . . . 6 ((𝑃 ∈ ℂ ∧ 𝑘 ∈ ℕ0) → (𝑃↑𝑘) ∈ ℂ)
306, 28, 29syl2an 608 . . . . 5 ((𝑃 ∈ ℙ ∧ 𝑘 ∈ (0...1)) → (𝑃↑𝑘) ∈ ℂ)
31 oveq2 7478 . . . . 5 (𝑘 = 1 → (𝑃↑𝑘) = (𝑃↑1))
3227, 30, 31fsumm1 15983 . . . 4 (𝑃 ∈ ℙ → Σ𝑘 ∈ (0...1)(𝑃↑𝑘) = (Σ𝑘 ∈ (0...(1 − 1))(𝑃↑𝑘) + (𝑃↑1)))
33 addcom 11555 . . . . 5 ((𝑃 ∈ ℂ ∧ 1 ∈ ℂ) → (𝑃 + 1) = (1 + 𝑃))
346, 1, 33sylancl 598 . . . 4 (𝑃 ∈ ℙ → (𝑃 + 1) = (1 + 𝑃))
3524, 32, 343eqtr4d 2819 . . 3 (𝑃 ∈ ℙ → Σ𝑘 ∈ (0...1)(𝑃↑𝑘) = (𝑃 + 1))
3612, 35eqtrd 2809 . 2 (𝑃 ∈ ℙ → Σ𝑘 ∈ (0...1)((𝑃↑𝑐1)↑𝑘) = (𝑃 + 1))
374, 8, 363eqtr3d 2817 1 (𝑃 ∈ ℙ → (1 σ 𝑃) = (𝑃 + 1))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1572   ∈ wcel 2156  ‘cfv 6579  (class class class)co 7470  ℂcc 11256  0cc0 11258  1c1 11259   + caddc 11261   − cmin 11600  ℕ0cn0 12666  ℤcz 12753  ℤ≥cuz 13025  ...cfz 13699  ↑cexp 14266  Σcsu 15919  ℙcprime 16912  ↑𝑐ccxp 27016   σ csgm 27574
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1834  ax-4 1848  ax-5 1951  ax-6 2009  ax-7 2050  ax-8 2158  ax-9 2166  ax-10 2189  ax-11 2206  ax-12 2225  ax-ext 2746  ax-rep 5246  ax-sep 5263  ax-nul 5274  ax-pow 5342  ax-pr 5406  ax-un 7802  ax-inf2 9698  ax-cnex 11314  ax-resscn 11315  ax-1cn 11316  ax-icn 11317  ax-addcl 11318  ax-addrcl 11319  ax-mulcl 11320  ax-mulrcl 11321  ax-mulcom 11322  ax-addass 11323  ax-mulass 11324  ax-distr 11325  ax-i2m1 11326  ax-1ne0 11327  ax-1rid 11328  ax-rnegex 11329  ax-rrecex 11330  ax-cnre 11331  ax-pre-lttri 11332  ax-pre-lttrn 11333  ax-pre-ltadd 11334  ax-pre-mulgt0 11335  ax-pre-sup 11336  ax-addf 11337
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1105  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1819  df-nf 1823  df-sb 2110  df-mo 2576  df-eu 2606  df-clab 2753  df-cleq 2766  df-clel 2850  df-nfc 2924  df-ne 2971  df-nel 3077  df-ral 3092  df-rex 3102  df-rmo 3376  df-reu 3377  df-rab 3424  df-v 3463  df-sbc 3750  df-csb 3859  df-ss 3908  df-pss 4024  df-dif 4057  df-in 4101  df-un 4161  df-nul 4289  df-if 4493  df-pw 4569  df-sn 4596  df-pr 4598  df-tp 4600  df-op 4849  df-uni 4881  df-int 4921  df-iun 4966  df-iin 4967  df-br 5117  df-opab 5182  df-mpt 5201  df-tr 5227  df-id 5561  df-eprel 5566  df-po 5574  df-so 5575  df-fr 5619  df-se 5620  df-we 5621  df-xp 5672  df-rel 5673  df-cnv 5674  df-co 5675  df-dm 5676  df-rn 5677  df-res 5678  df-ima 5679  df-pred 6343  df-ord 6404  df-on 6405  df-lim 6406  df-suc 6407  df-iota 6533  df-fun 6581  df-fn 6582  df-f 6583  df-f1 6584  df-fo 6585  df-f1o 6586  df-fv 6587  df-isom 6588  df-riota 7426  df-ov 7473  df-oprab 7474  df-mpo 7475  df-of 7744  df-om 7931  df-1st 8054  df-2nd 8055  df-supp 8234  df-frecs 8356  df-wrecs 8387  df-recs 8436  df-rdg 8475  df-1o 8533  df-2o 8534  df-er 8774  df-map 8906  df-pm 8907  df-ixp 8983  df-en 9031  df-dom 9032  df-sdom 9033  df-fin 9034  df-fsupp 9411  df-fi 9459  df-sup 9490  df-inf 9491  df-oi 9560  df-card 10076  df-pnf 11403  df-mnf 11404  df-xr 11405  df-ltxr 11406  df-le 11407  df-sub 11602  df-neg 11603  df-div 12034  df-nn 12396  df-2 12465  df-3 12466  df-4 12467  df-5 12468  df-6 12469  df-7 12470  df-8 12471  df-9 12472  df-n0 12667  df-z 12754  df-dec 12875  df-uz 13026  df-q 13136  df-rp 13181  df-xneg 13301  df-xadd 13302  df-xmul 13303  df-ioo 13540  df-ioc 13541  df-ico 13542  df-icc 13543  df-fz 13700  df-fzo 13849  df-fl 13994  df-mod 14072  df-seq 14207  df-exp 14267  df-fac 14481  df-bc 14510  df-hash 14538  df-shft 15285  df-cj 15331  df-re 15332  df-im 15333  df-sqrt 15467  df-abs 15468  df-limsup 15704  df-clim 15721  df-rlim 15722  df-sum 15920  df-ef 16299  df-sin 16301  df-cos 16302  df-pi 16304  df-dvds 16488  df-gcd 16730  df-prm 16913  df-pc 17084  df-struct 17394  df-sets 17411  df-slot 17429  df-ndx 17441  df-base 17457  df-ress 17478  df-plusg 17511  df-mulr 17512  df-starv 17513  df-sca 17514  df-vsca 17515  df-ip 17516  df-tset 17517  df-ple 17518  df-ds 17520  df-unif 17521  df-hom 17522  df-cco 17523  df-euf 17524  df-rest 17672  df-topn 17673  df-0g 17691  df-gsum 17692  df-topgen 17693  df-pt 17694  df-prds 17697  df-xrs 17753  df-qtop 17758  df-imas 17759  df-xps 17761  df-mre 17835  df-mrc 17836  df-acs 17838  df-mgm 18895  df-sgrp 18987  df-mnd 19003  df-submnd 19058  df-mulg 19359  df-cntz 19613  df-cmn 20078  df-psmet 21767  df-xmet 21768  df-met 21769  df-bl 21770  df-mopn 21771  df-fbas 21772  df-fg 21773  df-cnfld 21776  df-top 23321  df-topon 23338  df-topsp 23360  df-bases 23373  df-cld 23446  df-ntr 23447  df-cls 23448  df-nei 23525  df-lp 23563  df-perf 23564  df-cn 23654  df-cnp 23655  df-haus 23742  df-tx 23990  df-hmeo 24183  df-fil 24274  df-fm 24366  df-flim 24367  df-flf 24368  df-xms 24748  df-ms 24749  df-tms 24750  df-cncf 25308  df-limc 26295  df-dv 26296  df-log 27017  df-cxp 27018  df-sgm 27580
This theorem is used by:  perfect1  27706
  Copyright terms: Public domain W3C validator