Sun's conjecture (i) in OEIS A234309 is false at n = 43295
PDF built from iis-2611-00423.tex sha256 a9b1706115ad… by the site's TeX builder, 2026-11-29 09:01 UTC.
OEIS A234309 (Zhi-Wei Sun, 2013) conjectures that for every n > 5 there is a k with 2 < k ≤ n/2 such that 2φ(k) + 2φ(n-k) - 1 is prime, where phi is Euler's totient. This fails at n = 43295: the number is composite for every k from 3 to 21647. The failure is proved in Lean 4 and checked by the kernel with the standard axioms only. Of the 21645 values, 17340 have a prime factor below 108 and the other 4305 fail a Fermat test (base 2, and base 3 for the Mersenne number 2^13441 − 1), on numbers of up to 43,200 bits.
A 2013 conjecture said every whole number n above 5 can be split into two parts k and n - k so that a certain huge number built from the two parts is prime. For n = 43295 there are 21,645 ways to split, and none of them gives a prime. A computer proof assistant has checked that all 21,645 numbers are composite.
1 numbered result: 1 checked in Lean.
- Theorem 1OeisA234309.conjecture_i_false✓ Lean
- Main.lean sha256 afdfbbfef75a…
- Checker.lean sha256 4c103188c4a0…
- verify_independent.py sha256 12fe591d082c…
Lean marks come from matching the Lean names the paper gives for each result against the receipt. That a Lean statement says what the paper claims is checked by a reviewer, not a machine.
- acceptedbrbrk97 on v1 (this version), 2026-11-30
Accept. I read OEIS A234309, including Sun's conjecture (i) that a(n) > 0 for all n > 5. I checked the site's Lean receipt and re-did the computation …
Accept. I read OEIS A234309, including Sun's conjecture (i) that a(n) > 0 for all n > 5. I checked the site's Lean receipt and re-did the computation with my own code.
The statement.
- Receipt 5b642c486b79 reads ACCEPTED for
OeisA234309.conjecture_i_false, built from DevSingh05/oeis-a234309 at 766e5c5. - Its recorded statement is
¬∀ n, 5 < n → ∃ k, 2 < k ∧ k ≤ n / 2 ∧ Nat.Prime (2 ^ k.totient + 2 ^ (n - k).totient - 1). This is exactly the negation of part (i) as defined in the entry, with the range 2 < k ≤ n/2 and φ the totient.
My computation (
a234309_check.py, run on 10 processes). For n = 43295 I tested every k with 3 ≤ k ≤ 21647, that is 21,645 values of 2^φ(k) + 2^φ(43295−k) − 1. Each is composite:- 13,558 have a prime factor below 20,000;
- the other 8,087 fail gmpy2's Miller–Rabin/BPSW test, which is a proof of compositeness.
No k gives a probable prime, so a(43295) = 0, independently of the paper's certificates. The paper's split, 17,340 with a factor below 10⁸ and 4,305 by Fermat tests, differs only because its trial-division bound is larger.
Scope.
- The paper does not claim that 43295 is the least counterexample, and I did not check that.
- Part (ii) of the entry is not addressed, as the paper says.
- I did not check the repository's certificates or checker.
- Receipt 5b642c486b79 reads ACCEPTED for
Sun's conjecture in OEIS A234309: part (i) is false
Theorem 1 (OeisA234309.conjecture_i_false). ✓ Lean It is not true that for every \(n > 5\) there is \(k\) with \(2 < k \le n/2\) and \(2^{\varphi(k)} + 2^{\varphi(n-k)} - 1\) prime: there is no such \(k\) for \(n = 43295\).
Lean statement · conjecture_i_false
¬∀ (n : ℕ),5 < n → ∃ k, 2 < k ∧ k ≤ n / 2 ∧ Nat.Prime (2 ^ k.totient + 2 ^ (n - k).totient - 1)In the Lean panel → · proof map →
Lean receipt requested on this site: isitsolved.com/lean/receipts/5b642c486b79
OEIS A234309 (Zhi-Wei Sun, December 2013) defines, with φ Euler's
totient function,
a(n) = the number of k with 2 < k ≤ n/2 such that 2^φ(k) + 2^φ(n−k) − 1 is prime,
and conjectures (i) a(n) > 0 for all n > 5.
Part (i) is false. It fails at n = 43295: the number 2^φ(k) + 2^φ(43295−k) − 1 is composite
for every k from 3 to 21647.
| Claim | How it is established |
|---|---|
| Part (i) is false at n = 43295 | A Lean 4 proof checked by the Lean kernel. #print axioms gives propext, Classical.choice, Quot.sound and nothing else: no sorry, no native_decide. |
Part (ii) of the conjecture in the same entry is not addressed.
Reading the proof
Three files are written by hand. Start with them:
| File | What it is |
|---|---|
OeisA234309/Main.lean | The theorem |
OeisA234309/Checker.lean | A compositeness checker that the Lean kernel can run, with its soundness proofs |
OeisA234309/Sanity.lean | Checks that the checker refuses primes |
Everything in OeisA234309/Generated/ is produced byscripts/gen_lean.py: the certificates, and the checker applied to them.
theorem conjecture_i_false :¬ ∀ n : ℕ, 5 < n →∃ k : ℕ, 2 < k ∧ k ≤ n / 2 ∧ (2 ^ k.totient + 2 ^ (n - k).totient - 1).Prime
'OeisA234309.conjecture_i_false' depends on axioms: [propext, Classical.choice, Quot.sound]
How the proof works
Each of the 21645 values N = 2^x + 2^y − 1 (x = φ(k), y = φ(43295 − k), up to 43,200 bits) gets
a certificate that it is composite:
- A prime factor below 10⁸, for 17340 of the k (80%). The kernel checks one division.
- A failed Fermat test, for the other 4305. If N is prime then b^(N+1) ≡ b² (mod N), by
Fermat's little theorem (from Mathlib). Since N + 1 = 2^x + 2^y, the left side is
b^(2^x) · b^(2^y), which needs only max(x, y) modular squarings and no reading of exponent
bits. The base is b = 2, except for k = 15457: there x = y = 13440 and N = 2^13441 − 1 is a
Mersenne number with prime exponent, which passes every base-2 test, so b = 3 is used.
Euler's totient is read from a table, which Generated/PhiSpec.lean proves equal toNat.totient by checking, for every m, the recurrence φ(m) = p·φ(m/p) or (p − 1)·φ(m/p) for a
prime factor p of m. Every check is closed by decide +kernel.
Build
lake exe cache get
lake build
A full build took 22 minutes on an 18-core Apple laptop with 24 GB of RAM (2.4 CPU-hours). The
certificates are split over 8 files that Lake builds in parallel, each using about 2 GB.
To regenerate from scratch:
python scripts/find_certificates.py # factors below 10^8, then Fermat tests; about 15 minutes with gmpy2
python scripts/gen_lean.py # writes OeisA234309/Generated
Independent check
scripts/verify_independent.py 43295 is a separate program (own totient code, a gcd with the
product of the primes below 10⁵ or a Fermat test to base 3) that finds every k composite:
14722 by a small factor, 6923 by the Fermat test, none probable prime.
Prior work
On 2026-11-28 I looked for an earlier report and found none: in the OEIS entry A234309, in
google-deepmind/formal-conjectures (no file for this sequence), in
lefttosolve2/open-math-agents (the statement is there, unproved), on isitsolved.com, or by GitHub
code search. If an earlier report exists, please open an issue and I will credit it here.
Credits
Found on 2026-11-28 by Dev Pratap Singh, in a search of Sun's December 2013 family of
conjectures. The search, certificates and Lean proof were produced with AI assistance (Claude,
Anthropic); two ideas used in the search (reusing primality results across n, and discarding
algebraic composites) came from a consultation with OpenAI Codex. MIT license.
PDFs do not display inside pages on phones. Open the PDF.
The Lean proof builds and checks
Built from the attached project on our node, with no network, then checked:
- Lean v4.33.1 · Mathlib 0df444a
- 1/1 theorems found
- no sorry
- standard axioms only
- no native_decide
- built in 6846 s
- 9,955 declarations
A 2013 conjecture said every whole number n above 5 can be split into two parts k and n - k so that a certain huge number built from the two parts is prime. For n = 43295 there are 21,645 ways to split, and none of them gives a prime. A computer proof assistant has checked that all 21,645 numbers are composite.
Theorem 1OeisA234309.conjecture_i_false✓ Leanconjecture_i_false
OeisA234309.conjecture_i_falseproof map →¬∀ (n : ℕ),5 < n → ∃ k, 2 < k ∧ k ≤ n / 2 ∧ Nat.Prime (2 ^ k.totient + 2 ^ (n - k).totient - 1)
Not checked by a machine: that these statements say what the paper claims. That part is a reviewer's.
Files
content-addressed: the hash is the address| iis-2611-00423.pdf | 299 kB | sha256 52973fdd252f8680… .ots |
| Main.lean | 1 kB | sha256 afdfbbfef75a7d5b… read .ots |
| Checker.lean | 9 kB | sha256 4c103188c4a0c20f… read .ots |
| verify_independent.py | 974 B | sha256 12fe591d082ceb53… .ots |