import OeisA234309.Generated.PhiSpec import OeisA234309.Generated.Cover /-! # Part (i) of Sun's conjecture in OEIS A234309 is false [OEIS A234309](https://oeis.org/A234309) (Zhi-Wei Sun, December 2013), with `φ` Euler's totient: `a(n)` is the number of `k` with `2 < k ≤ n/2` such that `2^φ(k) + 2^φ(n-k) - 1` is prime, and part (i) of the conjecture says `a(n) > 0` for all `n > 5`. It fails at `n = 43295`: the number is composite for every `k` from `3` to `21647`. -/ namespace OeisA234309 /-- For `n = 43295` no `k` with `2 < k ≤ n/2` makes `2^φ(k) + 2^φ(n-k) - 1` prime. -/ theorem no_prime_at_43295 (k : ℕ) (h1 : 2 < k) (h2 : k ≤ 43295 / 2) : ¬ (2 ^ k.totient + 2 ^ (43295 - k).totient - 1).Prime := by obtain ⟨q, hq⟩ := cover k h1 (by omega) have hq' : certOK (phiT k) (phiT (43295 - k)) q = true := hq have h := not_prime_of_certOK hq' rwa [phiT_eq k (by omega), phiT_eq (43295 - k) (by omega)] at h /-- Part (i) of the conjecture is false. -/ theorem conjecture_i_false : ¬ ∀ n : ℕ, 5 < n → ∃ k : ℕ, 2 < k ∧ k ≤ n / 2 ∧ (2 ^ k.totient + 2 ^ (n - k).totient - 1).Prime := by intro h obtain ⟨k, h1, h2, hp⟩ := h 43295 (by norm_num) exact no_prime_at_43295 k h1 h2 hp end OeisA234309 #print axioms OeisA234309.conjecture_i_false