\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[a4paper,margin=2.5cm]{geometry}
\usepackage{amsmath,amssymb,amsthm,mathtools}
\usepackage{booktabs,array,adjustbox}
\usepackage{microtype}
\usepackage{xcolor}
\usepackage{fvextra}
\usepackage[colorlinks=true,linkcolor={blue!50!black},urlcolor={blue!50!black},citecolor={blue!50!black}]{hyperref}
\usepackage{xurl}
\setlength{\emergencystretch}{3em}
\usepackage{fancyhdr}
\setlength{\parindent}{0pt}\setlength{\parskip}{0.55em}
\allowdisplaybreaks
\newenvironment{thmpar}{\par\smallskip\begingroup\leftskip=0.9em\rightskip=0pt}{\par\endgroup\smallskip}
\providecommand{\R}{\mathbb{R}}\providecommand{\N}{\mathbb{N}}\providecommand{\Z}{\mathbb{Z}}\providecommand{\Q}{\mathbb{Q}}\providecommand{\C}{\mathbb{C}}
\providecommand{\mathscr}{\mathcal}\providecommand{\bm}{\boldsymbol}\providecommand{\Bbb}{\mathbb}
\providecommand{\le}{\mathrm{le}}
\providecommand{\varphi}{\mathrm{varphi}}
\pagestyle{fancy}\fancyhf{}\renewcommand{\headrulewidth}{0pt}
\fancyfoot[L]{\footnotesize\begin{tabular}[b]{@{}l@{}}iis:2611.00423 \textperiodcentered{} \href{https://isitsolved.com/journal/6244489752a6}{isitsolved.com/journal/6244489752a6}\\ Timestamped in Bitcoin block 978,038 (2026-11-29), transaction \href{https://mempool.space/tx/8ff674a1629ec5b87b11d09aedea32ff3a7df539a0d3a5817628f3512f30d2a9}{\texttt{8ff674a1629ec5b8\ldots{}2f30d2a9}}\end{tabular}}\fancyfoot[R]{\footnotesize\thepage}
\hypersetup{pdftitle={Sun's conjecture (i) in OEIS A234309 is false at n = 43295},pdfauthor={Dev Singh}}
\title{\bfseries Sun's conjecture (i) in OEIS A234309 is false at n = 43295}
\author{Dev Singh}
\date{2026-11-29 \\ \small iis:2611.00423}
\begin{document}
\maketitle
\thispagestyle{fancy}
\begin{abstract}
OEIS A234309 (Zhi-Wei Sun, 2013) conjectures that for every n > 5 there is a k with 2 < k \ensuremath{\le} n/2 such that \(2^{phi}\)(k) + \(2^{phi}\)(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 1\(0^{8}\) and the other 4305 fail a Fermat test (base 2, and base 3 for the Mersenne number 2\textasciicircum{}13441 - 1), on numbers of up to 43,200 bits.
\end{abstract}


\section*{Sun's conjecture in OEIS A234309: part (i) is false}

\begin{thmpar}\textbf{Theorem 1 (\texttt{OeisA234309.\allowbreak{}conjecture\_\allowbreak{}i\_\allowbreak{}false}).} 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\).\end{thmpar}

Lean receipt requested on this site: \url{https://isitsolved.com/lean/receipts/5b642c486b79}

\href{https://oeis.org/A234309}{OEIS A234309} (Zhi-Wei Sun, December 2013) defines, with \ensuremath{\varphi} Euler's
totient function,

\begin{quote}
a(n) = the number of k with 2 < k \ensuremath{\le} n/2 such that 2\textasciicircum{}\ensuremath{\varphi}(k) + 2\textasciicircum{}\ensuremath{\varphi}(n\ensuremath{-}k) \ensuremath{-} 1 is prime,
\end{quote}

and conjectures (i) a(n) > 0 for all n > 5.

\textbf{Part (i) is false. It fails at n = 43295}: the number 2\textasciicircum{}\ensuremath{\varphi}(k) + 2\textasciicircum{}\ensuremath{\varphi}(43295\ensuremath{-}k) \ensuremath{-} 1 is composite
for every k from 3 to 21647.

\begin{center}\small\begin{adjustbox}{max width=\linewidth}\begin{tabular}{ll}
\toprule
\textbf{Claim} & \textbf{How it is established} \\
\midrule
Part (i) is false at n = 43295 & A Lean 4 proof checked by the Lean kernel. \texttt{\#print axioms} gives \texttt{propext}, \texttt{Classical.\allowbreak{}choice}, \texttt{Quot.\allowbreak{}sound} and nothing else: no \texttt{sorry}, no \texttt{native\_\allowbreak{}decide}. \\
\bottomrule
\end{tabular}\end{adjustbox}\end{center}

Part (ii) of the conjecture in the same entry is not addressed.

\section*{Reading the proof}

Three files are written by hand. Start with them:

\begin{center}\small\begin{adjustbox}{max width=\linewidth}\begin{tabular}{ll}
\toprule
\textbf{File} & \textbf{What it is} \\
\midrule
\href{https://github.com/DevSingh05/oeis-a234309/blob/main/OeisA234309/Main.lean}{\texttt{OeisA234309/\allowbreak{}Main.\allowbreak{}lean}} & The theorem \\
\href{https://github.com/DevSingh05/oeis-a234309/blob/main/OeisA234309/Checker.lean}{\texttt{OeisA234309/\allowbreak{}Checker.\allowbreak{}lean}} & A compositeness checker that the Lean kernel can run, with its soundness proofs \\
\href{https://github.com/DevSingh05/oeis-a234309/blob/main/OeisA234309/Sanity.lean}{\texttt{OeisA234309/\allowbreak{}Sanity.\allowbreak{}lean}} & Checks that the checker refuses primes \\
\bottomrule
\end{tabular}\end{adjustbox}\end{center}

Everything in \href{https://github.com/DevSingh05/oeis-a234309/blob/main/OeisA234309/Generated}{\texttt{OeisA234309/\allowbreak{}Generated/}} is produced by
\texttt{scripts/\allowbreak{}gen\_\allowbreak{}lean.\allowbreak{}py}: the certificates, and the checker applied to them.

\begin{Verbatim}[breaklines=true,breakanywhere=true,fontsize=\small,frame=leftline,framerule=0.6pt,framesep=3mm,rulecolor=\color{black!20}]
theorem conjecture_i_false :
    ? ? n : ?, 5 < n ->
      ? k : ?, 2 < k ? k <= n / 2 ? (2 ^ k.totient + 2 ^ (n - k).totient - 1).Prime
\end{Verbatim}

\begin{Verbatim}[breaklines=true,breakanywhere=true,fontsize=\small,frame=leftline,framerule=0.6pt,framesep=3mm,rulecolor=\color{black!20}]
'OeisA234309.conjecture_i_false' depends on axioms: [propext, Classical.choice, Quot.sound]
\end{Verbatim}



\subsection*{How the proof works}

Each of the 21645 values N = 2\textasciicircum{}x + 2\textasciicircum{}y \ensuremath{-} 1 (x = \ensuremath{\varphi}(k), y = \ensuremath{\varphi}(43295 \ensuremath{-} k), up to 43,200 bits) gets
a certificate that it is composite:

\begin{itemize}
  \item \textbf{A prime factor} below 10\ensuremath{^{8}}, for 17340 of the k (80\%). The kernel checks one division.
  \item \textbf{A failed Fermat test}, for the other 4305. If N is prime then b\textasciicircum{}(N+1) \ensuremath{\equiv} b\ensuremath{^{2}} (mod N), by
Fermat's little theorem (from Mathlib). Since N + 1 = 2\textasciicircum{}x + 2\textasciicircum{}y, the left side is
b\textasciicircum{}(2\textasciicircum{}x) \ensuremath{\cdot} b\textasciicircum{}(2\textasciicircum{}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\textasciicircum{}13441 \ensuremath{-} 1 is a
Mersenne number with prime exponent, which passes every base-2 test, so b = 3 is used.
\end{itemize}

Euler's totient is read from a table, which \texttt{Generated/\allowbreak{}PhiSpec.\allowbreak{}lean} proves equal to
\texttt{Nat.\allowbreak{}totient} by checking, for every m, the recurrence \ensuremath{\varphi}(m) = p\ensuremath{\cdot}\ensuremath{\varphi}(m/p) or (p \ensuremath{-} 1)\ensuremath{\cdot}\ensuremath{\varphi}(m/p) for a
prime factor p of m. Every check is closed by \texttt{decide +kernel}.

\subsection*{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\textasciicircum{}8, then Fermat tests; about 15 minutes with gmpy2
    python scripts/gen\_lean.py            \# writes OeisA234309/Generated

\section*{Independent check}

\texttt{scripts/\allowbreak{}verify\_\allowbreak{}independent.\allowbreak{}py 43295} is a separate program (own totient code, a gcd with the
product of the primes below 10\ensuremath{^{5}} 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.

\section*{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.

\section*{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.

\section*{Sources}
\begin{enumerate}\small
  \item OEIS A234309. \url{https://oeis.org/A234309}
  \item Lean 4 proof, certificates and scripts. \url{https://github.com/DevSingh05/oeis-a234309}
\end{enumerate}
\end{document}
