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

Theorem 1sgmprm 27583
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 11297 . . 3 1 ∈ ℂ
2 1nn0 12662 . . 3 1 ∈ ℕ0
3 sgmppw 27581 . . 3 ((1 ∈ ℂ ∧ 𝑃 ∈ ℙ ∧ 1 ∈ ℕ0) → (1 σ (𝑃↑1)) = Σ𝑘 ∈ (0...1)((𝑃↑𝑐1)↑𝑘))
41, 2, 3mp3an13 1482 . 2 (𝑃 ∈ ℙ → (1 σ (𝑃↑1)) = Σ𝑘 ∈ (0...1)((𝑃↑𝑐1)↑𝑘))
5 prmnn 16893 . . . . 5 (𝑃 ∈ ℙ → 𝑃 ∈ ℕ)
65nncnd 12391 . . . 4 (𝑃 ∈ ℙ → 𝑃 ∈ ℂ)
76exp1d 14324 . . 3 (𝑃 ∈ ℙ → (𝑃↑1) = 𝑃)
87oveq2d 7467 . 2 (𝑃 ∈ ℙ → (1 σ (𝑃↑1)) = (1 σ 𝑃))
96adantr 486 . . . . . 6 ((𝑃 ∈ ℙ ∧ 𝑘 ∈ (0...1)) → 𝑃 ∈ ℂ)
109cxp1d 27091 . . . . 5 ((𝑃 ∈ ℙ ∧ 𝑘 ∈ (0...1)) → (𝑃↑𝑐1) = 𝑃)
1110oveq1d 7466 . . . 4 ((𝑃 ∈ ℙ ∧ 𝑘 ∈ (0...1)) → ((𝑃↑𝑐1)↑𝑘) = (𝑃↑𝑘))
1211sumeq2dv 15913 . . 3 (𝑃 ∈ ℙ → Σ𝑘 ∈ (0...1)((𝑃↑𝑐1)↑𝑘) = Σ𝑘 ∈ (0...1)(𝑃↑𝑘))
13 1m1e0 12455 . . . . . . . 8 (1 − 1) = 0
1413oveq2i 7462 . . . . . . 7 (0...(1 − 1)) = (0...0)
1514sumeq1i 15908 . . . . . 6 Σ𝑘 ∈ (0...(1 − 1))(𝑃↑𝑘) = Σ𝑘 ∈ (0...0)(𝑃↑𝑘)
16 0z 12744 . . . . . . . 8 0 ∈ ℤ
176exp0d 14323 . . . . . . . . 9 (𝑃 ∈ ℙ → (𝑃↑0) = 1)
1817, 1eqeltrdi 2872 . . . . . . . 8 (𝑃 ∈ ℙ → (𝑃↑0) ∈ ℂ)
19 oveq2 7459 . . . . . . . . 9 (𝑘 = 0 → (𝑃↑𝑘) = (𝑃↑0))
2019fsum1 15957 . . . . . . . 8 ((0 ∈ ℤ ∧ (𝑃↑0) ∈ ℂ) → Σ𝑘 ∈ (0...0)(𝑃↑𝑘) = (𝑃↑0))
2116, 18, 20sylancr 599 . . . . . . 7 (𝑃 ∈ ℙ → Σ𝑘 ∈ (0...0)(𝑃↑𝑘) = (𝑃↑0))
2221, 17eqtrd 2798 . . . . . 6 (𝑃 ∈ ℙ → Σ𝑘 ∈ (0...0)(𝑃↑𝑘) = 1)
2315, 22eqtrid 2810 . . . . 5 (𝑃 ∈ ℙ → Σ𝑘 ∈ (0...(1 − 1))(𝑃↑𝑘) = 1)
2423, 7oveq12d 7469 . . . 4 (𝑃 ∈ ℙ → (Σ𝑘 ∈ (0...(1 − 1))(𝑃↑𝑘) + (𝑃↑1)) = (1 + 𝑃))
252a1i 11 . . . . . 6 (𝑃 ∈ ℙ → 1 ∈ ℕ0)
26 nn0uz 13043 . . . . . 6 ℕ0 = (ℤ≥‘0)
2725, 26eleqtrdi 2874 . . . . 5 (𝑃 ∈ ℙ → 1 ∈ (ℤ≥‘0))
28 elfznn0 13794 . . . . . 6 (𝑘 ∈ (0...1) → 𝑘 ∈ ℕ0)
29 expcl 14262 . . . . . 6 ((𝑃 ∈ ℂ ∧ 𝑘 ∈ ℕ0) → (𝑃↑𝑘) ∈ ℂ)
306, 28, 29syl2an 608 . . . . 5 ((𝑃 ∈ ℙ ∧ 𝑘 ∈ (0...1)) → (𝑃↑𝑘) ∈ ℂ)
31 oveq2 7459 . . . . 5 (𝑘 = 1 → (𝑃↑𝑘) = (𝑃↑1))
3227, 30, 31fsumm1 15961 . . . 4 (𝑃 ∈ ℙ → Σ𝑘 ∈ (0...1)(𝑃↑𝑘) = (Σ𝑘 ∈ (0...(1 − 1))(𝑃↑𝑘) + (𝑃↑1)))
33 addcom 11535 . . . . 5 ((𝑃 ∈ ℂ ∧ 1 ∈ ℂ) → (𝑃 + 1) = (1 + 𝑃))
346, 1, 33sylancl 598 . . . 4 (𝑃 ∈ ℙ → (𝑃 + 1) = (1 + 𝑃))
3524, 32, 343eqtr4d 2808 . . 3 (𝑃 ∈ ℙ → Σ𝑘 ∈ (0...1)(𝑃↑𝑘) = (𝑃 + 1))
3612, 35eqtrd 2798 . 2 (𝑃 ∈ ℙ → Σ𝑘 ∈ (0...1)((𝑃↑𝑐1)↑𝑘) = (𝑃 + 1))
374, 8, 363eqtr3d 2806 1 (𝑃 ∈ ℙ → (1 σ 𝑃) = (𝑃 + 1))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1570   ∈ wcel 2147  ‘cfv 6566  (class class class)co 7451  ℂcc 11237  0cc0 11239  1c1 11240   + caddc 11242   − cmin 11580  ℕ0cn0 12646  ℤcz 12733  ℤ≥cuz 13005  ...cfz 13679  ↑cexp 14244  Σcsu 15897  ℙcprime 16890  ↑𝑐ccxp 26940   σ csgm 27480
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-rep 5238  ax-sep 5255  ax-nul 5266  ax-pow 5334  ax-pr 5398  ax-un 7783  ax-inf2 9679  ax-cnex 11295  ax-resscn 11296  ax-1cn 11297  ax-icn 11298  ax-addcl 11299  ax-addrcl 11300  ax-mulcl 11301  ax-mulrcl 11302  ax-mulcom 11303  ax-addass 11304  ax-mulass 11305  ax-distr 11306  ax-i2m1 11307  ax-1ne0 11308  ax-1rid 11309  ax-rnegex 11310  ax-rrecex 11311  ax-cnre 11312  ax-pre-lttri 11313  ax-pre-lttrn 11314  ax-pre-ltadd 11315  ax-pre-mulgt0 11316  ax-pre-sup 11317  ax-addf 11318
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-nel 3066  df-ral 3081  df-rex 3091  df-rmo 3369  df-reu 3370  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-pss 4017  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-tp 4593  df-op 4841  df-uni 4873  df-int 4913  df-iun 4958  df-iin 4959  df-br 5109  df-opab 5174  df-mpt 5193  df-tr 5219  df-id 5553  df-eprel 5558  df-po 5566  df-so 5567  df-fr 5611  df-se 5612  df-we 5613  df-xp 5664  df-rel 5665  df-cnv 5666  df-co 5667  df-dm 5668  df-rn 5669  df-res 5670  df-ima 5671  df-pred 6330  df-ord 6391  df-on 6392  df-lim 6393  df-suc 6394  df-iota 6520  df-fun 6568  df-fn 6569  df-f 6570  df-f1 6571  df-fo 6572  df-f1o 6573  df-fv 6574  df-isom 6575  df-riota 7408  df-ov 7454  df-oprab 7455  df-mpo 7456  df-of 7725  df-om 7912  df-1st 8035  df-2nd 8036  df-supp 8215  df-frecs 8337  df-wrecs 8368  df-recs 8417  df-rdg 8456  df-1o 8514  df-2o 8515  df-er 8755  df-map 8887  df-pm 8888  df-ixp 8964  df-en 9012  df-dom 9013  df-sdom 9014  df-fin 9015  df-fsupp 9392  df-fi 9440  df-sup 9471  df-inf 9472  df-oi 9541  df-card 10057  df-pnf 11384  df-mnf 11385  df-xr 11386  df-ltxr 11387  df-le 11388  df-sub 11582  df-neg 11583  df-div 12014  df-nn 12376  df-2 12445  df-3 12446  df-4 12447  df-5 12448  df-6 12449  df-7 12450  df-8 12451  df-9 12452  df-n0 12647  df-z 12734  df-dec 12855  df-uz 13006  df-q 13116  df-rp 13161  df-xneg 13281  df-xadd 13282  df-xmul 13283  df-ioo 13520  df-ioc 13521  df-ico 13522  df-icc 13523  df-fz 13680  df-fzo 13829  df-fl 13972  df-mod 14050  df-seq 14185  df-exp 14245  df-fac 14459  df-bc 14488  df-hash 14516  df-shft 15263  df-cj 15309  df-re 15310  df-im 15311  df-sqrt 15445  df-abs 15446  df-limsup 15682  df-clim 15699  df-rlim 15700  df-sum 15898  df-ef 16277  df-sin 16279  df-cos 16280  df-pi 16282  df-dvds 16467  df-gcd 16709  df-prm 16891  df-pc 17059  df-struct 17369  df-sets 17386  df-slot 17404  df-ndx 17416  df-base 17432  df-ress 17453  df-plusg 17486  df-mulr 17487  df-starv 17488  df-sca 17489  df-vsca 17490  df-ip 17491  df-tset 17492  df-ple 17493  df-ds 17495  df-unif 17496  df-hom 17497  df-cco 17498  df-euf 17499  df-rest 17643  df-topn 17644  df-0g 17662  df-gsum 17663  df-topgen 17664  df-pt 17665  df-prds 17668  df-xrs 17724  df-qtop 17729  df-imas 17730  df-xps 17732  df-mre 17806  df-mrc 17807  df-acs 17809  df-mgm 18866  df-sgrp 18958  df-mnd 18974  df-submnd 19029  df-mulg 19328  df-cntz 19582  df-cmn 20047  df-psmet 21721  df-xmet 21722  df-met 21723  df-bl 21724  df-mopn 21725  df-fbas 21726  df-fg 21727  df-cnfld 21730  df-top 23267  df-topon 23284  df-topsp 23306  df-bases 23319  df-cld 23392  df-ntr 23393  df-cls 23394  df-nei 23471  df-lp 23509  df-perf 23510  df-cn 23600  df-cnp 23601  df-haus 23688  df-tx 23936  df-hmeo 24129  df-fil 24220  df-fm 24312  df-flim 24313  df-flf 24314  df-xms 24694  df-ms 24695  df-tms 24696  df-cncf 25254  df-limc 26241  df-dv 26242  df-log 26941  df-cxp 26942  df-sgm 27486
This theorem is used by:  perfect1  27612
  Copyright terms: Public domain W3C validator