Users' Mathboxes Mathbox for Alexander van der Vekens < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  lighneallem4 Structured version   Visualization version   GIF version

Theorem lighneallem4 42056
Description: Lemma 3 for lighneal 42057. (Contributed by AV, 16-Aug-2021.)
Assertion
Ref Expression
lighneallem4 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 2 ∥ 𝑁 ∧ ¬ 2 ∥ 𝑀) ∧ ((2↑𝑁) − 1) = (𝑃𝑀)) → 𝑀 = 1)

Proof of Theorem lighneallem4
Dummy variables 𝑘 𝑛 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 2cnd 11306 . . . . . . . . . 10 (𝑁 ∈ ℕ → 2 ∈ ℂ)
2 nnnn0 11512 . . . . . . . . . 10 (𝑁 ∈ ℕ → 𝑁 ∈ ℕ0)
31, 2expcld 13223 . . . . . . . . 9 (𝑁 ∈ ℕ → (2↑𝑁) ∈ ℂ)
433ad2ant3 1130 . . . . . . . 8 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (2↑𝑁) ∈ ℂ)
5 1cnd 10269 . . . . . . . 8 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → 1 ∈ ℂ)
6 eldifi 3876 . . . . . . . . . . 11 (𝑃 ∈ (ℙ ∖ {2}) → 𝑃 ∈ ℙ)
7 prmnn 15611 . . . . . . . . . . 11 (𝑃 ∈ ℙ → 𝑃 ∈ ℕ)
8 nncn 11241 . . . . . . . . . . 11 (𝑃 ∈ ℕ → 𝑃 ∈ ℂ)
96, 7, 83syl 18 . . . . . . . . . 10 (𝑃 ∈ (ℙ ∖ {2}) → 𝑃 ∈ ℂ)
1093ad2ant1 1128 . . . . . . . . 9 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → 𝑃 ∈ ℂ)
11 nnnn0 11512 . . . . . . . . . 10 (𝑀 ∈ ℕ → 𝑀 ∈ ℕ0)
12113ad2ant2 1129 . . . . . . . . 9 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → 𝑀 ∈ ℕ0)
1310, 12expcld 13223 . . . . . . . 8 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝑃𝑀) ∈ ℂ)
144, 5, 133jca 1123 . . . . . . 7 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → ((2↑𝑁) ∈ ℂ ∧ 1 ∈ ℂ ∧ (𝑃𝑀) ∈ ℂ))
1514adantr 472 . . . . . 6 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 2 ∥ 𝑀) → ((2↑𝑁) ∈ ℂ ∧ 1 ∈ ℂ ∧ (𝑃𝑀) ∈ ℂ))
16 subadd2 10498 . . . . . 6 (((2↑𝑁) ∈ ℂ ∧ 1 ∈ ℂ ∧ (𝑃𝑀) ∈ ℂ) → (((2↑𝑁) − 1) = (𝑃𝑀) ↔ ((𝑃𝑀) + 1) = (2↑𝑁)))
1715, 16syl 17 . . . . 5 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 2 ∥ 𝑀) → (((2↑𝑁) − 1) = (𝑃𝑀) ↔ ((𝑃𝑀) + 1) = (2↑𝑁)))
1810adantr 472 . . . . . . . 8 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 2 ∥ 𝑀) → 𝑃 ∈ ℂ)
19 simpl2 1230 . . . . . . . 8 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 2 ∥ 𝑀) → 𝑀 ∈ ℕ)
20 simpr 479 . . . . . . . 8 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 2 ∥ 𝑀) → ¬ 2 ∥ 𝑀)
2118, 19, 20oddpwp1fsum 15338 . . . . . . 7 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 2 ∥ 𝑀) → ((𝑃𝑀) + 1) = ((𝑃 + 1) · Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘))))
2221eqeq1d 2763 . . . . . 6 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 2 ∥ 𝑀) → (((𝑃𝑀) + 1) = (2↑𝑁) ↔ ((𝑃 + 1) · Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘))) = (2↑𝑁)))
23 peano2nn 11245 . . . . . . . . . . . . . 14 (𝑃 ∈ ℕ → (𝑃 + 1) ∈ ℕ)
2423nnzd 11694 . . . . . . . . . . . . 13 (𝑃 ∈ ℕ → (𝑃 + 1) ∈ ℤ)
256, 7, 243syl 18 . . . . . . . . . . . 12 (𝑃 ∈ (ℙ ∖ {2}) → (𝑃 + 1) ∈ ℤ)
26253ad2ant1 1128 . . . . . . . . . . 11 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝑃 + 1) ∈ ℤ)
27 fzfid 12987 . . . . . . . . . . . 12 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (0...(𝑀 − 1)) ∈ Fin)
28 neg1z 11626 . . . . . . . . . . . . . . 15 -1 ∈ ℤ
2928a1i 11 . . . . . . . . . . . . . 14 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → -1 ∈ ℤ)
30 elfznn0 12647 . . . . . . . . . . . . . 14 (𝑘 ∈ (0...(𝑀 − 1)) → 𝑘 ∈ ℕ0)
31 zexpcl 13090 . . . . . . . . . . . . . 14 ((-1 ∈ ℤ ∧ 𝑘 ∈ ℕ0) → (-1↑𝑘) ∈ ℤ)
3229, 30, 31syl2an 495 . . . . . . . . . . . . 13 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ 𝑘 ∈ (0...(𝑀 − 1))) → (-1↑𝑘) ∈ ℤ)
33 nnz 11612 . . . . . . . . . . . . . . . 16 (𝑃 ∈ ℕ → 𝑃 ∈ ℤ)
346, 7, 333syl 18 . . . . . . . . . . . . . . 15 (𝑃 ∈ (ℙ ∖ {2}) → 𝑃 ∈ ℤ)
35343ad2ant1 1128 . . . . . . . . . . . . . 14 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → 𝑃 ∈ ℤ)
36 zexpcl 13090 . . . . . . . . . . . . . 14 ((𝑃 ∈ ℤ ∧ 𝑘 ∈ ℕ0) → (𝑃𝑘) ∈ ℤ)
3735, 30, 36syl2an 495 . . . . . . . . . . . . 13 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ 𝑘 ∈ (0...(𝑀 − 1))) → (𝑃𝑘) ∈ ℤ)
3832, 37zmulcld 11701 . . . . . . . . . . . 12 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ 𝑘 ∈ (0...(𝑀 − 1))) → ((-1↑𝑘) · (𝑃𝑘)) ∈ ℤ)
3927, 38fsumzcl 14686 . . . . . . . . . . 11 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∈ ℤ)
4026, 39jca 555 . . . . . . . . . 10 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → ((𝑃 + 1) ∈ ℤ ∧ Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∈ ℤ))
4140ad2antrr 764 . . . . . . . . 9 ((((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 2 ∥ 𝑀) ∧ ((𝑃 + 1) · Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘))) = (2↑𝑁)) → ((𝑃 + 1) ∈ ℤ ∧ Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∈ ℤ))
42 dvdsmul2 15227 . . . . . . . . 9 (((𝑃 + 1) ∈ ℤ ∧ Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∈ ℤ) → Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∥ ((𝑃 + 1) · Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘))))
4341, 42syl 17 . . . . . . . 8 ((((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 2 ∥ 𝑀) ∧ ((𝑃 + 1) · Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘))) = (2↑𝑁)) → Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∥ ((𝑃 + 1) · Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘))))
44 breq2 4809 . . . . . . . . . 10 (((𝑃 + 1) · Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘))) = (2↑𝑁) → (Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∥ ((𝑃 + 1) · Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘))) ↔ Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∥ (2↑𝑁)))
4544adantl 473 . . . . . . . . 9 ((((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 2 ∥ 𝑀) ∧ ((𝑃 + 1) · Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘))) = (2↑𝑁)) → (Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∥ ((𝑃 + 1) · Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘))) ↔ Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∥ (2↑𝑁)))
46 2a1 28 . . . . . . . . . . 11 (𝑀 = 1 → (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 2 ∥ 𝑀) → (Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∥ (2↑𝑁) → 𝑀 = 1)))
47 2prm 15628 . . . . . . . . . . . . . . . 16 2 ∈ ℙ
48 prmuz2 15631 . . . . . . . . . . . . . . . . . . . 20 (𝑃 ∈ ℙ → 𝑃 ∈ (ℤ‘2))
496, 48syl 17 . . . . . . . . . . . . . . . . . . 19 (𝑃 ∈ (ℙ ∖ {2}) → 𝑃 ∈ (ℤ‘2))
50493ad2ant1 1128 . . . . . . . . . . . . . . . . . 18 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → 𝑃 ∈ (ℤ‘2))
5150adantr 472 . . . . . . . . . . . . . . . . 17 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) → 𝑃 ∈ (ℤ‘2))
52 df-ne 2934 . . . . . . . . . . . . . . . . . . . . . 22 (𝑀 ≠ 1 ↔ ¬ 𝑀 = 1)
53 eluz2b3 11976 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑀 ∈ (ℤ‘2) ↔ (𝑀 ∈ ℕ ∧ 𝑀 ≠ 1))
5453simplbi2 656 . . . . . . . . . . . . . . . . . . . . . 22 (𝑀 ∈ ℕ → (𝑀 ≠ 1 → 𝑀 ∈ (ℤ‘2)))
5552, 54syl5bir 233 . . . . . . . . . . . . . . . . . . . . 21 (𝑀 ∈ ℕ → (¬ 𝑀 = 1 → 𝑀 ∈ (ℤ‘2)))
56553ad2ant2 1129 . . . . . . . . . . . . . . . . . . . 20 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (¬ 𝑀 = 1 → 𝑀 ∈ (ℤ‘2)))
5756com12 32 . . . . . . . . . . . . . . . . . . 19 𝑀 = 1 → ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → 𝑀 ∈ (ℤ‘2)))
5857adantr 472 . . . . . . . . . . . . . . . . . 18 ((¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀) → ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → 𝑀 ∈ (ℤ‘2)))
5958impcom 445 . . . . . . . . . . . . . . . . 17 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) → 𝑀 ∈ (ℤ‘2))
60 simprr 813 . . . . . . . . . . . . . . . . 17 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) → ¬ 2 ∥ 𝑀)
61 lighneallem4b 42055 . . . . . . . . . . . . . . . . 17 ((𝑃 ∈ (ℤ‘2) ∧ 𝑀 ∈ (ℤ‘2) ∧ ¬ 2 ∥ 𝑀) → Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∈ (ℤ‘2))
6251, 59, 60, 61syl3anc 1477 . . . . . . . . . . . . . . . 16 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) → Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∈ (ℤ‘2))
6323ad2ant3 1130 . . . . . . . . . . . . . . . . 17 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → 𝑁 ∈ ℕ0)
6463adantr 472 . . . . . . . . . . . . . . . 16 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) → 𝑁 ∈ ℕ0)
65 dvdsprmpweqnn 15812 . . . . . . . . . . . . . . . 16 ((2 ∈ ℙ ∧ Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∈ (ℤ‘2) ∧ 𝑁 ∈ ℕ0) → (Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∥ (2↑𝑁) → ∃𝑛 ∈ ℕ Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) = (2↑𝑛)))
6647, 62, 64, 65mp3an2i 1578 . . . . . . . . . . . . . . 15 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) → (Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∥ (2↑𝑁) → ∃𝑛 ∈ ℕ Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) = (2↑𝑛)))
67 2z 11622 . . . . . . . . . . . . . . . . . . 19 2 ∈ ℤ
6867a1i 11 . . . . . . . . . . . . . . . . . 18 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) → 2 ∈ ℤ)
69 iddvdsexp 15228 . . . . . . . . . . . . . . . . . 18 ((2 ∈ ℤ ∧ 𝑛 ∈ ℕ) → 2 ∥ (2↑𝑛))
7068, 69sylan 489 . . . . . . . . . . . . . . . . 17 ((((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) ∧ 𝑛 ∈ ℕ) → 2 ∥ (2↑𝑛))
71 breq2 4809 . . . . . . . . . . . . . . . . . . . 20 𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) = (2↑𝑛) → (2 ∥ Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ↔ 2 ∥ (2↑𝑛)))
7271adantl 473 . . . . . . . . . . . . . . . . . . 19 (((((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) ∧ 𝑛 ∈ ℕ) ∧ Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) = (2↑𝑛)) → (2 ∥ Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ↔ 2 ∥ (2↑𝑛)))
73 fzfid 12987 . . . . . . . . . . . . . . . . . . . . . 22 ((((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) ∧ 𝑛 ∈ ℕ) → (0...(𝑀 − 1)) ∈ Fin)
7428a1i 11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑃 ∈ ℕ → -1 ∈ ℤ)
7574, 31sylan 489 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑃 ∈ ℕ ∧ 𝑘 ∈ ℕ0) → (-1↑𝑘) ∈ ℤ)
76 nnnn0 11512 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑃 ∈ ℕ → 𝑃 ∈ ℕ0)
7776adantr 472 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((𝑃 ∈ ℕ ∧ 𝑘 ∈ ℕ0) → 𝑃 ∈ ℕ0)
78 simpr 479 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((𝑃 ∈ ℕ ∧ 𝑘 ∈ ℕ0) → 𝑘 ∈ ℕ0)
7977, 78nn0expcld 13246 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((𝑃 ∈ ℕ ∧ 𝑘 ∈ ℕ0) → (𝑃𝑘) ∈ ℕ0)
8079nn0zd 11693 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑃 ∈ ℕ ∧ 𝑘 ∈ ℕ0) → (𝑃𝑘) ∈ ℤ)
8175, 80zmulcld 11701 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑃 ∈ ℕ ∧ 𝑘 ∈ ℕ0) → ((-1↑𝑘) · (𝑃𝑘)) ∈ ℤ)
8281ex 449 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝑃 ∈ ℕ → (𝑘 ∈ ℕ0 → ((-1↑𝑘) · (𝑃𝑘)) ∈ ℤ))
836, 7, 823syl 18 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑃 ∈ (ℙ ∖ {2}) → (𝑘 ∈ ℕ0 → ((-1↑𝑘) · (𝑃𝑘)) ∈ ℤ))
84833ad2ant1 1128 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝑘 ∈ ℕ0 → ((-1↑𝑘) · (𝑃𝑘)) ∈ ℤ))
8584ad2antrr 764 . . . . . . . . . . . . . . . . . . . . . . 23 ((((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) ∧ 𝑛 ∈ ℕ) → (𝑘 ∈ ℕ0 → ((-1↑𝑘) · (𝑃𝑘)) ∈ ℤ))
8685, 30impel 486 . . . . . . . . . . . . . . . . . . . . . 22 (((((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) ∧ 𝑛 ∈ ℕ) ∧ 𝑘 ∈ (0...(𝑀 − 1))) → ((-1↑𝑘) · (𝑃𝑘)) ∈ ℤ)
87 nn0z 11613 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑘 ∈ ℕ0𝑘 ∈ ℤ)
88 m1expcl2 13097 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑘 ∈ ℤ → (-1↑𝑘) ∈ {-1, 1})
8987, 88syl 17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑘 ∈ ℕ0 → (-1↑𝑘) ∈ {-1, 1})
90 ovex 6843 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (-1↑𝑘) ∈ V
9190elpr 4344 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 ((-1↑𝑘) ∈ {-1, 1} ↔ ((-1↑𝑘) = -1 ∨ (-1↑𝑘) = 1))
92 n2dvdsm1 15328 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 ¬ 2 ∥ -1
93 breq2 4809 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 ((-1↑𝑘) = -1 → (2 ∥ (-1↑𝑘) ↔ 2 ∥ -1))
9492, 93mtbiri 316 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 ((-1↑𝑘) = -1 → ¬ 2 ∥ (-1↑𝑘))
95 n2dvds1 15327 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 ¬ 2 ∥ 1
96 breq2 4809 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 ((-1↑𝑘) = 1 → (2 ∥ (-1↑𝑘) ↔ 2 ∥ 1))
9795, 96mtbiri 316 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 ((-1↑𝑘) = 1 → ¬ 2 ∥ (-1↑𝑘))
9894, 97jaoi 393 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (((-1↑𝑘) = -1 ∨ (-1↑𝑘) = 1) → ¬ 2 ∥ (-1↑𝑘))
9998a1d 25 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (((-1↑𝑘) = -1 ∨ (-1↑𝑘) = 1) → (𝑘 ∈ ℕ0 → ¬ 2 ∥ (-1↑𝑘)))
10091, 99sylbi 207 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((-1↑𝑘) ∈ {-1, 1} → (𝑘 ∈ ℕ0 → ¬ 2 ∥ (-1↑𝑘)))
10189, 100mpcom 38 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑘 ∈ ℕ0 → ¬ 2 ∥ (-1↑𝑘))
102101adantl 473 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑘 ∈ ℕ0) → ¬ 2 ∥ (-1↑𝑘))
103 elnn0 11507 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑘 ∈ ℕ0 ↔ (𝑘 ∈ ℕ ∨ 𝑘 = 0))
104 oddn2prm 15740 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 (𝑃 ∈ (ℙ ∖ {2}) → ¬ 2 ∥ 𝑃)
105104adantr 472 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑘 ∈ ℕ) → ¬ 2 ∥ 𝑃)
106 simpr 479 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑘 ∈ ℕ) → 𝑘 ∈ ℕ)
107 prmdvdsexp 15650 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 ((2 ∈ ℙ ∧ 𝑃 ∈ ℤ ∧ 𝑘 ∈ ℕ) → (2 ∥ (𝑃𝑘) ↔ 2 ∥ 𝑃))
10847, 34, 106, 107mp3an2ani 1580 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑘 ∈ ℕ) → (2 ∥ (𝑃𝑘) ↔ 2 ∥ 𝑃))
109105, 108mtbird 314 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑘 ∈ ℕ) → ¬ 2 ∥ (𝑃𝑘))
110109expcom 450 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑘 ∈ ℕ → (𝑃 ∈ (ℙ ∖ {2}) → ¬ 2 ∥ (𝑃𝑘)))
111 oveq2 6823 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 (𝑘 = 0 → (𝑃𝑘) = (𝑃↑0))
112111adantr 472 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 ((𝑘 = 0 ∧ 𝑃 ∈ (ℙ ∖ {2})) → (𝑃𝑘) = (𝑃↑0))
1139adantl 473 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 ((𝑘 = 0 ∧ 𝑃 ∈ (ℙ ∖ {2})) → 𝑃 ∈ ℂ)
114113exp0d 13217 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 ((𝑘 = 0 ∧ 𝑃 ∈ (ℙ ∖ {2})) → (𝑃↑0) = 1)
115112, 114eqtrd 2795 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 ((𝑘 = 0 ∧ 𝑃 ∈ (ℙ ∖ {2})) → (𝑃𝑘) = 1)
116115breq2d 4817 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 ((𝑘 = 0 ∧ 𝑃 ∈ (ℙ ∖ {2})) → (2 ∥ (𝑃𝑘) ↔ 2 ∥ 1))
11795, 116mtbiri 316 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((𝑘 = 0 ∧ 𝑃 ∈ (ℙ ∖ {2})) → ¬ 2 ∥ (𝑃𝑘))
118117ex 449 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑘 = 0 → (𝑃 ∈ (ℙ ∖ {2}) → ¬ 2 ∥ (𝑃𝑘)))
119110, 118jaoi 393 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((𝑘 ∈ ℕ ∨ 𝑘 = 0) → (𝑃 ∈ (ℙ ∖ {2}) → ¬ 2 ∥ (𝑃𝑘)))
120103, 119sylbi 207 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑘 ∈ ℕ0 → (𝑃 ∈ (ℙ ∖ {2}) → ¬ 2 ∥ (𝑃𝑘)))
121120impcom 445 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑘 ∈ ℕ0) → ¬ 2 ∥ (𝑃𝑘))
122 ioran 512 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (¬ (2 ∥ (-1↑𝑘) ∨ 2 ∥ (𝑃𝑘)) ↔ (¬ 2 ∥ (-1↑𝑘) ∧ ¬ 2 ∥ (𝑃𝑘)))
123102, 121, 122sylanbrc 701 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑘 ∈ ℕ0) → ¬ (2 ∥ (-1↑𝑘) ∨ 2 ∥ (𝑃𝑘)))
12428, 31mpan 708 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑘 ∈ ℕ0 → (-1↑𝑘) ∈ ℤ)
125124adantl 473 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑘 ∈ ℕ0) → (-1↑𝑘) ∈ ℤ)
1266, 7, 763syl 18 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑃 ∈ (ℙ ∖ {2}) → 𝑃 ∈ ℕ0)
127126adantr 472 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑘 ∈ ℕ0) → 𝑃 ∈ ℕ0)
128 simpr 479 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑘 ∈ ℕ0) → 𝑘 ∈ ℕ0)
129127, 128nn0expcld 13246 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑘 ∈ ℕ0) → (𝑃𝑘) ∈ ℕ0)
130129nn0zd 11693 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑘 ∈ ℕ0) → (𝑃𝑘) ∈ ℤ)
131 euclemma 15648 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((2 ∈ ℙ ∧ (-1↑𝑘) ∈ ℤ ∧ (𝑃𝑘) ∈ ℤ) → (2 ∥ ((-1↑𝑘) · (𝑃𝑘)) ↔ (2 ∥ (-1↑𝑘) ∨ 2 ∥ (𝑃𝑘))))
13247, 125, 130, 131mp3an2i 1578 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑘 ∈ ℕ0) → (2 ∥ ((-1↑𝑘) · (𝑃𝑘)) ↔ (2 ∥ (-1↑𝑘) ∨ 2 ∥ (𝑃𝑘))))
133123, 132mtbird 314 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑘 ∈ ℕ0) → ¬ 2 ∥ ((-1↑𝑘) · (𝑃𝑘)))
134133ex 449 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑃 ∈ (ℙ ∖ {2}) → (𝑘 ∈ ℕ0 → ¬ 2 ∥ ((-1↑𝑘) · (𝑃𝑘))))
1351343ad2ant1 1128 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝑘 ∈ ℕ0 → ¬ 2 ∥ ((-1↑𝑘) · (𝑃𝑘))))
136135ad2antrr 764 . . . . . . . . . . . . . . . . . . . . . . 23 ((((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) ∧ 𝑛 ∈ ℕ) → (𝑘 ∈ ℕ0 → ¬ 2 ∥ ((-1↑𝑘) · (𝑃𝑘))))
137136, 30impel 486 . . . . . . . . . . . . . . . . . . . . . 22 (((((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) ∧ 𝑛 ∈ ℕ) ∧ 𝑘 ∈ (0...(𝑀 − 1))) → ¬ 2 ∥ ((-1↑𝑘) · (𝑃𝑘)))
138 nnm1nn0 11547 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑀 ∈ ℕ → (𝑀 − 1) ∈ ℕ0)
139 hashfz0 13432 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 ((𝑀 − 1) ∈ ℕ0 → (♯‘(0...(𝑀 − 1))) = ((𝑀 − 1) + 1))
140138, 139syl 17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑀 ∈ ℕ → (♯‘(0...(𝑀 − 1))) = ((𝑀 − 1) + 1))
141 nncn 11241 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑀 ∈ ℕ → 𝑀 ∈ ℂ)
142 npcan1 10668 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑀 ∈ ℂ → ((𝑀 − 1) + 1) = 𝑀)
143141, 142syl 17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑀 ∈ ℕ → ((𝑀 − 1) + 1) = 𝑀)
144140, 143eqtr2d 2796 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑀 ∈ ℕ → 𝑀 = (♯‘(0...(𝑀 − 1))))
1451443ad2ant2 1129 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → 𝑀 = (♯‘(0...(𝑀 − 1))))
146145adantr 472 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 𝑀 = 1) → 𝑀 = (♯‘(0...(𝑀 − 1))))
147146breq2d 4817 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 𝑀 = 1) → (2 ∥ 𝑀 ↔ 2 ∥ (♯‘(0...(𝑀 − 1)))))
148147notbid 307 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 𝑀 = 1) → (¬ 2 ∥ 𝑀 ↔ ¬ 2 ∥ (♯‘(0...(𝑀 − 1)))))
149148biimpd 219 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 𝑀 = 1) → (¬ 2 ∥ 𝑀 → ¬ 2 ∥ (♯‘(0...(𝑀 − 1)))))
150149impr 650 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) → ¬ 2 ∥ (♯‘(0...(𝑀 − 1))))
151150adantr 472 . . . . . . . . . . . . . . . . . . . . . 22 ((((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) ∧ 𝑛 ∈ ℕ) → ¬ 2 ∥ (♯‘(0...(𝑀 − 1))))
15273, 86, 137, 151oddsumodd 15336 . . . . . . . . . . . . . . . . . . . . 21 ((((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) ∧ 𝑛 ∈ ℕ) → ¬ 2 ∥ Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)))
153152pm2.21d 118 . . . . . . . . . . . . . . . . . . . 20 ((((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) ∧ 𝑛 ∈ ℕ) → (2 ∥ Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) → 𝑀 = 1))
154153adantr 472 . . . . . . . . . . . . . . . . . . 19 (((((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) ∧ 𝑛 ∈ ℕ) ∧ Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) = (2↑𝑛)) → (2 ∥ Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) → 𝑀 = 1))
15572, 154sylbird 250 . . . . . . . . . . . . . . . . . 18 (((((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) ∧ 𝑛 ∈ ℕ) ∧ Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) = (2↑𝑛)) → (2 ∥ (2↑𝑛) → 𝑀 = 1))
156155ex 449 . . . . . . . . . . . . . . . . 17 ((((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) ∧ 𝑛 ∈ ℕ) → (Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) = (2↑𝑛) → (2 ∥ (2↑𝑛) → 𝑀 = 1)))
15770, 156mpid 44 . . . . . . . . . . . . . . . 16 ((((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) ∧ 𝑛 ∈ ℕ) → (Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) = (2↑𝑛) → 𝑀 = 1))
158157rexlimdva 3170 . . . . . . . . . . . . . . 15 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) → (∃𝑛 ∈ ℕ Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) = (2↑𝑛) → 𝑀 = 1))
15966, 158syld 47 . . . . . . . . . . . . . 14 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) → (Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∥ (2↑𝑁) → 𝑀 = 1))
160159exp32 632 . . . . . . . . . . . . 13 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (¬ 𝑀 = 1 → (¬ 2 ∥ 𝑀 → (Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∥ (2↑𝑁) → 𝑀 = 1))))
161160com12 32 . . . . . . . . . . . 12 𝑀 = 1 → ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (¬ 2 ∥ 𝑀 → (Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∥ (2↑𝑁) → 𝑀 = 1))))
162161impd 446 . . . . . . . . . . 11 𝑀 = 1 → (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 2 ∥ 𝑀) → (Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∥ (2↑𝑁) → 𝑀 = 1)))
16346, 162pm2.61i 176 . . . . . . . . . 10 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 2 ∥ 𝑀) → (Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∥ (2↑𝑁) → 𝑀 = 1))
164163adantr 472 . . . . . . . . 9 ((((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 2 ∥ 𝑀) ∧ ((𝑃 + 1) · Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘))) = (2↑𝑁)) → (Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∥ (2↑𝑁) → 𝑀 = 1))
16545, 164sylbid 230 . . . . . . . 8 ((((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 2 ∥ 𝑀) ∧ ((𝑃 + 1) · Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘))) = (2↑𝑁)) → (Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∥ ((𝑃 + 1) · Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘))) → 𝑀 = 1))
16643, 165mpd 15 . . . . . . 7 ((((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 2 ∥ 𝑀) ∧ ((𝑃 + 1) · Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘))) = (2↑𝑁)) → 𝑀 = 1)
167166ex 449 . . . . . 6 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 2 ∥ 𝑀) → (((𝑃 + 1) · Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘))) = (2↑𝑁) → 𝑀 = 1))
16822, 167sylbid 230 . . . . 5 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 2 ∥ 𝑀) → (((𝑃𝑀) + 1) = (2↑𝑁) → 𝑀 = 1))
16917, 168sylbid 230 . . . 4 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 2 ∥ 𝑀) → (((2↑𝑁) − 1) = (𝑃𝑀) → 𝑀 = 1))
170169ex 449 . . 3 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (¬ 2 ∥ 𝑀 → (((2↑𝑁) − 1) = (𝑃𝑀) → 𝑀 = 1)))
171170adantld 484 . 2 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → ((¬ 2 ∥ 𝑁 ∧ ¬ 2 ∥ 𝑀) → (((2↑𝑁) − 1) = (𝑃𝑀) → 𝑀 = 1)))
1721713imp 1102 1 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 2 ∥ 𝑁 ∧ ¬ 2 ∥ 𝑀) ∧ ((2↑𝑁) − 1) = (𝑃𝑀)) → 𝑀 = 1)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 196  wo 382  wa 383  w3a 1072   = wceq 1632  wcel 2140  wne 2933  wrex 3052  cdif 3713  {csn 4322  {cpr 4324   class class class wbr 4805  cfv 6050  (class class class)co 6815  cc 10147  0cc0 10149  1c1 10150   + caddc 10152   · cmul 10154  cmin 10479  -cneg 10480  cn 11233  2c2 11283  0cn0 11505  cz 11590  cuz 11900  ...cfz 12540  cexp 13075  chash 13332  Σcsu 14636  cdvds 15203  cprime 15608
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1871  ax-4 1886  ax-5 1989  ax-6 2055  ax-7 2091  ax-8 2142  ax-9 2149  ax-10 2169  ax-11 2184  ax-12 2197  ax-13 2392  ax-ext 2741  ax-rep 4924  ax-sep 4934  ax-nul 4942  ax-pow 4993  ax-pr 5056  ax-un 7116  ax-inf2 8714  ax-cnex 10205  ax-resscn 10206  ax-1cn 10207  ax-icn 10208  ax-addcl 10209  ax-addrcl 10210  ax-mulcl 10211  ax-mulrcl 10212  ax-mulcom 10213  ax-addass 10214  ax-mulass 10215  ax-distr 10216  ax-i2m1 10217  ax-1ne0 10218  ax-1rid 10219  ax-rnegex 10220  ax-rrecex 10221  ax-cnre 10222  ax-pre-lttri 10223  ax-pre-lttrn 10224  ax-pre-ltadd 10225  ax-pre-mulgt0 10226  ax-pre-sup 10227
This theorem depends on definitions:  df-bi 197  df-or 384  df-an 385  df-3or 1073  df-3an 1074  df-tru 1635  df-fal 1638  df-ex 1854  df-nf 1859  df-sb 2048  df-eu 2612  df-mo 2613  df-clab 2748  df-cleq 2754  df-clel 2757  df-nfc 2892  df-ne 2934  df-nel 3037  df-ral 3056  df-rex 3057  df-reu 3058  df-rmo 3059  df-rab 3060  df-v 3343  df-sbc 3578  df-csb 3676  df-dif 3719  df-un 3721  df-in 3723  df-ss 3730  df-pss 3732  df-nul 4060  df-if 4232  df-pw 4305  df-sn 4323  df-pr 4325  df-tp 4327  df-op 4329  df-uni 4590  df-int 4629  df-iun 4675  df-br 4806  df-opab 4866  df-mpt 4883  df-tr 4906  df-id 5175  df-eprel 5180  df-po 5188  df-so 5189  df-fr 5226  df-se 5227  df-we 5228  df-xp 5273  df-rel 5274  df-cnv 5275  df-co 5276  df-dm 5277  df-rn 5278  df-res 5279  df-ima 5280  df-pred 5842  df-ord 5888  df-on 5889  df-lim 5890  df-suc 5891  df-iota 6013  df-fun 6052  df-fn 6053  df-f 6054  df-f1 6055  df-fo 6056  df-f1o 6057  df-fv 6058  df-isom 6059  df-riota 6776  df-ov 6818  df-oprab 6819  df-mpt2 6820  df-om 7233  df-1st 7335  df-2nd 7336  df-wrecs 7578  df-recs 7639  df-rdg 7677  df-1o 7731  df-2o 7732  df-oadd 7735  df-er 7914  df-en 8125  df-dom 8126  df-sdom 8127  df-fin 8128  df-sup 8516  df-inf 8517  df-oi 8583  df-card 8976  df-cda 9203  df-pnf 10289  df-mnf 10290  df-xr 10291  df-ltxr 10292  df-le 10293  df-sub 10481  df-neg 10482  df-div 10898  df-nn 11234  df-2 11292  df-3 11293  df-4 11294  df-n0 11506  df-z 11591  df-uz 11901  df-q 12003  df-rp 12047  df-fz 12541  df-fzo 12681  df-fl 12808  df-mod 12884  df-seq 13017  df-exp 13076  df-hash 13333  df-cj 14059  df-re 14060  df-im 14061  df-sqrt 14195  df-abs 14196  df-clim 14439  df-sum 14637  df-dvds 15204  df-gcd 15440  df-prm 15609  df-pc 15765
This theorem is referenced by:  lighneal  42057
  Copyright terms: Public domain W3C validator