\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{\varphi}{\mathrm{varphi}}
\pagestyle{fancy}\fancyhf{}\renewcommand{\headrulewidth}{0pt}
\fancyfoot[L]{\footnotesize\begin{tabular}[b]{@{}l@{}}iis:2611.00360 \textperiodcentered{} \href{https://isitsolved.com/journal/81678b6ece51}{isitsolved.com/journal/81678b6ece51}\\ Timestamped in Bitcoin block 977,995 (2026-11-28), transaction \href{https://mempool.space/tx/24d0d305e5945de4d5b0749dd831babe952474c208a77bf45c0a8de740d6c9e7}{\texttt{24d0d305e5945de4\ldots{}40d6c9e7}}\end{tabular}}\fancyfoot[R]{\footnotesize\thepage}
\hypersetup{pdftitle={Three of the four assertions of Sun's Conjecture 3.28 (OEIS A234360) are false},pdfauthor={Dev Singh}}
\title{\bfseries Three of the four assertions of Sun's Conjecture 3.28 (OEIS A234360) are false}
\author{Dev Singh}
\date{2026-11-28 \\ \small iis:2611.00360}
\begin{document}
\maketitle
\thispagestyle{fancy}
\begin{abstract}
Conjecture 3.28 of Zhi-Wei Sun's 'Conjectures on representations involving primes' (arXiv:1211.1588; OEIS A234360) makes four assertions that a prime of a given form exists for every n. One was disproved at n = 1408 by Adamczewski (arXiv:2608.11941). We show the other three are false, with least counterexamples n = 4722 for (k+1\()^{phi}\)(n-k) + k, n = 7588 for k(k+1\()^{phi}\)(n-k) + 1, and n = 3998 for k(k+1)\textasciicircum{}(phi(n-k)/2) - 1. In formal-conjectures these are OEIS/234360 conjecture\_1, conjecture\_3 and conjecture\_4. The negation of each is proved in Lean 4 and checked by the kernel with the standard axioms only: every k gets a prime factor below 1\(0^{9}\) or a failed base-2 Fermat test, on numbers of up to 66,000 bits. Minimality is by computation, with a primality proof for one value at every smaller n.
\end{abstract}


\section*{Three of the four assertions in Sun's Conjecture 3.28 (OEIS A234360) are false}

\begin{thmpar}\textbf{Theorem 1 (\texttt{OeisA234360.\allowbreak{}conjecture\_\allowbreak{}1\_\allowbreak{}false}).} For \(n = 4722\), \((k+1)^{\varphi(n-k)} + k\) is composite for every \(0 < k < n\).\end{thmpar}

\begin{thmpar}\textbf{Theorem 2 (\texttt{OeisA234360.\allowbreak{}conjecture\_\allowbreak{}3\_\allowbreak{}false}).} For \(n = 7588\), \(k(k+1)^{\varphi(n-k)} + 1\) is composite for every \(0 < k < n\).\end{thmpar}

\begin{thmpar}\textbf{Theorem 3 (\texttt{OeisA234360.\allowbreak{}conjecture\_\allowbreak{}4\_\allowbreak{}false}).} For \(n = 3998\) there are no \(0 < k < n\) and prime \(p\) with \((p+1)^2 = k^2 (k+1)^{\varphi(n-k)}\).\end{thmpar}

Atlas ids: OEIS/234360\#OeisA234360.conjecture\_1, conjecture\_3, conjecture\_4. Lean receipt scheduled on this site: \url{https://isitsolved.com/lean/receipts/d0d38bb1bf4c}

Zhi-Wei Sun, \emph{Conjectures on representations involving primes}
(\href{https://arxiv.org/abs/1211.1588}{\href{https://arxiv.org/abs/1211.1588}{arXiv:1211.1588}}, Conjecture 3.28, dated 2012-12-24; also the
conjecture in \href{https://oeis.org/A234360}{OEIS A234360}) makes four assertions. With \ensuremath{\varphi} Euler's
totient function:

\begin{center}\small\begin{adjustbox}{max width=\linewidth}\begin{tabular}{lll}
\toprule
\textbf{} & \textbf{Assertion} & \textbf{Status} \\
\midrule
(i) a & for every n > 1, (k+1)\textasciicircum{}\ensuremath{\varphi}(n\ensuremath{-}k) + k is prime for some 0 < k < n & \textbf{False. It fails at n = 4722, the smallest counterexample.} \\
(i) b & for every n > 5, (k+1)\textasciicircum{}(\ensuremath{\varphi}(n\ensuremath{-}k)/2) \ensuremath{-} k is prime for some 0 < k < n & False at n = 1408 (T. Adamczewski, OEIS Open, \href{https://arxiv.org/abs/2608.11941}{\href{https://arxiv.org/abs/2608.11941}{arXiv:2608.11941}}). Not this repo. \\
(ii) a & for every n > 1, k(k+1)\textasciicircum{}\ensuremath{\varphi}(n\ensuremath{-}k) + 1 is prime for some 0 < k < n & \textbf{False. It fails at n = 7588, the smallest counterexample.} \\
(ii) b & for every n > 3, k(k+1)\textasciicircum{}(\ensuremath{\varphi}(n\ensuremath{-}k)/2) \ensuremath{-} 1 is prime for some 0 < k < n & \textbf{False. It fails at n = 3998, the smallest counterexample.} \\
\bottomrule
\end{tabular}\end{adjustbox}\end{center}

(The labels follow the OEIS entry; the paper groups the same four assertions differently.)

\begin{center}\small\begin{adjustbox}{max width=\linewidth}\begin{tabular}{ll}
\toprule
\textbf{Claim} & \textbf{How it is established} \\
\midrule
The three assertions are false & Lean 4 proofs 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}. \\
4722, 7588 and 3998 are the smallest counterexamples & Computation: every smaller n has a witness k whose value is \textbf{proved} prime (not a probable-prime test). Not a Lean proof. \\
\bottomrule
\end{tabular}\end{adjustbox}\end{center}

In \href{https://github.com/google-deepmind/formal-conjectures}{google-deepmind/formal-conjectures}
the three statements are \texttt{OeisA234360.\allowbreak{}conjecture\_\allowbreak{}1}, \texttt{conjecture\_\allowbreak{}3} and \texttt{conjecture\_\allowbreak{}4}, tagged
\texttt{research open} at commit \texttt{9097e2f}. Sun's b-file covers n \ensuremath{\le} 2500, where all four assertions hold.

\section*{Reading the proof}

Three files are written by hand. Start with them:

\begin{center}\small\begin{adjustbox}{max width=\linewidth}\begin{tabular}{lll}
\toprule
\textbf{File} & \textbf{Lines} & \textbf{What it is} \\
\midrule
\href{https://github.com/DevSingh05/oeis-a234360/blob/main/OeisA234360/Main.lean}{\texttt{OeisA234360/\allowbreak{}Main.\allowbreak{}lean}} & 57 & The three theorems, stated as the negations of the formal-conjectures statements \\
\href{https://github.com/DevSingh05/oeis-a234360/blob/main/OeisA234360/Checker.lean}{\texttt{OeisA234360/\allowbreak{}Checker.\allowbreak{}lean}} & 207 & A compositeness checker that the Lean kernel can run, with its soundness proofs \\
\href{https://github.com/DevSingh05/oeis-a234360/blob/main/OeisA234360/Sanity.lean}{\texttt{OeisA234360/\allowbreak{}Sanity.\allowbreak{}lean}} & 26 & Checks that the checker refuses primes \\
\bottomrule
\end{tabular}\end{adjustbox}\end{center}

Everything in \href{https://github.com/DevSingh05/oeis-a234360/blob/main/OeisA234360/Generated}{\texttt{OeisA234360/\allowbreak{}Generated/}} is produced by
\texttt{scripts/\allowbreak{}gen\_\allowbreak{}lean.\allowbreak{}py}. It contains the certificates and applies the checker to them; there is
nothing to read there.

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

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


Here \texttt{a} is imported unchanged from formal-conjectures.

\subsection*{How the proofs work}

Each counterexample needs every value of k shown composite: 4721, 7587 and 3997 numbers, the
largest of about 38,000, 66,000 and 16,000 bits. Each k gets a certificate:

\begin{itemize}
  \item \textbf{A prime factor} below 10\ensuremath{^{9}}, for 87\% of the k. The kernel checks one division.
  \item \textbf{A failed Fermat test}, \texttt{2 \textasciicircum{} (N \ensuremath{-\allowbreak{}} 1) \% N \ensuremath{\neq} 1}, for the other 725, 1134 and 287. This is sound
by Fermat's little theorem (from Mathlib) and needs a modular exponentiation \texttt{powMod}, written
so that the kernel can evaluate it on numbers of this size and proved equal to \texttt{b \textasciicircum{} e \% m}.
  \item For (ii) b the statement is \texttt{(p+1)\ensuremath{^{2}} =\allowbreak{} k\ensuremath{^{2}}(k+1)\textasciicircum{}\ensuremath{\varphi}}. For even \ensuremath{\varphi} this forces
\texttt{p =\allowbreak{} k(k+1)\textasciicircum{}(\ensuremath{\varphi}/\allowbreak{}2) \ensuremath{-\allowbreak{}} 1}, which gets one of the certificates above. For odd \ensuremath{\varphi} (k = n \ensuremath{-} 2 and
n \ensuremath{-} 1) the right-hand side lies strictly between two consecutive squares.
\end{itemize}

Euler's totient is read from a table for m < 7588, which \texttt{Generated/\allowbreak{}PhiSpec.\allowbreak{}lean} proves equal
to \texttt{Nat.\allowbreak{}totient}. Every check is closed by \texttt{decide +kernel}.

\subsection*{Why the generated part is split into "lanes"}

It cannot be one file. The kernel needs about 20 seconds and 6 GB for a Fermat test on a
66,000-bit number, and there are 2146 Fermat tests. So the range of k is cut into segments of
bounded cost, and the segments are placed in \texttt{Lane*.\allowbreak{}lean} files that import each other in
chains: Lake compiles the large ones one after another and the small ones in parallel.
\texttt{scripts/\allowbreak{}gen\_\allowbreak{}lean.\allowbreak{}py} documents the layout.

\subsection*{Build}

    lake exe cache get
    lake build

This took 61 minutes of wall time (2.6 CPU-hours) on an 18-core Apple-silicon laptop with 24 GB
of RAM, and needs about 16 GB free. The last lines of the build are the \texttt{\#print axioms} output
above.

To regenerate everything from scratch:

    python scripts/find\_certificates.py   \# trial division to 10\textasciicircum{}9, about 3 minutes
    python scripts/gen\_lean.py            \# writes OeisA234360/Generated

\section*{The counterexamples are the smallest}

For every n below each counterexample (4720, 7586 and 3994 values of n),
\href{https://github.com/DevSingh05/oeis-a234360/blob/main/data}{\texttt{data/\allowbreak{}witnesses\_\allowbreak{}c*.\allowbreak{}txt}} lists a k for which the expression is prime, and each of those
primes has a primality proof:

\begin{center}\small\begin{adjustbox}{max width=\linewidth}\begin{tabular}{llll}
\toprule
\textbf{Method} & \textbf{(i) a} & \textbf{(ii) a} & \textbf{(ii) b} \\
\midrule
Below 3.3\ensuremath{\cdot}10\ensuremath{^{2}}\ensuremath{^{4}}: Miller--Rabin with the first 12 prime bases, which is a proof in that range (Sorenson--Webster) & 4250 & 5605 & 3684 \\
N \ensuremath{-} 1 fully factored, since N \ensuremath{-} 1 = k(k+1)\textasciicircum{}\ensuremath{\varphi}: Pocklington's theorem &  & 1981 &  \\
PARI/GP \texttt{isprime} (APRCL or ECPP, a proof), up to 7060 bits & 470 &  & 310 \\
\bottomrule
\end{tabular}\end{adjustbox}\end{center}

\texttt{scripts/\allowbreak{}minimality.\allowbreak{}py} finds the witnesses and \texttt{scripts/\allowbreak{}prove\_\allowbreak{}witnesses.\allowbreak{}py} proves the large
ones. Together they take a few minutes on a laptop.

\section*{Independent checks of the counterexamples}

\begin{itemize}
  \item \texttt{scripts/\allowbreak{}verify\_\allowbreak{}independent.\allowbreak{}py}: a separate Python program, with its own totient code, that
certifies every k for all three n (trial division by modular exponentiation, Fermat base 2).
  \item The search that found them used different code again, with Fermat base 3.
\end{itemize}

Nothing the scripts write is trusted: a wrong certificate or a gap in the cover makes the Lean
build fail.

\section*{Prior work}

On 2026-11-26 I looked for earlier reports of these three counterexamples and found none in:
the OEIS entry and its revision history; Sun's paper (v29, Remark 3.28); formal-conjectures pull
requests and issues; the OEIS Open paper and results repository, which settle (i) b only; GitHub
code search; lefttosolve.com, which lists all three as open; and web search. If an earlier report
exists, please open an issue and I will credit it here.

\section*{Credits}

Found on 2026-11-26 by Dev Pratap Singh in a computational screen of the open OEIS conjectures in
formal-conjectures. The search, certificates and Lean proofs were produced with AI assistance
(Claude, Anthropic). MIT license.

\section*{Sources}
\begin{enumerate}\small
  \item OEIS A234360. \url{https://oeis.org/A234360}
  \item Z.-W. Sun, Conjectures on representations involving primes, arXiv:1211.1588. \url{https://arxiv.org/abs/1211.1588}
  \item T. Adamczewski, OEIS Open, arXiv:2608.11941. \url{https://arxiv.org/abs/2608.11941}
  \item formal-conjectures issue \#8358. \url{https://github.com/google-deepmind/formal-conjectures/issues/8358}
  \item Lean 4 proof, certificates and scripts. \url{https://github.com/DevSingh05/oeis-a234360}
\end{enumerate}
\end{document}
