| Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > phival | Structured version Visualization version GIF version | ||
| Description: Value of the Euler ϕ function. (Contributed by Mario Carneiro, 23-Feb-2014.) |
| Ref | Expression |
|---|---|
| phival | ⊢ (𝑁 ∈ ℕ → (ϕ‘𝑁) = (♯‘{𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1})) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | oveq2 7406 | . . . 4 ⊢ (𝑛 = 𝑁 → (1...𝑛) = (1...𝑁)) | |
| 2 | oveq2 7406 | . . . . 5 ⊢ (𝑛 = 𝑁 → (𝑥 gcd 𝑛) = (𝑥 gcd 𝑁)) | |
| 3 | 2 | eqeq1d 2766 | . . . 4 ⊢ (𝑛 = 𝑁 → ((𝑥 gcd 𝑛) = 1 ↔ (𝑥 gcd 𝑁) = 1)) |
| 4 | 1, 3 | rabeqbidv 3434 | . . 3 ⊢ (𝑛 = 𝑁 → {𝑥 ∈ (1...𝑛) ∣ (𝑥 gcd 𝑛) = 1} = {𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) |
| 5 | 4 | fveq2d 6873 | . 2 ⊢ (𝑛 = 𝑁 → (♯‘{𝑥 ∈ (1...𝑛) ∣ (𝑥 gcd 𝑛) = 1}) = (♯‘{𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1})) |
| 6 | df-phi 16803 | . 2 ⊢ ϕ = (𝑛 ∈ ℕ ↦ (♯‘{𝑥 ∈ (1...𝑛) ∣ (𝑥 gcd 𝑛) = 1})) | |
| 7 | fvex 6882 | . 2 ⊢ (♯‘{𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) ∈ V | |
| 8 | 5, 6, 7 | fvmpt 6977 | 1 ⊢ (𝑁 ∈ ℕ → (ϕ‘𝑁) = (♯‘{𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1})) |
| Colors of variables: wff setvar class |
| Syntax hints: → wi 4 = wceq 1562 ∈ wcel 2144 {crab 3416 ‘cfv 6523 (class class class)co 7398 1c1 11076 ℕcn 12212 ...cfz 13514 ♯chash 14345 gcd cgcd 16530 ϕcphi 16801 |
| This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1817 ax-4 1831 ax-5 1932 ax-6 1989 ax-7 2030 ax-8 2146 ax-9 2154 ax-10 2177 ax-11 2193 ax-12 2214 ax-ext 2736 ax-sep 5248 ax-nul 5258 ax-pr 5392 |
| This theorem depends on definitions: df-bi 209 df-an 400 df-or 859 df-3an 1101 df-tru 1565 df-fal 1575 df-ex 1802 df-nf 1806 df-sb 2093 df-mo 2568 df-eu 2598 df-clab 2743 df-cleq 2756 df-clel 2839 df-nfc 2913 df-ne 2960 df-ral 3079 df-rex 3089 df-rab 3417 df-v 3458 df-dif 3909 df-un 3911 df-in 3913 df-ss 3923 df-nul 4288 df-if 4483 df-sn 4585 df-pr 4587 df-op 4591 df-uni 4868 df-br 5103 df-opab 5165 df-mpt 5184 df-id 5544 df-xp 5655 df-rel 5656 df-cnv 5657 df-co 5658 df-dm 5659 df-iota 6479 df-fun 6525 df-fv 6531 df-ov 7401 df-phi 16803 |
| This theorem is referenced by: phicl2 16805 phibnd 16808 dfphi2 16811 phiprmpw 16813 |
| Copyright terms: Public domain | W3C validator |