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 45014
Description: Lemma 3 for lighneal 45015. (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 12034 . . . . . . . . . 10 (𝑁 ∈ ℕ → 2 ∈ ℂ)
2 nnnn0 12223 . . . . . . . . . 10 (𝑁 ∈ ℕ → 𝑁 ∈ ℕ0)
31, 2expcld 13845 . . . . . . . . 9 (𝑁 ∈ ℕ → (2↑𝑁) ∈ ℂ)
433ad2ant3 1133 . . . . . . . 8 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (2↑𝑁) ∈ ℂ)
5 1cnd 10954 . . . . . . . 8 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → 1 ∈ ℂ)
6 eldifi 4065 . . . . . . . . . . 11 (𝑃 ∈ (ℙ ∖ {2}) → 𝑃 ∈ ℙ)
7 prmnn 16360 . . . . . . . . . . 11 (𝑃 ∈ ℙ → 𝑃 ∈ ℕ)
8 nncn 11964 . . . . . . . . . . 11 (𝑃 ∈ ℕ → 𝑃 ∈ ℂ)
96, 7, 83syl 18 . . . . . . . . . 10 (𝑃 ∈ (ℙ ∖ {2}) → 𝑃 ∈ ℂ)
1093ad2ant1 1131 . . . . . . . . 9 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → 𝑃 ∈ ℂ)
11 nnnn0 12223 . . . . . . . . . 10 (𝑀 ∈ ℕ → 𝑀 ∈ ℕ0)
12113ad2ant2 1132 . . . . . . . . 9 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → 𝑀 ∈ ℕ0)
1310, 12expcld 13845 . . . . . . . 8 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝑃𝑀) ∈ ℂ)
144, 5, 133jca 1126 . . . . . . 7 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → ((2↑𝑁) ∈ ℂ ∧ 1 ∈ ℂ ∧ (𝑃𝑀) ∈ ℂ))
1514adantr 480 . . . . . 6 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 2 ∥ 𝑀) → ((2↑𝑁) ∈ ℂ ∧ 1 ∈ ℂ ∧ (𝑃𝑀) ∈ ℂ))
16 subadd2 11208 . . . . . 6 (((2↑𝑁) ∈ ℂ ∧ 1 ∈ ℂ ∧ (𝑃𝑀) ∈ ℂ) → (((2↑𝑁) − 1) = (𝑃𝑀) ↔ ((𝑃𝑀) + 1) = (2↑𝑁)))
1715, 16syl 17 . . . . 5 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 2 ∥ 𝑀) → (((2↑𝑁) − 1) = (𝑃𝑀) ↔ ((𝑃𝑀) + 1) = (2↑𝑁)))
1810adantr 480 . . . . . . . 8 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 2 ∥ 𝑀) → 𝑃 ∈ ℂ)
19 simpl2 1190 . . . . . . . 8 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 2 ∥ 𝑀) → 𝑀 ∈ ℕ)
20 simpr 484 . . . . . . . 8 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 2 ∥ 𝑀) → ¬ 2 ∥ 𝑀)
2118, 19, 20oddpwp1fsum 16082 . . . . . . 7 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 2 ∥ 𝑀) → ((𝑃𝑀) + 1) = ((𝑃 + 1) · Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘))))
2221eqeq1d 2741 . . . . . 6 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 2 ∥ 𝑀) → (((𝑃𝑀) + 1) = (2↑𝑁) ↔ ((𝑃 + 1) · Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘))) = (2↑𝑁)))
23 peano2nn 11968 . . . . . . . . . . . . . 14 (𝑃 ∈ ℕ → (𝑃 + 1) ∈ ℕ)
2423nnzd 12407 . . . . . . . . . . . . 13 (𝑃 ∈ ℕ → (𝑃 + 1) ∈ ℤ)
256, 7, 243syl 18 . . . . . . . . . . . 12 (𝑃 ∈ (ℙ ∖ {2}) → (𝑃 + 1) ∈ ℤ)
26253ad2ant1 1131 . . . . . . . . . . 11 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝑃 + 1) ∈ ℤ)
27 fzfid 13674 . . . . . . . . . . . 12 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (0...(𝑀 − 1)) ∈ Fin)
28 neg1z 12339 . . . . . . . . . . . . . . 15 -1 ∈ ℤ
2928a1i 11 . . . . . . . . . . . . . 14 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → -1 ∈ ℤ)
30 elfznn0 13331 . . . . . . . . . . . . . 14 (𝑘 ∈ (0...(𝑀 − 1)) → 𝑘 ∈ ℕ0)
31 zexpcl 13778 . . . . . . . . . . . . . 14 ((-1 ∈ ℤ ∧ 𝑘 ∈ ℕ0) → (-1↑𝑘) ∈ ℤ)
3229, 30, 31syl2an 595 . . . . . . . . . . . . 13 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ 𝑘 ∈ (0...(𝑀 − 1))) → (-1↑𝑘) ∈ ℤ)
33 nnz 12325 . . . . . . . . . . . . . . . 16 (𝑃 ∈ ℕ → 𝑃 ∈ ℤ)
346, 7, 333syl 18 . . . . . . . . . . . . . . 15 (𝑃 ∈ (ℙ ∖ {2}) → 𝑃 ∈ ℤ)
35343ad2ant1 1131 . . . . . . . . . . . . . 14 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → 𝑃 ∈ ℤ)
36 zexpcl 13778 . . . . . . . . . . . . . 14 ((𝑃 ∈ ℤ ∧ 𝑘 ∈ ℕ0) → (𝑃𝑘) ∈ ℤ)
3735, 30, 36syl2an 595 . . . . . . . . . . . . 13 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ 𝑘 ∈ (0...(𝑀 − 1))) → (𝑃𝑘) ∈ ℤ)
3832, 37zmulcld 12414 . . . . . . . . . . . 12 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ 𝑘 ∈ (0...(𝑀 − 1))) → ((-1↑𝑘) · (𝑃𝑘)) ∈ ℤ)
3927, 38fsumzcl 15428 . . . . . . . . . . 11 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∈ ℤ)
4026, 39jca 511 . . . . . . . . . 10 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → ((𝑃 + 1) ∈ ℤ ∧ Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∈ ℤ))
4140ad2antrr 722 . . . . . . . . 9 ((((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 2 ∥ 𝑀) ∧ ((𝑃 + 1) · Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘))) = (2↑𝑁)) → ((𝑃 + 1) ∈ ℤ ∧ Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∈ ℤ))
42 dvdsmul2 15969 . . . . . . . . 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 5082 . . . . . . . . . 10 (((𝑃 + 1) · Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘))) = (2↑𝑁) → (Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∥ ((𝑃 + 1) · Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘))) ↔ Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∥ (2↑𝑁)))
4544adantl 481 . . . . . . . . 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 16378 . . . . . . . . . . . . . . . 16 2 ∈ ℙ
48 prmuz2 16382 . . . . . . . . . . . . . . . . . . . 20 (𝑃 ∈ ℙ → 𝑃 ∈ (ℤ‘2))
496, 48syl 17 . . . . . . . . . . . . . . . . . . 19 (𝑃 ∈ (ℙ ∖ {2}) → 𝑃 ∈ (ℤ‘2))
50493ad2ant1 1131 . . . . . . . . . . . . . . . . . 18 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → 𝑃 ∈ (ℤ‘2))
5150adantr 480 . . . . . . . . . . . . . . . . 17 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) → 𝑃 ∈ (ℤ‘2))
52 df-ne 2945 . . . . . . . . . . . . . . . . . . . . . 22 (𝑀 ≠ 1 ↔ ¬ 𝑀 = 1)
53 eluz2b3 12644 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑀 ∈ (ℤ‘2) ↔ (𝑀 ∈ ℕ ∧ 𝑀 ≠ 1))
5453simplbi2 500 . . . . . . . . . . . . . . . . . . . . . 22 (𝑀 ∈ ℕ → (𝑀 ≠ 1 → 𝑀 ∈ (ℤ‘2)))
5552, 54syl5bir 242 . . . . . . . . . . . . . . . . . . . . 21 (𝑀 ∈ ℕ → (¬ 𝑀 = 1 → 𝑀 ∈ (ℤ‘2)))
56553ad2ant2 1132 . . . . . . . . . . . . . . . . . . . 20 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (¬ 𝑀 = 1 → 𝑀 ∈ (ℤ‘2)))
5756com12 32 . . . . . . . . . . . . . . . . . . 19 𝑀 = 1 → ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → 𝑀 ∈ (ℤ‘2)))
5857adantr 480 . . . . . . . . . . . . . . . . . 18 ((¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀) → ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → 𝑀 ∈ (ℤ‘2)))
5958impcom 407 . . . . . . . . . . . . . . . . 17 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) → 𝑀 ∈ (ℤ‘2))
60 simprr 769 . . . . . . . . . . . . . . . . 17 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) → ¬ 2 ∥ 𝑀)
61 lighneallem4b 45013 . . . . . . . . . . . . . . . . 17 ((𝑃 ∈ (ℤ‘2) ∧ 𝑀 ∈ (ℤ‘2) ∧ ¬ 2 ∥ 𝑀) → Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∈ (ℤ‘2))
6251, 59, 60, 61syl3anc 1369 . . . . . . . . . . . . . . . 16 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) → Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∈ (ℤ‘2))
6323ad2ant3 1133 . . . . . . . . . . . . . . . . 17 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → 𝑁 ∈ ℕ0)
6463adantr 480 . . . . . . . . . . . . . . . 16 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) → 𝑁 ∈ ℕ0)
65 dvdsprmpweqnn 16567 . . . . . . . . . . . . . . . 16 ((2 ∈ ℙ ∧ Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∈ (ℤ‘2) ∧ 𝑁 ∈ ℕ0) → (Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∥ (2↑𝑁) → ∃𝑛 ∈ ℕ Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) = (2↑𝑛)))
6647, 62, 64, 65mp3an2i 1464 . . . . . . . . . . . . . . 15 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) → (Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∥ (2↑𝑁) → ∃𝑛 ∈ ℕ Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) = (2↑𝑛)))
67 2z 12335 . . . . . . . . . . . . . . . . . . 19 2 ∈ ℤ
6867a1i 11 . . . . . . . . . . . . . . . . . 18 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) → 2 ∈ ℤ)
69 iddvdsexp 15970 . . . . . . . . . . . . . . . . . 18 ((2 ∈ ℤ ∧ 𝑛 ∈ ℕ) → 2 ∥ (2↑𝑛))
7068, 69sylan 579 . . . . . . . . . . . . . . . . 17 ((((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) ∧ 𝑛 ∈ ℕ) → 2 ∥ (2↑𝑛))
71 breq2 5082 . . . . . . . . . . . . . . . . . . . 20 𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) = (2↑𝑛) → (2 ∥ Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ↔ 2 ∥ (2↑𝑛)))
7271adantl 481 . . . . . . . . . . . . . . . . . . 19 (((((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) ∧ 𝑛 ∈ ℕ) ∧ Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) = (2↑𝑛)) → (2 ∥ Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ↔ 2 ∥ (2↑𝑛)))
73 fzfid 13674 . . . . . . . . . . . . . . . . . . . . . 22 ((((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) ∧ 𝑛 ∈ ℕ) → (0...(𝑀 − 1)) ∈ Fin)
7428a1i 11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑃 ∈ ℕ → -1 ∈ ℤ)
7574, 31sylan 579 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑃 ∈ ℕ ∧ 𝑘 ∈ ℕ0) → (-1↑𝑘) ∈ ℤ)
76 nnnn0 12223 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑃 ∈ ℕ → 𝑃 ∈ ℕ0)
7776adantr 480 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((𝑃 ∈ ℕ ∧ 𝑘 ∈ ℕ0) → 𝑃 ∈ ℕ0)
78 simpr 484 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((𝑃 ∈ ℕ ∧ 𝑘 ∈ ℕ0) → 𝑘 ∈ ℕ0)
7977, 78nn0expcld 13942 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((𝑃 ∈ ℕ ∧ 𝑘 ∈ ℕ0) → (𝑃𝑘) ∈ ℕ0)
8079nn0zd 12406 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑃 ∈ ℕ ∧ 𝑘 ∈ ℕ0) → (𝑃𝑘) ∈ ℤ)
8175, 80zmulcld 12414 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑃 ∈ ℕ ∧ 𝑘 ∈ ℕ0) → ((-1↑𝑘) · (𝑃𝑘)) ∈ ℤ)
8281ex 412 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝑃 ∈ ℕ → (𝑘 ∈ ℕ0 → ((-1↑𝑘) · (𝑃𝑘)) ∈ ℤ))
836, 7, 823syl 18 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑃 ∈ (ℙ ∖ {2}) → (𝑘 ∈ ℕ0 → ((-1↑𝑘) · (𝑃𝑘)) ∈ ℤ))
84833ad2ant1 1131 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝑘 ∈ ℕ0 → ((-1↑𝑘) · (𝑃𝑘)) ∈ ℤ))
8584ad2antrr 722 . . . . . . . . . . . . . . . . . . . . . . 23 ((((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) ∧ 𝑛 ∈ ℕ) → (𝑘 ∈ ℕ0 → ((-1↑𝑘) · (𝑃𝑘)) ∈ ℤ))
8685, 30impel 505 . . . . . . . . . . . . . . . . . . . . . 22 (((((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) ∧ 𝑛 ∈ ℕ) ∧ 𝑘 ∈ (0...(𝑀 − 1))) → ((-1↑𝑘) · (𝑃𝑘)) ∈ ℤ)
87 nn0z 12326 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑘 ∈ ℕ0𝑘 ∈ ℤ)
88 m1expcl2 13785 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑘 ∈ ℤ → (-1↑𝑘) ∈ {-1, 1})
8987, 88syl 17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑘 ∈ ℕ0 → (-1↑𝑘) ∈ {-1, 1})
90 ovex 7301 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (-1↑𝑘) ∈ V
9190elpr 4589 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 ((-1↑𝑘) ∈ {-1, 1} ↔ ((-1↑𝑘) = -1 ∨ (-1↑𝑘) = 1))
92 n2dvdsm1 16059 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 ¬ 2 ∥ -1
93 breq2 5082 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 ((-1↑𝑘) = -1 → (2 ∥ (-1↑𝑘) ↔ 2 ∥ -1))
9492, 93mtbiri 326 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 ((-1↑𝑘) = -1 → ¬ 2 ∥ (-1↑𝑘))
95 n2dvds1 16058 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 ¬ 2 ∥ 1
96 breq2 5082 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 ((-1↑𝑘) = 1 → (2 ∥ (-1↑𝑘) ↔ 2 ∥ 1))
9795, 96mtbiri 326 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 ((-1↑𝑘) = 1 → ¬ 2 ∥ (-1↑𝑘))
9894, 97jaoi 853 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (((-1↑𝑘) = -1 ∨ (-1↑𝑘) = 1) → ¬ 2 ∥ (-1↑𝑘))
9998a1d 25 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (((-1↑𝑘) = -1 ∨ (-1↑𝑘) = 1) → (𝑘 ∈ ℕ0 → ¬ 2 ∥ (-1↑𝑘)))
10091, 99sylbi 216 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((-1↑𝑘) ∈ {-1, 1} → (𝑘 ∈ ℕ0 → ¬ 2 ∥ (-1↑𝑘)))
10189, 100mpcom 38 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑘 ∈ ℕ0 → ¬ 2 ∥ (-1↑𝑘))
102101adantl 481 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑘 ∈ ℕ0) → ¬ 2 ∥ (-1↑𝑘))
103 elnn0 12218 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑘 ∈ ℕ0 ↔ (𝑘 ∈ ℕ ∨ 𝑘 = 0))
104 oddn2prm 16494 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 (𝑃 ∈ (ℙ ∖ {2}) → ¬ 2 ∥ 𝑃)
105104adantr 480 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑘 ∈ ℕ) → ¬ 2 ∥ 𝑃)
106 simpr 484 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑘 ∈ ℕ) → 𝑘 ∈ ℕ)
107 prmdvdsexp 16401 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 ((2 ∈ ℙ ∧ 𝑃 ∈ ℤ ∧ 𝑘 ∈ ℕ) → (2 ∥ (𝑃𝑘) ↔ 2 ∥ 𝑃))
10847, 34, 106, 107mp3an2ani 1466 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑘 ∈ ℕ) → (2 ∥ (𝑃𝑘) ↔ 2 ∥ 𝑃))
109105, 108mtbird 324 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑘 ∈ ℕ) → ¬ 2 ∥ (𝑃𝑘))
110109expcom 413 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑘 ∈ ℕ → (𝑃 ∈ (ℙ ∖ {2}) → ¬ 2 ∥ (𝑃𝑘)))
111 oveq2 7276 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 (𝑘 = 0 → (𝑃𝑘) = (𝑃↑0))
112111adantr 480 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 ((𝑘 = 0 ∧ 𝑃 ∈ (ℙ ∖ {2})) → (𝑃𝑘) = (𝑃↑0))
1139adantl 481 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 ((𝑘 = 0 ∧ 𝑃 ∈ (ℙ ∖ {2})) → 𝑃 ∈ ℂ)
114113exp0d 13839 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 ((𝑘 = 0 ∧ 𝑃 ∈ (ℙ ∖ {2})) → (𝑃↑0) = 1)
115112, 114eqtrd 2779 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 ((𝑘 = 0 ∧ 𝑃 ∈ (ℙ ∖ {2})) → (𝑃𝑘) = 1)
116115breq2d 5090 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 ((𝑘 = 0 ∧ 𝑃 ∈ (ℙ ∖ {2})) → (2 ∥ (𝑃𝑘) ↔ 2 ∥ 1))
11795, 116mtbiri 326 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((𝑘 = 0 ∧ 𝑃 ∈ (ℙ ∖ {2})) → ¬ 2 ∥ (𝑃𝑘))
118117ex 412 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑘 = 0 → (𝑃 ∈ (ℙ ∖ {2}) → ¬ 2 ∥ (𝑃𝑘)))
119110, 118jaoi 853 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((𝑘 ∈ ℕ ∨ 𝑘 = 0) → (𝑃 ∈ (ℙ ∖ {2}) → ¬ 2 ∥ (𝑃𝑘)))
120103, 119sylbi 216 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑘 ∈ ℕ0 → (𝑃 ∈ (ℙ ∖ {2}) → ¬ 2 ∥ (𝑃𝑘)))
121120impcom 407 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑘 ∈ ℕ0) → ¬ 2 ∥ (𝑃𝑘))
122 ioran 980 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (¬ (2 ∥ (-1↑𝑘) ∨ 2 ∥ (𝑃𝑘)) ↔ (¬ 2 ∥ (-1↑𝑘) ∧ ¬ 2 ∥ (𝑃𝑘)))
123102, 121, 122sylanbrc 582 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑘 ∈ ℕ0) → ¬ (2 ∥ (-1↑𝑘) ∨ 2 ∥ (𝑃𝑘)))
12428, 31mpan 686 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑘 ∈ ℕ0 → (-1↑𝑘) ∈ ℤ)
125124adantl 481 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑘 ∈ ℕ0) → (-1↑𝑘) ∈ ℤ)
1266, 7, 763syl 18 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑃 ∈ (ℙ ∖ {2}) → 𝑃 ∈ ℕ0)
127126adantr 480 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑘 ∈ ℕ0) → 𝑃 ∈ ℕ0)
128 simpr 484 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑘 ∈ ℕ0) → 𝑘 ∈ ℕ0)
129127, 128nn0expcld 13942 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑘 ∈ ℕ0) → (𝑃𝑘) ∈ ℕ0)
130129nn0zd 12406 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑘 ∈ ℕ0) → (𝑃𝑘) ∈ ℤ)
131 euclemma 16399 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((2 ∈ ℙ ∧ (-1↑𝑘) ∈ ℤ ∧ (𝑃𝑘) ∈ ℤ) → (2 ∥ ((-1↑𝑘) · (𝑃𝑘)) ↔ (2 ∥ (-1↑𝑘) ∨ 2 ∥ (𝑃𝑘))))
13247, 125, 130, 131mp3an2i 1464 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑘 ∈ ℕ0) → (2 ∥ ((-1↑𝑘) · (𝑃𝑘)) ↔ (2 ∥ (-1↑𝑘) ∨ 2 ∥ (𝑃𝑘))))
133123, 132mtbird 324 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑘 ∈ ℕ0) → ¬ 2 ∥ ((-1↑𝑘) · (𝑃𝑘)))
134133ex 412 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑃 ∈ (ℙ ∖ {2}) → (𝑘 ∈ ℕ0 → ¬ 2 ∥ ((-1↑𝑘) · (𝑃𝑘))))
1351343ad2ant1 1131 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝑘 ∈ ℕ0 → ¬ 2 ∥ ((-1↑𝑘) · (𝑃𝑘))))
136135ad2antrr 722 . . . . . . . . . . . . . . . . . . . . . . 23 ((((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) ∧ 𝑛 ∈ ℕ) → (𝑘 ∈ ℕ0 → ¬ 2 ∥ ((-1↑𝑘) · (𝑃𝑘))))
137136, 30impel 505 . . . . . . . . . . . . . . . . . . . . . 22 (((((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) ∧ 𝑛 ∈ ℕ) ∧ 𝑘 ∈ (0...(𝑀 − 1))) → ¬ 2 ∥ ((-1↑𝑘) · (𝑃𝑘)))
138 nnm1nn0 12257 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑀 ∈ ℕ → (𝑀 − 1) ∈ ℕ0)
139 hashfz0 14128 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 ((𝑀 − 1) ∈ ℕ0 → (♯‘(0...(𝑀 − 1))) = ((𝑀 − 1) + 1))
140138, 139syl 17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑀 ∈ ℕ → (♯‘(0...(𝑀 − 1))) = ((𝑀 − 1) + 1))
141 nncn 11964 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑀 ∈ ℕ → 𝑀 ∈ ℂ)
142 npcan1 11383 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑀 ∈ ℂ → ((𝑀 − 1) + 1) = 𝑀)
143141, 142syl 17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑀 ∈ ℕ → ((𝑀 − 1) + 1) = 𝑀)
144140, 143eqtr2d 2780 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑀 ∈ ℕ → 𝑀 = (♯‘(0...(𝑀 − 1))))
1451443ad2ant2 1132 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → 𝑀 = (♯‘(0...(𝑀 − 1))))
146145adantr 480 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 𝑀 = 1) → 𝑀 = (♯‘(0...(𝑀 − 1))))
147146breq2d 5090 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 𝑀 = 1) → (2 ∥ 𝑀 ↔ 2 ∥ (♯‘(0...(𝑀 − 1)))))
148147notbid 317 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 𝑀 = 1) → (¬ 2 ∥ 𝑀 ↔ ¬ 2 ∥ (♯‘(0...(𝑀 − 1)))))
149148biimpd 228 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 𝑀 = 1) → (¬ 2 ∥ 𝑀 → ¬ 2 ∥ (♯‘(0...(𝑀 − 1)))))
150149impr 454 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) → ¬ 2 ∥ (♯‘(0...(𝑀 − 1))))
151150adantr 480 . . . . . . . . . . . . . . . . . . . . . 22 ((((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) ∧ 𝑛 ∈ ℕ) → ¬ 2 ∥ (♯‘(0...(𝑀 − 1))))
15273, 86, 137, 151oddsumodd 16080 . . . . . . . . . . . . . . . . . . . . 21 ((((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) ∧ 𝑛 ∈ ℕ) → ¬ 2 ∥ Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)))
153152pm2.21d 121 . . . . . . . . . . . . . . . . . . . 20 ((((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) ∧ 𝑛 ∈ ℕ) → (2 ∥ Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) → 𝑀 = 1))
154153adantr 480 . . . . . . . . . . . . . . . . . . 19 (((((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) ∧ 𝑛 ∈ ℕ) ∧ Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) = (2↑𝑛)) → (2 ∥ Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) → 𝑀 = 1))
15572, 154sylbird 259 . . . . . . . . . . . . . . . . . 18 (((((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) ∧ 𝑛 ∈ ℕ) ∧ Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) = (2↑𝑛)) → (2 ∥ (2↑𝑛) → 𝑀 = 1))
156155ex 412 . . . . . . . . . . . . . . . . 17 ((((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) ∧ 𝑛 ∈ ℕ) → (Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) = (2↑𝑛) → (2 ∥ (2↑𝑛) → 𝑀 = 1)))
15770, 156mpid 44 . . . . . . . . . . . . . . . 16 ((((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) ∧ 𝑛 ∈ ℕ) → (Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) = (2↑𝑛) → 𝑀 = 1))
158157rexlimdva 3214 . . . . . . . . . . . . . . 15 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) → (∃𝑛 ∈ ℕ Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) = (2↑𝑛) → 𝑀 = 1))
15966, 158syld 47 . . . . . . . . . . . . . 14 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 𝑀 = 1 ∧ ¬ 2 ∥ 𝑀)) → (Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∥ (2↑𝑁) → 𝑀 = 1))
160159exp32 420 . . . . . . . . . . . . 13 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (¬ 𝑀 = 1 → (¬ 2 ∥ 𝑀 → (Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∥ (2↑𝑁) → 𝑀 = 1))))
161160com12 32 . . . . . . . . . . . 12 𝑀 = 1 → ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (¬ 2 ∥ 𝑀 → (Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∥ (2↑𝑁) → 𝑀 = 1))))
162161impd 410 . . . . . . . . . . 11 𝑀 = 1 → (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 2 ∥ 𝑀) → (Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∥ (2↑𝑁) → 𝑀 = 1)))
16346, 162pm2.61i 182 . . . . . . . . . 10 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 2 ∥ 𝑀) → (Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∥ (2↑𝑁) → 𝑀 = 1))
164163adantr 480 . . . . . . . . 9 ((((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 2 ∥ 𝑀) ∧ ((𝑃 + 1) · Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘))) = (2↑𝑁)) → (Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘)) ∥ (2↑𝑁) → 𝑀 = 1))
16545, 164sylbid 239 . . . . . . . 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 412 . . . . . 6 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 2 ∥ 𝑀) → (((𝑃 + 1) · Σ𝑘 ∈ (0...(𝑀 − 1))((-1↑𝑘) · (𝑃𝑘))) = (2↑𝑁) → 𝑀 = 1))
16822, 167sylbid 239 . . . . 5 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 2 ∥ 𝑀) → (((𝑃𝑀) + 1) = (2↑𝑁) → 𝑀 = 1))
16917, 168sylbid 239 . . . 4 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ ¬ 2 ∥ 𝑀) → (((2↑𝑁) − 1) = (𝑃𝑀) → 𝑀 = 1))
170169ex 412 . . 3 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (¬ 2 ∥ 𝑀 → (((2↑𝑁) − 1) = (𝑃𝑀) → 𝑀 = 1)))
171170adantld 490 . 2 ((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → ((¬ 2 ∥ 𝑁 ∧ ¬ 2 ∥ 𝑀) → (((2↑𝑁) − 1) = (𝑃𝑀) → 𝑀 = 1)))
1721713imp 1109 1 (((𝑃 ∈ (ℙ ∖ {2}) ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ (¬ 2 ∥ 𝑁 ∧ ¬ 2 ∥ 𝑀) ∧ ((2↑𝑁) − 1) = (𝑃𝑀)) → 𝑀 = 1)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395  wo 843  w3a 1085   = wceq 1541  wcel 2109  wne 2944  wrex 3066  cdif 3888  {csn 4566  {cpr 4568   class class class wbr 5078  cfv 6430  (class class class)co 7268  cc 10853  0cc0 10855  1c1 10856   + caddc 10858   · cmul 10860  cmin 11188  -cneg 11189  cn 11956  2c2 12011  0cn0 12216  cz 12302  cuz 12564  ...cfz 13221  cexp 13763  chash 14025  Σcsu 15378  cdvds 15944  cprime 16357
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1801  ax-4 1815  ax-5 1916  ax-6 1974  ax-7 2014  ax-8 2111  ax-9 2119  ax-10 2140  ax-11 2157  ax-12 2174  ax-ext 2710  ax-rep 5213  ax-sep 5226  ax-nul 5233  ax-pow 5291  ax-pr 5355  ax-un 7579  ax-inf2 9360  ax-cnex 10911  ax-resscn 10912  ax-1cn 10913  ax-icn 10914  ax-addcl 10915  ax-addrcl 10916  ax-mulcl 10917  ax-mulrcl 10918  ax-mulcom 10919  ax-addass 10920  ax-mulass 10921  ax-distr 10922  ax-i2m1 10923  ax-1ne0 10924  ax-1rid 10925  ax-rnegex 10926  ax-rrecex 10927  ax-cnre 10928  ax-pre-lttri 10929  ax-pre-lttrn 10930  ax-pre-ltadd 10931  ax-pre-mulgt0 10932  ax-pre-sup 10933
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1544  df-fal 1554  df-ex 1786  df-nf 1790  df-sb 2071  df-mo 2541  df-eu 2570  df-clab 2717  df-cleq 2731  df-clel 2817  df-nfc 2890  df-ne 2945  df-nel 3051  df-ral 3070  df-rex 3071  df-reu 3072  df-rmo 3073  df-rab 3074  df-v 3432  df-sbc 3720  df-csb 3837  df-dif 3894  df-un 3896  df-in 3898  df-ss 3908  df-pss 3910  df-nul 4262  df-if 4465  df-pw 4540  df-sn 4567  df-pr 4569  df-tp 4571  df-op 4573  df-uni 4845  df-int 4885  df-iun 4931  df-br 5079  df-opab 5141  df-mpt 5162  df-tr 5196  df-id 5488  df-eprel 5494  df-po 5502  df-so 5503  df-fr 5543  df-se 5544  df-we 5545  df-xp 5594  df-rel 5595  df-cnv 5596  df-co 5597  df-dm 5598  df-rn 5599  df-res 5600  df-ima 5601  df-pred 6199  df-ord 6266  df-on 6267  df-lim 6268  df-suc 6269  df-iota 6388  df-fun 6432  df-fn 6433  df-f 6434  df-f1 6435  df-fo 6436  df-f1o 6437  df-fv 6438  df-isom 6439  df-riota 7225  df-ov 7271  df-oprab 7272  df-mpo 7273  df-om 7701  df-1st 7817  df-2nd 7818  df-frecs 8081  df-wrecs 8112  df-recs 8186  df-rdg 8225  df-1o 8281  df-2o 8282  df-oadd 8285  df-er 8472  df-en 8708  df-dom 8709  df-sdom 8710  df-fin 8711  df-sup 9162  df-inf 9163  df-oi 9230  df-dju 9643  df-card 9681  df-pnf 10995  df-mnf 10996  df-xr 10997  df-ltxr 10998  df-le 10999  df-sub 11190  df-neg 11191  df-div 11616  df-nn 11957  df-2 12019  df-3 12020  df-4 12021  df-n0 12217  df-z 12303  df-uz 12565  df-q 12671  df-rp 12713  df-fz 13222  df-fzo 13365  df-fl 13493  df-mod 13571  df-seq 13703  df-exp 13764  df-hash 14026  df-cj 14791  df-re 14792  df-im 14793  df-sqrt 14927  df-abs 14928  df-clim 15178  df-sum 15379  df-dvds 15945  df-gcd 16183  df-prm 16358  df-pc 16519
This theorem is referenced by:  lighneal  45015
  Copyright terms: Public domain W3C validator