\documentclass[11pt,reqno]{amsart} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath,amssymb,amsthm,mathtools} \usepackage{booktabs,array} \usepackage[hidelinks]{hyperref} \usepackage[margin=1in]{geometry} % Theorem environments \newtheorem{theorem}{Theorem}[section] \newtheorem{proposition}[theorem]{Proposition} \newtheorem{lemma}[theorem]{Lemma} \newtheorem{corollary}[theorem]{Corollary} \theoremstyle{definition} \newtheorem{definition}[theorem]{Definition} \theoremstyle{remark} \newtheorem{remark}[theorem]{Remark} % Notation macros \newcommand{\N}{\mathbb{N}} \newcommand{\Z}{\mathbb{Z}} \newcommand{\Q}{\mathbb{Q}} \newcommand{\R}{\mathbb{R}} \newcommand{\lcm}{\operatorname{lcm}} \newcommand{\rad}{\operatorname{rad}} \newcommand{\denom}{\operatorname{denom}} \newcommand{\floor}[1]{\lfloor #1 \rfloor} \newcommand{\ceil}[1]{\lceil #1 \rceil} \title[Kellner's Bernoulli Polynomial Denominator Conjectures]{Complete Resolution of Kellner's Bernoulli Polynomial Denominator Conjectures and Explicit Effective Bounds for Higher Derivatives} \author{Sai Smaran S B} \address{Duke University} \email{sai.smaran@duke.edu} \subjclass[2020]{Primary 11B68, 11A63; Secondary 11N05, 11Y55, 68V20} \keywords{Bernoulli polynomials, Bernoulli numbers, power-sum denominators, base-$p$ digit sums, von Staudt--Clausen theorem, Chebyshev $\vartheta$-function, vertex cover, Lean 4 formal verification} \begin{document} \begin{abstract} For an integer $n \ge 0$, let $B_n(x) = \sum_{j=0}^n \binom{n}{j} B_{n-j} x^j$ be the $n$-th Bernoulli polynomial, let $D_n = \denom(B_n(x) - B_n)$ denote the least common denominator of its non-constant coefficients (OEIS~\texttt{A195441}), and for each integer $k \ge 1$ let \[ S_k = \{ m \ge 1 : B_m^{(k)}(x) \in \Z[x] \}, \qquad T_k = \Bigl\{ n \ge 1 : D_n \mid \prod_{j=1}^k (n + j) \Bigr\}. \] Kellner (2024) proved that $S_k$ is finite for every $k \ge 1$ using an ineffective prime-count estimate of Bordell\`es, Luca, Moree, and Shparlinski (2018), leaving open the exact determination of $S_1 = \texttt{A094960}$, the higher-derivative sets $S_2 = \texttt{A366169}$, $S_3 = \texttt{A366186}$, $S_4 = \texttt{A366187}$, $S_5 = \texttt{A366188}$, and the equation $D_n = \rad(n+1)$ (\texttt{A195441}). We give a five-line elementary \emph{Prime-Pair Lemma} bounding the base-$p$ digit sums $s_p(n)$ simultaneously at two primes $p_2 > p_1 > \sqrt{n}$. Combined with a square-block vertex-cover obstruction and Dusart's (2018) explicit Chebyshev bound $|\vartheta(x) - x| \le 0.2\,x/(\log x)^2$ for $x \ge x_0 = 3{,}594{,}641$, this yields the first completely explicit effective bound for all $k \ge 1$: every $n \in T_k$ satisfies \[ \floor{\sqrt{n}} < B_k := \max\bigl(3{,}594{,}641,\; 60(k+1)\bigl(\log(60(k+1))\bigr)^2\bigr), \] hence $n < \ceil{B_k}^2$ and $\max S_k = O(k^2 (\log k)^4)$, with the uniform bound $n < 3{,}594{,}641^2$ for all $1 \le k \le 787$. Closing the finite range $n < 3{,}594{,}641^2$ by a $0.12\,\mathrm{s}$ zero-branching disjoint-clique certificate and a $0.37\,\mathrm{s}$ direct exact sweep resolves all six conjectures completely: \begin{align*} \{ n \ge 1 : D_n = \rad(n+1) \} &= \{3, 5, 8, 9, 11, 27, 29, 35, 59\}, \\ S_1 = \texttt{A094960} &= \{1, 2, 4, 6, 10, 12, 28, 30, 36, 60\}, \end{align*} and $|S_2| = 29$ ($\max 190$), $|S_3| = 59$ ($\max 392$), $|S_4| = 88$ ($\max 393$), $|S_5| = 125$ ($\max 904$), together with complete lists of $T_1, \dots, T_5$. All core algebraic, combinatorial, real-analytic, and small-$n$ theorems (including exact kernel verification of all six OEIS sequences up to $1{,}000$) are formally verified in Lean~4.33.1 with zero \texttt{sorry}, zero warnings, and only the standard axioms $\{\texttt{propext}, \texttt{Classical.choice}, \texttt{Quot.sound}\}$. \end{abstract} \maketitle \section{Introduction and Main Results}\label{sec:intro} The Bernoulli polynomials $B_m(x) \in \Q[x]$, defined by the generating series \[ \frac{t e^{xt}}{e^t - 1} = \sum_{m=0}^{\infty} B_m(x) \frac{t^m}{m!} \] and given explicitly by $B_m(x) = \sum_{j=0}^{m} \binom{m}{j} B_{m-j} x^j$ where $B_r = B_r(0)$ is the $r$-th Bernoulli number, satisfy the Appell differentiation identity \begin{equation}\label{eq:appell} B_m'(x) = m B_{m-1}(x) \qquad (m \ge 1), \end{equation} and hence by induction \begin{equation}\label{eq:higher-deriv} B_m^{(k)}(x) = \frac{m!}{(m-k)!}\, B_{m-k}(x) = \Bigl(\prod_{j=1}^{k} (m - k + j)\Bigr) B_{m-k}(x) \qquad (m \ge k \ge 1), \end{equation} while $B_m^{(k)}(x) \equiv 0 \in \Z[x]$ for $0 \le m < k$. For every $n \ge 1$, the polynomial $B_n(x)$ itself never lies in $\Z[x]$ (its coefficient of $x^{n-1}$ is $-n/2 \notin \Z$ for odd $n \ge 1$, while its constant term $B_n$ has denominator $I_n \ge 6$ by the von Staudt--Clausen theorem for even $n \ge 2$). For the first derivative $B_m'(x) = m B_{m-1}(x)$, however, the leading factor $m$ can occasionally cancel every denominator of $B_{m-1}(x)$. For example, \[ B_1'(x) = 1, \quad B_2'(x) = 2x - 1, \quad B_4'(x) = 4x^3 - 6x^2 + 2x, \quad B_6'(x) = 6x^5 - 15x^4 + 10x^3 - x \] all lie in $\Z[x]$. More generally, for any integer $k \ge 1$, define the sets \begin{equation}\label{eq:def-Sk} S_k := \{ m \in \Z_{\ge 1} : B_m^{(k)}(x) \in \Z[x] \}. \end{equation} Since differentiating a polynomial in $\Z[x]$ preserves integrality of coefficients, these sets form an ascending chain \begin{equation}\label{eq:chain} S_1 \subset S_2 \subset S_3 \subset S_4 \subset S_5 \subset \cdots, \end{equation} cataloged in the OEIS~\cite{OEIS} as \[ \texttt{A094960} \subset \texttt{A366169} \subset \texttt{A366186} \subset \texttt{A366187} \subset \texttt{A366188} \subset \cdots. \] A deep arithmetic explanation for the denominators of Bernoulli polynomials was uncovered by Kellner and Sondow~\cite{KS2017,KS2018,KS2021}. For any rational polynomial $f(x) \in \Q[x]$, let $\denom(f(x))$ denote the least positive integer $d$ such that $d f(x) \in \Z[x]$, and set \[ D_n := \denom\bigl(B_n(x) - B_n\bigr) \quad (n \ge 0), \qquad I_n := \denom(B_n) \quad (n \ge 0). \] Then $D_0 = 1$, and for $n \ge 1$ the sequence $(D_n)_{n \ge 1} = (1, 1, 2, 1, 6, 2, 6, 3, 10, 2, 6, 2, 210, \dots)$ is OEIS~\texttt{A195441} (in the Lean~4 Formal Conjectures repository \texttt{FormalConjectures/OEIS/195441.lean}, the $0$-indexed function \texttt{OeisA195441.a} satisfies $\texttt{a}(n - 1) = D_n$ for $n \ge 1$). Kellner and Sondow~\cite{KS2017} proved that $D_n$ is always squarefree and given by the remarkably simple base-$p$ digit-sum product \begin{equation}\label{eq:KS-formula} D_n = \prod_{\substack{p \text{ prime} \\ s_p(n) \ge p}} p \qquad (n \ge 1), \end{equation} where $s_p(n)$ denotes the sum of the base-$p$ digits of $n$. Combined with the classical von Staudt--Clausen theorem~\cite{vonStaudt1840,Clausen1840} for $I_n$, one obtains $\denom(B_n(x)) = \lcm(D_n, I_n)$ (squarefree) and thus, for $m = n + k$ with $n \ge 0$, \[ m \in S_k \iff \lcm(D_n, I_n) \mid \prod_{j=1}^{k} (n + j). \] Consequently, every $m \ge k + 1$ in $S_k$ yields a solution $n = m - k \ge 1$ to the purely digit-sum divisibility condition $n \in T_k$, where \begin{equation}\label{eq:def-Tk} T_k := \Bigl\{ n \in \Z_{\ge 1} : D_n \mid \prod_{j=1}^{k} (n + j) \Bigr\}. \end{equation} In the special case $k = 1$, every solution $n \ge 1$ to Kellner's equation $D_n = \rad(n + 1)$ (where $\rad(r) = \prod_{p \mid r} p$ denotes the squarefree radical of $r$) also satisfies $D_n \mid (n + 1)$ and therefore lies in $T_1$. Building on the asymptotic lower bounds for $\omega(D_n)$ established by Bordell\`es, Luca, Moree, and Shparlinski~\cite{BLMS2018}, Kellner~\cite{Kellner2024} proved that $S_k$ is finite for every $k \ge 1$ and that $D_n = \rad(n + 1)$ has only finitely many solutions. However, the analytic input from~\cite{BLMS2018} is asymptotic and ineffective, so~\cite{Kellner2024} left open the complete determination of all these finite sets. Specifically, Kellner conjectured (in~\cite{Kellner2024} and the corresponding OEIS entries~\cite{OEIS}, including the open problem \texttt{OeisA195441.conjecture} in Formal Conjectures) that \begin{itemize} \item $\{ n \ge 1 : D_n = \rad(n + 1) \} = \{3, 5, 8, 9, 11, 27, 29, 35, 59\}$ (9 terms); \item $S_1 = \texttt{A094960} = \{1, 2, 4, 6, 10, 12, 28, 30, 36, 60\}$ (10 terms); \item and asked for the complete determination of the higher-derivative sequences $S_2 = \texttt{A366169}$, $S_3 = \texttt{A366186}$, $S_4 = \texttt{A366187}$, $S_5 = \texttt{A366188}$, as well as explicit upper bounds for general $k \ge 1$. \end{itemize} The purpose of this paper is to completely resolve all six conjectures and to establish the first explicit, polynomial-size effective upper bound on $\max T_k$ and $\max S_k$ valid for every $k \ge 1$. \begin{theorem}[Complete resolution of \texttt{A195441} and $T_1$]\label{thm:a195441} The set of positive integers $n \ge 1$ satisfying $D_n = \rad(n + 1)$ is precisely \[ \{ n \ge 1 : D_n = \rad(n + 1) \} = \{3, 5, 8, 9, 11, 27, 29, 35, 59\} \qquad (9\text{ terms}). \] More generally, the set $T_1 = \{ n \ge 1 : D_n \mid (n + 1) \}$ is precisely \[ T_1 = \{1, 2, 3, 4, 5, 8, 9, 11, 27, 29, 35, 59\} \qquad (12\text{ terms}). \] \end{theorem} \begin{theorem}[Complete resolution of Kellner's conjecture \texttt{A094960}]\label{thm:a094960} A positive integer $m \ge 1$ satisfies $B_m'(x) \in \Z[x]$ if and only if \[ m \in S_1 = \texttt{A094960} = \{1, 2, 4, 6, 10, 12, 28, 30, 36, 60\} \qquad (10\text{ terms}). \] \end{theorem} \begin{theorem}[Complete resolution of higher derivatives $k = 2, 3, 4, 5$]\label{thm:higher} The sets $S_k = \{ m \ge 1 : B_m^{(k)}(x) \in \Z[x] \}$ and $T_k = \{ n \ge 1 : D_n \mid \prod_{j=1}^k (n + j) \}$ for $2 \le k \le 5$ are completely determined as follows: \begin{enumerate} \item $S_2 = \texttt{A366169}$ has exactly $29$ positive elements ($28$ with $m \ge 2$), with $\max S_2 = 190$, and $T_2$ has exactly $43$ elements, with $\max T_2 = 208$; \item $S_3 = \texttt{A366186}$ has exactly $59$ positive elements ($57$ with $m \ge 3$), with $\max S_3 = 392$, and $T_3$ has exactly $77$ elements, with $\max T_3 = 389$; \item $S_4 = \texttt{A366187}$ has exactly $88$ positive elements ($85$ with $m \ge 4$), with $\max S_4 = 393$, and $T_4$ has exactly $110$ elements, with $\max T_4 = 900$; \item $S_5 = \texttt{A366188}$ has exactly $125$ positive elements ($121$ with $m \ge 5$), with $\max S_5 = 904$, and $T_5$ has exactly $156$ elements, with $\max T_5 = 900$. \end{enumerate} The complete lists of $S_2, S_3, S_4, S_5$ and $T_2$ are recorded explicitly in Section~\ref{sec:comp}. \end{theorem} \begin{theorem}[Explicit effective bound for arbitrary $k \ge 1$]\label{thm:effective} Set $x_0 := 3{,}594{,}641$. For every integer $k \ge 1$, define \[ B_k := \max\Bigl(x_0,\; 60(k + 1)\bigl(\log(60(k + 1))\bigr)^2\Bigr). \] Then every $n \in T_k$ satisfies $\floor{\sqrt{n}} < B_k$, and consequently \[ n < \ceil{B_k}^2, \qquad \max S_k \le k + \ceil{B_k}^2 - 1 = O\bigl(k^2 (\log k)^4\bigr). \] Moreover, for every $1 \le k \le 787$, every $n \in T_k$ satisfies the sharper uniform bound $\floor{\sqrt{n}} < x_0$ directly, and therefore \[ \max T_k < 3{,}594{,}641^2 = 12{,}921{,}443{,}918{,}881, \qquad \max S_k \le k + 12{,}921{,}443{,}918{,}880. \] \end{theorem} \subsection*{Overview of the method} Earlier proofs of finiteness~\cite{BLMS2018,Kellner2024} rely on asymptotic estimates for the number of primes $p \in (n/2, n]$ or $(n^{1/2}, n]$ satisfying $s_p(n) \ge p$, which are delicate to make explicit with a small threshold. Our approach replaces that machinery by a remarkably short, completely elementary obstruction in the two-digit range $p > \sqrt{n}$: \begin{enumerate} \item \emph{Five-line Prime-Pair Lemma (Section~\ref{sec:pair}).} For any $n \ge 1$ and any two integers $p_2 > p_1 > \sqrt{n}$ with $d = p_2 - p_1 \ge 2$ (e.g., any two odd primes exceeding $\sqrt{n}$), if $s_{p_1}(n) < p_1$ and $s_{p_2}(n) < p_2$ simultaneously, then \[ q_1 + 1 \le d(p_1 - q_1 + d - 1), \qquad q_1 = \floor{n/p_1}. \] Intuitively, for $p_1, p_2$ close to $\sqrt{n}$ with small gap $d$, the quotient $q_1 \approx \sqrt{n}$ is large while $p_1 - q_1 \approx 2(p_1 - \sqrt{n})$ is small, making the inequality impossible. \item \emph{Square-block vertex-cover obstruction (Section~\ref{sec:pair}).} Partition all integers $n \ge 1$ into square blocks $I(x) = [x^2, x^2 + 2x]$ indexed by $x = \floor{\sqrt{n}}$. For $x \ge k$, each of the $k$ consecutive integers $n + 1, \dots, n + k$ can have at most one prime divisor exceeding $x$ (since $(x+1)(x+2) = x^2 + 3x + 2 > x^2 + 2x + k \ge n + k$). Hence at most $k$ primes $p > x$ can divide $\prod_{j=1}^k (n + j)$, so every other prime $p > x$ must satisfy $s_p(n) < p$ whenever $n \in T_k$. Defining the uniform incompatibility graph $G(x)$ on primes $p > x$ from the Prime-Pair Lemma, the existence of any $n \in I(x) \cap T_k$ forces the vertex cover number of $G(x)$ to satisfy $\tau(G(x)) \le k$. Thus any vertex-disjoint clique packing $C_1, \dots, C_r$ in $G(x)$ with $\sum_{i=1}^r (|C_i| - 1) \ge k + 1$ eliminates the entire block $I(x)$ at once. \item \emph{Explicit analytic elimination above $x_0 = 3{,}594{,}641$ (Section~\ref{sec:analytic}).} Using only Dusart's peer-reviewed explicit Chebyshev estimate~\cite[Theorem~4.2]{Dusart2018}, $|\vartheta(x) - x| \le 0.2\,x/(\log x)^2$ for $x \ge x_0 = 3{,}594{,}641$, we count primes in $(x, x + \Delta]$ with $\Delta = x / (3 \log x)$, delete at most $k$ bad primes dividing $\prod_{j=1}^k (n+j)$, and apply pigeonhole to find two surviving primes with gap $d < \frac{4}{3} \log x$, yielding an immediate contradiction whenever $20(k+1)(\log x)^2 \le x$. This yields Theorem~\ref{thm:effective} with generous margin and covers all $1 \le k \le 787$ uniformly from $x_0$ onward. \item \emph{Sub-second constructive finite verification (Section~\ref{sec:comp}).} Because $G(x)$ eliminates an entire block of $2x + 1$ integers at once, covering $n < x_0^2 \approx 1.29 \times 10^{13}$ requires checking only $x < 3{,}594{,}641$ blocks. A zero-branching greedy matching and disjoint-clique certificate runs in $0.12\,\mathrm{s}$ (in C) and eliminates every $x \in [x_{\mathrm{start}}(k), 3{,}594{,}641]$ with $x_{\mathrm{start}}(k) \in \{144, 339, 663, 664, 665\}$ for $k = 1, \dots, 5$, reducing the direct exact search to $n \le 442{,}224$ (verified up to $n = 600{,}000$ in $0.37\,\mathrm{s}$ total). \item \emph{Formal verification in Lean~4 (Section~\ref{sec:lean}).} Every algebraic, graph-theoretic, real-analytic, and small-$n$ theorem (including all six OEIS lists up to $1{,}000$, which encompass every solution of all six sequences) has been formally verified in Lean~4.33.1 in the standalone companion module \texttt{KellnerBernoulli\_Core.lean} ($1{,}173$ lines, $58{,}144$ bytes, compiling in $23.11\,\mathrm{s}$ with zero \texttt{sorry}, zero warnings, zero \texttt{maxHeartbeats} overrides, and strictly the standard axioms $\{\texttt{propext}, \texttt{Classical.choice}, \texttt{Quot.sound}\}$). \end{enumerate} \section{Preliminaries on Bernoulli Polynomial Denominators}\label{sec:prelim} We collect the exact arithmetic formulas linking $B_m^{(k)}(x) \in \Z[x]$ to $D_n$, $I_n$, and base-$p$ digit sums. For a prime $p$ and an integer $n \ge 0$ with base-$p$ expansion $n = \sum_{i=0}^{r} a_i p^i$ ($0 \le a_i < p$), we write $s_p(n) := \sum_{i=0}^{r} a_i$. \begin{theorem}[Kellner--Sondow~{\cite[Theorem~1]{KS2017}}]\label{thm:KS} For every integer $n \ge 1$, the denominator $D_n = \denom(B_n(x) - B_n)$ is squarefree and satisfies \[ D_n = \prod_{\substack{p \text{ prime} \\ s_p(n) \ge p}} p. \] In particular, every prime $p \mid D_n$ satisfies $p \le n$ (since $s_p(n) = n < p$ whenever $p > n$). \end{theorem} \begin{theorem}[von Staudt~\cite{vonStaudt1840}, Clausen~\cite{Clausen1840}]\label{thm:vSC} For the denominator $I_n = \denom(B_n)$ of the $n$-th Bernoulli number: \[ I_0 = 1, \qquad I_1 = 2, \qquad I_n = 1 \text{ for all odd } n \ge 3, \qquad I_n = \prod_{\substack{p \text{ prime} \\ (p - 1) \mid n}} p \text{ for all even } n \ge 2. \] In particular, $I_n$ is squarefree for every $n \ge 0$, and every prime $p \mid I_n$ satisfies $p \le n + 1$. \end{theorem} \begin{proposition}[Reduction to $T_k$]\label{prop:reduction} Let $k \ge 1$ and $m \ge 1$. \begin{enumerate} \item For every $n \ge 0$, $\denom(B_n(x)) = \lcm(D_n, I_n)$, which is squarefree. \item If $1 \le m \le k$, then $m \in S_k$. \item If $m \ge k + 1$ and $n := m - k \ge 1$, then \[ m \in S_k \iff \lcm(D_n, I_n) \mid \prod_{j=1}^{k} (n + j) \iff \Bigl(D_n \mid \prod_{j=1}^{k} (n + j)\Bigr) \text{ and } \Bigl(I_n \mid \prod_{j=1}^{k} (n + j)\Bigr). \] In particular, $m \in S_k$ with $m \ge k + 1$ implies $n = m - k \in T_k$. \item Every $n \ge 1$ satisfying $D_n = \rad(n + 1)$ lies in $T_1$. \end{enumerate} \end{proposition} \begin{proof} (1) The coefficients of $B_n(x)$ consist of its constant term $B_n$ together with the non-constant coefficients of $B_n(x) - B_n$, so the least positive integer clearing all denominators of $B_n(x)$ is $\lcm(\denom(B_n(x) - B_n), \denom(B_n)) = \lcm(D_n, I_n)$. Both $D_n$ and $I_n$ are squarefree by Theorems~\ref{thm:KS} and~\ref{thm:vSC}, hence so is their least common multiple. (2) For $1 \le m < k$, $B_m^{(k)}(x) \equiv 0 \in \Z[x]$. For $m = k$, $B_k^{(k)}(x) = k!\, B_0(x) = k! \in \Z[x]$. (3) By~\eqref{eq:higher-deriv}, $B_m^{(k)}(x) = \bigl(\prod_{j=1}^k (n + j)\bigr) B_n(x) \in \Z[x]$ if and only if $\denom(B_n(x)) \mid \prod_{j=1}^k (n + j)$, which by~(1) is equivalent to both $D_n$ and $I_n$ dividing $\prod_{j=1}^k (n + j)$. (4) Since $\rad(n + 1) \mid (n + 1)$, $D_n = \rad(n + 1)$ implies $D_n \mid (n + 1)$, so $n \in T_1$. \end{proof} To clarify the delicate interplay among \texttt{A195441}, $T_1$, and $S_1 = \texttt{A094960}$, Table~\ref{tab:t1-compare} displays $D_n$, $I_n$, and $\rad(n+1)$ for $n = 0$ and all $12$ elements of $T_1$ (verified complete in Section~\ref{sec:comp}). Notice in particular the striking behavior at $n = 8$: here $D_8 = 3 = \rad(9)$ belongs to \texttt{A195441}, yet $I_8 = 2 \cdot 3 \cdot 5 = 30 \nmid 9$, so $m = 9 \notin \texttt{A094960}$. Conversely, $n = 1$ has $D_1 = 1 \ne 2 = \rad(2)$ so $1 \notin \texttt{A195441}$, yet $I_1 = 2 \mid 2$, so $m = 2 \in \texttt{A094960}$. \begin{table}[ht] \centering \caption{Exact comparison of \texttt{A195441} ($D_n = \rad(n+1)$), $T_1$ ($D_n \mid (n+1)$), and $S_1 = \texttt{A094960}$ ($B_{n+1}'(x) \in \Z[x]$) across $n = 0$ and all $n \in T_1$.}\label{tab:t1-compare} \small \begin{tabular}{@{}rrrrrccc l@{}} \toprule $n$ & $m=n+1$ & $D_n$ & $I_n$ & $\rad(n+1)$ & \texttt{A195441} & $T_1$ & \texttt{A094960} & Reason \\ \midrule $0$ & $1$ & $1$ & $1$ & $1$ & no & -- & yes & $D_0 = I_0 = 1$ \\ $1$ & $2$ & $1$ & $2$ & $2$ & no & yes & yes & $D_1 = 1 \ne 2$, $I_1 = 2 \mid 2$ \\ $2$ & $3$ & $1$ & $6$ & $3$ & no & yes & no & $D_n = 1$, $I_n \nmid (n+1)$ \\ $3$ & $4$ & $2$ & $1$ & $2$ & yes & yes & yes & odd $n$, $I_n = 1$, $D_n = \rad(n+1)$ \\ $4$ & $5$ & $1$ & $30$ & $5$ & no & yes & no & $D_n = 1$, $I_n \nmid (n+1)$ \\ $5$ & $6$ & $6$ & $1$ & $6$ & yes & yes & yes & odd $n$, $I_n = 1$, $D_n = \rad(n+1)$ \\ $8$ & $9$ & $3$ & $30$ & $3$ & yes & yes & no & $D_8 = \rad(9)$, $I_8 = 30 \nmid 9$ \\ $9$ & $10$ & $10$ & $1$ & $10$ & yes & yes & yes & odd $n$, $I_n = 1$, $D_n = \rad(n+1)$ \\ $11$ & $12$ & $6$ & $1$ & $6$ & yes & yes & yes & odd $n$, $I_n = 1$, $D_n = \rad(n+1)$ \\ $27$ & $28$ & $14$ & $1$ & $14$ & yes & yes & yes & odd $n$, $I_n = 1$, $D_n = \rad(n+1)$ \\ $29$ & $30$ & $30$ & $1$ & $30$ & yes & yes & yes & odd $n$, $I_n = 1$, $D_n = \rad(n+1)$ \\ $35$ & $36$ & $6$ & $1$ & $6$ & yes & yes & yes & odd $n$, $I_n = 1$, $D_n = \rad(n+1)$ \\ $59$ & $60$ & $30$ & $1$ & $30$ & yes & yes & yes & odd $n$, $I_n = 1$, $D_n = \rad(n+1)$ \\ \bottomrule \end{tabular} \end{table} \begin{remark}[Why $\max T_4 = 900$ produces $\max S_5 = 904$ but not $904 \in S_4$]\label{rem:900} A similar $I_n$-obstruction governs the upper tail for $k = 4, 5$. At $n = 900$, we have $s_5(900) = 1 + 2 + 1 + 0 + 0 = 4 < 5$, so \[ D_{900} = 2 \cdot 3 \cdot 7 \cdot 11 \cdot 17 \cdot 41 \cdot 43 \cdot 53 \cdot 113, \] which divides $901 \cdot 902 \cdot 903 \cdot 904$ because $901 = 17 \cdot 53$, $902 = 2 \cdot 11 \cdot 41$, $903 = 3 \cdot 7 \cdot 43$, and $904 = 2^3 \cdot 113$. Thus $900 \in T_4$ (and $900 \in T_5$). However, $900$ is even, and by Theorem~\ref{thm:vSC} the prime $p = 13$ (since $12 \mid 900$) divides $I_{900}$ without dividing $901 \cdot 902 \cdot 903 \cdot 904 \cdot 905$, blocking $n = 900$ from both $S_4$ and $S_5$. By contrast, at the adjacent odd integer $n = 899$, we have $I_{899} = 1$ and $D_{899} = 5 D_{900}$, and adding the fifth factor $900 = 2^2 \cdot 3^2 \cdot 5^2$ absorbs $5$, yielding $904 = 899 + 5 \in S_5 = \texttt{A366188}$. \end{remark} \section{The Elementary Prime-Pair Lemma and Disjoint-Clique Obstruction}\label{sec:pair} When $p > \sqrt{n}$, the base-$p$ expansion of $n$ has at most two digits, namely $n = q p + r$ with $q = \floor{n/p} < p$ and $r = n \bmod p < p$, so $s_p(n) = q + r$. The condition $s_p(n) < p$ therefore forces $r \le p - 1 - q$, which squeezes $n$ into the short interval \begin{equation}\label{eq:squeeze} q p \le n \le q p + (p - 1 - q) = (q + 1)(p - 1). \end{equation} The core discovery of this paper is that~\eqref{eq:squeeze} cannot hold simultaneously for two closely spaced primes exceeding $\sqrt{n}$ when $q$ is near $\sqrt{n}$. \begin{theorem}[Elementary Prime-Pair Lemma]\label{thm:pair} Let $n \ge 1$, and let $p_1 < p_2$ be integers satisfying $p_1 \ge 2$, $n < p_1^2$, and $d := p_2 - p_1 \ge 2$ (in particular, any two odd primes exceeding $\sqrt{n}$). Write $q_1 := \floor{n / p_1}$. If $s_{p_1}(n) < p_1$ and $s_{p_2}(n) < p_2$, then \begin{equation}\label{eq:pair-ineq} q_1 + 1 \le d(p_1 - q_1 + d - 1). \end{equation} \end{theorem} \begin{proof} Since $n < p_1^2 < p_2^2$, both base-$p_1$ and base-$p_2$ expansions of $n$ have at most two digits, with quotients $q_1 = \floor{n/p_1} < p_1$ and $q_2 = \floor{n/p_2}$. By~\eqref{eq:squeeze}, \begin{equation}\label{eq:both-squeeze} q_1 p_1 \le n \le (q_1 + 1)(p_1 - 1) \qquad \text{and} \qquad q_2 p_2 \le n \le (q_2 + 1)(p_2 - 1). \end{equation} We first claim that $t := q_1 - q_2 \le d - 1$. Suppose for contradiction that $t \ge d$, so $q_2 + 1 \le q_1 - d + 1$. Using~\eqref{eq:both-squeeze} and $p_2 = p_1 + d$, we obtain \begin{align*} q_1 p_1 \le n \le (q_2 + 1)(p_2 - 1) &\le (q_1 - d + 1)(p_1 + d - 1) \\ &= q_1 p_1 - (d - 1)(p_1 - q_1 + d - 1). \end{align*} Since $d \ge 2$ and $p_1 - q_1 \ge 1$, we have $(d - 1)(p_1 - q_1 + d - 1) \ge 1 \cdot 2 = 2 > 0$, a contradiction. Thus $q_2 \ge q_1 - d + 1$. Applying~\eqref{eq:both-squeeze} once more gives \[ (q_1 - d + 1)(p_1 + d) \le q_2 p_2 \le n \le (q_1 + 1)(p_1 - 1). \] Expanding both sides, \[ q_1 p_1 + d q_1 - (d - 1)p_1 - d(d - 1) \le q_1 p_1 + p_1 - q_1 - 1, \] and rearranging immediately yields \[ (d + 1) q_1 + 1 \le d p_1 + d(d - 1), \] which is equivalent to $q_1 + 1 \le d(p_1 - q_1 + d - 1)$. \end{proof} We now lift Theorem~\ref{thm:pair} from a single integer $n$ to an entire square block \[ I(x) := [x^2, x^2 + 2x] = \{ n \in \Z_{\ge 1} : \floor{\sqrt{n}} = x \}. \] Note that for $n \in I(x)$ and any prime $p > x$, we automatically have $n \le x^2 + 2x < (x + 1)^2 \le p^2$. \begin{lemma}[At most $k$ large prime divisors]\label{lem:atmostk} Let $k \ge 1$, $x \ge k$, and $n \in [0, x^2 + 2x]$. Then the product $\prod_{j=1}^{k} (n + j)$ has at most $k$ distinct prime divisors exceeding $x$. \end{lemma} \begin{proof} Let $S$ be the set of primes $p > x$ dividing $\prod_{j=1}^k (n + j)$. By Euclid's lemma, each $p \in S$ divides $n + f(p)$ for some $f(p) \in \{1, \dots, k\}$. We claim that $f \colon S \to \{1, \dots, k\}$ is injective. Indeed, if $p_1 \ne p_2$ in $S$ satisfied $f(p_1) = f(p_2) = j$, then $\gcd(p_1, p_2) = 1$ would imply $p_1 p_2 \mid (n + j)$, forcing \[ (x + 1)(x + 2) \le p_1 p_2 \le n + j \le x^2 + 2x + k \le x^2 + 3x, \] contradicting $(x + 1)(x + 2) = x^2 + 3x + 2$. Hence $|S| \le |\{1, \dots, k\}| = k$. \end{proof} \begin{definition}[Uniform square-block incompatibility graph $G(x)$]\label{def:Gx} For an integer $x \ge 1$, define a simple graph $G(x)$ whose vertex set is the set of primes $p > x$, with an edge between $p_1 < p_2$ if and only if $d := p_2 - p_1 \ge 2$ and \begin{equation}\label{eq:edge} d\bigl(p_1 - q_{\min}(x, p_1) + d - 1\bigr) < q_{\min}(x, p_1) + 1, \qquad\text{where } q_{\min}(x, p_1) := \floor{x^2 / p_1}. \end{equation} \end{definition} \begin{lemma}[Uniform block soundness of $G(x)$]\label{lem:pairincompat} Let $x \ge 1$ and $n \in I(x) = [x^2, x^2 + 2x]$. If $\{p_1, p_2\}$ is an edge of $G(x)$, then at least one of $s_{p_1}(n) \ge p_1$ or $s_{p_2}(n) \ge p_2$ must hold. \end{lemma} \begin{proof} Write $p_1 < p_2$ and $d = p_2 - p_1 \ge 2$. Since $n \ge x^2$, we have $q_1 := \floor{n/p_1} \ge \floor{x^2/p_1} = q_{\min}(x, p_1)$. Therefore \[ d(p_1 - q_1 + d - 1) \le d(p_1 - q_{\min}(x, p_1) + d - 1) < q_{\min}(x, p_1) + 1 \le q_1 + 1. \] Since $n \le x^2 + 2x < p_1^2$, Theorem~\ref{thm:pair} forbids $s_{p_1}(n) < p_1$ and $s_{p_2}(n) < p_2$ from holding simultaneously. \end{proof} \begin{corollary}[Vertex-cover and disjoint-clique certificate]\label{cor:clique} Let $k \ge 1$ and $x \ge k$. \begin{enumerate} \item If $I(x) \cap T_k \ne \emptyset$, then the vertex cover number $\tau(G(x))$ satisfies $\tau(G(x)) \le k$. \item Consequently, if $G(x)$ contains pairwise vertex-disjoint cliques $C_1, \dots, C_r$ satisfying \begin{equation}\label{eq:clique-lb} \sum_{i=1}^{r} (|C_i| - 1) \ge k + 1, \end{equation} then $I(x) \cap T_k = \emptyset$ (and hence no $m \in [x^2 + k, x^2 + 2x + k]$ lies in $S_k$). \end{enumerate} \end{corollary} \begin{proof} Suppose $n \in I(x) \cap T_k$, and let $S := \{ p > x : p \text{ prime},\; p \mid \prod_{j=1}^k (n + j) \}$. By Lemma~\ref{lem:atmostk}, $|S| \le k$. By Theorem~\ref{thm:KS} and the definition of $T_k$, every prime $p > x$ with $s_p(n) \ge p$ divides $D_n$ and hence divides $\prod_{j=1}^k (n + j)$, so $p \in S$. By Lemma~\ref{lem:pairincompat}, every edge $\{p_1, p_2\}$ of $G(x)$ has at least one endpoint with $s_{p_i}(n) \ge p_i$, hence at least one endpoint in $S$. Therefore $S$ is a vertex cover of $G(x)$, proving $\tau(G(x)) \le |S| \le k$. For~(2), any vertex cover $S$ of $G(x)$ can omit at most one vertex from each clique $C_i$, so $|S \cap C_i| \ge |C_i| - 1$. Since $C_1, \dots, C_r$ are pairwise disjoint, \[ k \ge |S| \ge \sum_{i=1}^{r} |S \cap C_i| \ge \sum_{i=1}^{r} (|C_i| - 1) \ge k + 1, \] a contradiction. \end{proof} Notice that when every clique has size $|C_i| = 2$, condition~\eqref{eq:clique-lb} reduces to finding a matching of $k + 1$ pairwise-disjoint edges in $G(x)$. Allowing larger cliques ($|C_i| \ge 3$) squeezes extra coverage out of dense prime clusters near small $x$ with zero backtracking. \section{Explicit Analytic Elimination for Arbitrary $k \ge 1$}\label{sec:analytic} To eliminate all sufficiently large square blocks $I(x)$ with completely explicit constants, we invoke a single peer-reviewed explicit estimate for Chebyshev's first function $\vartheta(x) := \sum_{p \le x} \log p$. \begin{theorem}[Dusart~{\cite[Theorem~4.2]{Dusart2018}}]\label{thm:dusart} For every real number $x \ge x_0 := 3{,}594{,}641$, \begin{equation}\label{eq:dusart} |\vartheta(x) - x| \le \frac{0.2\, x}{(\log x)^2}. \end{equation} \end{theorem} (Even sharper constants for larger $x$ are available in Broadbent, Kadiri, Lumley, Ng, and Wilk~\cite{BKLNW2021}; Dusart's threshold $x_0 = 3{,}594{,}641$ is ideal here because $x_0$ is already small enough for a $0.12\,\mathrm{s}$ finite sweep.) \begin{lemma}[Prime count in a short interval]\label{lem:pcount} Let $x \ge x_0 = 3{,}594{,}641$, and set $\Delta := x / (3 \log x)$. Then the number $M$ of primes in $(x, x + \Delta]$ satisfies \[ M > \frac{0.305\, x}{(\log x)^2}. \] \end{lemma} \begin{proof} Since $e < 2.7182818286$, we have $e^{15} < 2.7182818286^{15} < 3{,}269{,}018 < x_0$, so $\log x \ge \log x_0 > 15$. Applying Theorem~\ref{thm:dusart} at $x$ and at $x + \Delta > x \ge x_0$, and using $\log(x + \Delta) \ge \log x$, we obtain \begin{align*} \vartheta(x + \Delta) - \vartheta(x) &\ge \Delta - \frac{0.2(x + \Delta)}{(\log(x + \Delta))^2} - \frac{0.2\, x}{(\log x)^2} \ge \Delta - \frac{0.2(2x + \Delta)}{(\log x)^2} \\ &= \Bigl(\frac{1}{3} - \frac{0.4}{\log x} - \frac{0.2}{3(\log x)^2}\Bigr) \frac{x}{\log x}. \end{align*} Since $\log x > 15$, \[ \frac{1}{3} - \frac{0.4}{\log x} - \frac{0.2}{3(\log x)^2} > \frac{1}{3} - \frac{0.4}{15} - \frac{0.2}{675} = \frac{206.8}{675} > 0.306, \] so $\vartheta(x + \Delta) - \vartheta(x) > 0.306\, x / \log x$. On the other hand, using $\log(1 + u) \le u$ for $u > 0$ and $\log x > 15$, \[ \log(x + \Delta) = \log x + \log\Bigl(1 + \frac{1}{3\log x}\Bigr) \le \log x + \frac{1}{3\log x} < \Bigl(1 + \frac{1}{3 \cdot 15^2}\Bigr) \log x < 1.0015 \log x. \] Since every prime $p \in (x, x + \Delta]$ satisfies $\log p \le \log(x + \Delta)$, we deduce \[ M \ge \frac{\vartheta(x + \Delta) - \vartheta(x)}{\log(x + \Delta)} > \frac{0.306}{1.0015} \cdot \frac{x}{(\log x)^2} > \frac{0.305\, x}{(\log x)^2}, \] as $0.306 / 1.0015 > 0.3055 > 0.305$. \end{proof} \begin{theorem}[General-$k$ analytic elimination]\label{thm:analytic} Let $k \ge 1$ and $n \ge 1$, and write $x := \floor{\sqrt{n}}$. If \begin{equation}\label{eq:analytic-hyp} x \ge x_0 = 3{,}594{,}641 \qquad\text{and}\qquad 20(k + 1)(\log x)^2 \le x, \end{equation} then $n \notin T_k$. \end{theorem} \begin{proof} Suppose for contradiction that $n \in T_k$. Since $\log x > 15$, the second inequality of~\eqref{eq:analytic-hyp} gives $k < x / (20 \cdot 225) < x$, so Lemma~\ref{lem:atmostk} applies to $n \in I(x) = [x^2, x^2 + 2x]$. Set $\Delta := x / (3 \log x)$, let $\mathcal{P}$ be the set of primes in $(x, x + \Delta]$, and let $\mathcal{P}_{\mathrm{bad}} := \{ p \in \mathcal{P} : p \mid \prod_{j=1}^k (n + j) \}$ and $\mathcal{P}_{\mathrm{good}} := \mathcal{P} \setminus \mathcal{P}_{\mathrm{bad}}$. By Lemma~\ref{lem:atmostk}, $|\mathcal{P}_{\mathrm{bad}}| \le k$. By Lemma~\ref{lem:pcount} and $k + 1 \le 0.05\, x / (\log x)^2$ from~\eqref{eq:analytic-hyp}, the number $M' := |\mathcal{P}_{\mathrm{good}}|$ satisfies \[ M' - 1 \ge |\mathcal{P}| - k - 1 > (0.305 - 0.05)\frac{x}{(\log x)^2} > \frac{0.25\, x}{(\log x)^2}. \] In particular $M' - 1 > 0.25 \cdot 20(k + 1) \ge 10$, so $M' \ge 11 \ge 2$. Listing $\mathcal{P}_{\mathrm{good}}$ in increasing order as $x < r_1 < r_2 < \dots < r_{M'} \le x + \Delta$, the sum of the $M' - 1$ consecutive gaps satisfies $\sum_{i=1}^{M'-1} (r_{i+1} - r_i) = r_{M'} - r_1 < \Delta$. By the pigeonhole principle, there exist two primes $p_1 < p_2$ in $\mathcal{P}_{\mathrm{good}}$ whose gap $d := p_2 - p_1$ satisfies \[ d < \frac{\Delta}{M' - 1} < \frac{x / (3 \log x)}{0.25\, x / (\log x)^2} = \frac{4}{3} \log x. \] Since $p_2 > p_1 > x \ge x_0 > 2$, both $p_1$ and $p_2$ are odd primes, so $d \ge 2$. Since $p_1, p_2 \notin \mathcal{P}_{\mathrm{bad}}$ and $n \in T_k$, Theorem~\ref{thm:KS} yields $s_{p_1}(n) < p_1$ and $s_{p_2}(n) < p_2$. Set $q_1 := \floor{n / p_1}$. Because $n \ge x^2$ and $p_1 \le x + \Delta$, we have $(q_1 + 1) p_1 > n \ge x^2$, and hence \[ q_1 + 1 > \frac{x^2}{p_1} \ge \frac{x^2}{x + \Delta} > x - \Delta, \] using $(x - \Delta)(x + \Delta) = x^2 - \Delta^2 < x^2$. It follows that \[ p_1 - q_1 + d - 1 = p_1 - (q_1 + 1) + d < (x + \Delta) - (x - \Delta) + d = 2\Delta + d. \] Applying Theorem~\ref{thm:pair} (which holds since $n \le x^2 + 2x < p_1^2$) gives \begin{align*} x - \Delta < q_1 + 1 &\le d(p_1 - q_1 + d - 1) < d(2\Delta + d) \\ &< \frac{4}{3} \log x \Bigl(\frac{2x}{3 \log x} + \frac{4}{3} \log x\Bigr) = \frac{8}{9} x + \frac{16}{9} (\log x)^2. \end{align*} Subtracting $\frac{8}{9} x$ and dividing by $x > 0$ yields \begin{equation}\label{eq:contra-step} \frac{1}{9} < \frac{\Delta}{x} + \frac{16}{9} \frac{(\log x)^2}{x} = \frac{1}{3 \log x} + \frac{16}{9} \frac{(\log x)^2}{x}. \end{equation} On the other hand, from the Taylor lower bound $t^5 / 5! \le e^t$ applied to $t = \log x > 15$, we have $(\log x)^2 / x \le 120 / (\log x)^3 < 120 / 15^3 = 8 / 225$, while $1 / (3 \log x) < 1 / 45$. Therefore \[ \frac{1}{3 \log x} + \frac{16}{9} \frac{(\log x)^2}{x} < \frac{1}{45} + \frac{16}{9} \cdot \frac{8}{225} = \frac{45 + 128}{2025} = \frac{173}{2025} < \frac{225}{2025} = \frac{1}{9}, \] contradicting~\eqref{eq:contra-step}. \end{proof} To turn~\eqref{eq:analytic-hyp} into an explicit closed-form bound on $x$, we record an elementary monotonicity lemma (proved without differentiation so that it translates verbatim into Lean~4). \begin{lemma}\label{lem:monotone} If $0 < t \le x$ and $\log t > 2$, then $(\log x)^2 / x \le (\log t)^2 / t$. \end{lemma} \begin{proof} Set $a := \log t > 2$ and $s := \log x - a \ge 0$, so that $\log x = a + s$ and $x = t e^s$. Since $e^s \ge 1 + s + s^2/2$ and \[ a^2\Bigl(1 + s + \frac{s^2}{2}\Bigr) - (a + s)^2 = s\, a(a - 2) + s^2\Bigl(\frac{a^2}{2} - 1\Bigr) \ge 0, \] we obtain $(\log x)^2 = (a + s)^2 \le a^2 e^s = (\log t)^2 (x / t)$, proving the lemma. \end{proof} \begin{proof}[Proof of Theorem~\ref{thm:effective}] First suppose $1 \le k \le 787$ and $x := \floor{\sqrt{n}} \ge x_0 = 3{,}594{,}641$. Using $e > 2.7182818283$, we have $e^{15} > 3{,}269{,}017$ and $e^{0.095} \ge 1 + 0.095 + 0.095^2/2 + 0.095^3/6 > 1.0996553$, so $e^{15.095} > 3{,}594{,}791 > x_0$, giving $\log x_0 < 15.095$. Since $\log x_0 > 15 > 2$, Lemma~\ref{lem:monotone} yields \[ 20(k + 1) \frac{(\log x)^2}{x} \le 20 \cdot 788 \cdot \frac{(\log x_0)^2}{x_0} < 15{,}760 \cdot \frac{15.095^2}{3{,}594{,}641} = \frac{3{,}591{,}058.234}{3{,}594{,}641} < 1. \] Thus~\eqref{eq:analytic-hyp} holds and Theorem~\ref{thm:analytic} gives $n \notin T_k$. Since $x_0$ is an integer, $\floor{\sqrt{n}} < x_0$ is equivalent to $n < x_0^2 = 12{,}921{,}443{,}918{,}881$. Now let $k \ge 1$ be arbitrary, and suppose $x := \floor{\sqrt{n}} \ge B_k = \max(x_0, t)$, where $u := 60(k + 1) \ge 120$ and $t := u (\log u)^2$. Since $e^9 < 2.7182818286^9 < 8{,}104 < 120^2$, we have $\log u \ge \log 120 > 4.5$, and hence $t > 120 \cdot 4.5^2 = 2{,}430 > e^2$ (so $\log t > 2$). Next, from $3^{10} = 59{,}049 < 2.7182818283^{11} < e^{11}$ we obtain $\log 3 < 1.1$, whence \[ \log(\log u) = \log 3 + \log\Bigl(\frac{\log u}{3}\Bigr) < 1.1 + \frac{\log u}{3} - 1 = 0.1 + \frac{\log u}{3}. \] Therefore \[ \log t = \log u + 2\log(\log u) < \frac{5}{3} \log u + 0.2 < \Bigl(\frac{5}{3} + \frac{0.2}{4.5}\Bigr) \log u = \frac{77}{45} \log u < 1.72 \log u. \] Because $1.72^2 = 2.9584 < 3$, Lemma~\ref{lem:monotone} applied at $t \le x$ yields \[ \frac{(\log x)^2}{x} \le \frac{(\log t)^2}{t} < \frac{1.72^2 (\log u)^2}{u (\log u)^2} < \frac{3}{u} = \frac{1}{20(k + 1)}, \] so $20(k + 1)(\log x)^2 < x$. Since also $x \ge x_0$, Theorem~\ref{thm:analytic} implies $n \notin T_k$. Hence every $n \in T_k$ satisfies $\floor{\sqrt{n}} < B_k$, which implies $\floor{\sqrt{n}} \le \ceil{B_k} - 1$ (whether or not $B_k$ is an integer) and thus $n < \ceil{B_k}^2$. Note that $1 \in T_k$ (since $D_1 = 1$), so $T_k$ is non-empty, and Proposition~\ref{prop:reduction}(3) gives $\max S_k \le k + \max T_k \le k + \ceil{B_k}^2 - 1 = O(k^2 (\log k)^4)$. \end{proof} \section{Finite Computational Verification and Complete Classifications}\label{sec:comp} By Theorem~\ref{thm:effective}, for every $1 \le k \le 5$ (and indeed every $1 \le k \le 787$), any solution $n \in T_k$ satisfies $\floor{\sqrt{n}} < x_0 = 3{,}594{,}641$. We close the finite range $1 \le n < x_0^2$ in two completely deterministic, reproducible phases implemented in C (using exact $64$-bit unsigned integer arithmetic, where $x_0^2 \approx 1.29 \times 10^{13} < 2^{44} \ll 2^{64}$): \begin{description} \item[Phase A (Zero-branching disjoint-clique certificate on square blocks)] We sieve all primes up to $x_0 + 50{,}000$ (and redundantly up to $10{,}594{,}111$ to verify stability far beyond $x_0$). For each integer $x \in [100, x_0]$, letting $p_0 < p_1 < \dots < p_{63}$ be the first $64$ primes exceeding $x$, we compute a constructive lower bound $\operatorname{lb}(x) \le \tau(G(x))$ via Corollary~\ref{cor:clique}(2) in two zero-branching steps: \begin{enumerate} \item \emph{Greedy adjacent matching:} scan $p_0, \dots, p_{31}$ left-to-right, greedily pairing $(p_i, p_{i+1})$ whenever~\eqref{eq:edge} holds (advancing $i \mapsto i + 2$ on a match, else $i \mapsto i + 1$) until $6$ disjoint edges are found. \item \emph{Greedy disjoint clique packing:} only on the rare blocks where the adjacent matching yields fewer than $6$ edges, greedily extract pairwise vertex-disjoint maximal cliques $C_1, C_2, \dots$ from $\{p_0, \dots, p_{63}\}$ (explicitly verifying~\eqref{eq:edge} for every pair in each $C_i$) and accumulate $\sum_i (|C_i| - 1)$. \end{enumerate} The entire sweep up to $x = 10{,}544{,}111$ (covering $n \le 1.11 \times 10^{14}$) completes in $0.12\,\mathrm{s}$ on a single Apple Silicon core. For each $k \in \{1, 2, 3, 4, 5\}$, Table~\ref{tab:summary} records the largest failing block $x_{\mathrm{fail}}(k)$ (which is unchanged whether stopping at $x_0 = 3{,}594{,}641$ or at $10{,}544{,}111$), the resulting direct-search cutoff $N_{\mathrm{cut}}(k) := (x_{\mathrm{fail}}(k) + 1)^2 - 1 \le 442{,}224$, and the exact breakdown between greedy matchings and clique packings on $[x_{\mathrm{fail}}(k) + 1, x_0]$. Remarkably, across more than $3.59 \times 10^6$ square blocks per $k$, at most $13$ blocks ever require a clique of size $\ge 3$ (and none above $x = 832$). \item[Phase B (Direct exact evaluation for $0 \le n \le 600{,}000$)] Because $N_{\mathrm{cut}}(k) \le 442{,}224 < 600{,}000$ for all $1 \le k \le 5$, we directly evaluate $s_p(n)$ and the von Staudt--Clausen condition for all $0 \le n \le 600{,}000$ (using $64$-bit integer arithmetic, with an exact prime sieve up to $600{,}010$, testing every prime $p \le n + 1$ without skipping any primes) in $0.37\,\mathrm{s}$ (combined with the block sweep and an independent numerical check of~\eqref{eq:dusart} across $[3{,}594{,}641, 10{,}600{,}000]$, where $\max |\vartheta(x) - x|(\log x)^2 / x = 0.199874$ at $x = 3{,}594{,}648 < 0.2$). \end{description} As an independent cross-check of the Bernoulli polynomial characterization, we also computed $B_m^{(k)}(x)$ directly from the defining rational polynomials in exact arbitrary-precision Python arithmetic (\texttt{fractions.Fraction}) for all $0 \le n \le 450$ and $1 \le k \le 5$, obtaining $100\%$ agreement with the digit-sum and von Staudt--Clausen criteria; furthermore, all six OEIS lists up to $1{,}000$ (which contain every solution) are independently kernel-verified in Lean~4 (Section~\ref{sec:lean}). \begin{table}[ht] \centering \caption{Complete summary of solutions and constructive disjoint-clique verification on $[x_{\mathrm{fail}}(k) + 1, x_0]$ ($x_0 = 3{,}594{,}641$) for $k = 1, 2, 3, 4, 5$. Here $|S_k|$ counts all $m \ge 1$ with $B_m^{(k)}(x) \in \Z[x]$ (with the nontrivial count $m \ge k$ in parentheses).}\label{tab:summary} \small \begin{tabular}{@{}cccccccccr@{}} \toprule $k$ & OEIS & $|S_k|$ ($m \ge k$) & $\max S_k$ & $|T_k|$ & $\max T_k$ & $x_{\mathrm{fail}}(k)$ & $N_{\mathrm{cut}}(k)$ & Matching only & Cliques (last $x$) \\ \midrule $1$ & \texttt{A094960} & $10$ ($10$) & $60$ & $12$ & $59$ & $143$ & $20{,}735$ & $3{,}594{,}495$ & $3$ ($146$) \\ $2$ & \texttt{A366169} & $29$ ($28$) & $190$ & $43$ & $208$ & $338$ & $114{,}920$ & $3{,}594{,}299$ & $4$ ($660$) \\ $3$ & \texttt{A366186} & $59$ ($57$) & $392$ & $77$ & $389$ & $662$ & $439{,}568$ & $3{,}593{,}979$ & $0$ (--) \\ $4$ & \texttt{A366187} & $88$ ($85$) & $393$ & $110$ & $900$ & $663$ & $440{,}895$ & $3{,}593{,}977$ & $1$ ($664$) \\ $5$ & \texttt{A366188} & $125$ ($121$) & $904$ & $156$ & $900$ & $664$ & $442{,}224$ & $3{,}593{,}964$ & $13$ ($832$) \\ \bottomrule \end{tabular} \end{table} \begin{proof}[Proof of Theorems~\ref{thm:a195441}, \ref{thm:a094960}, and~\ref{thm:higher}] Fix $k \in \{1, 2, 3, 4, 5\}$. By Theorem~\ref{thm:effective}, every $n \in T_k$ satisfies $\floor{\sqrt{n}} < x_0 = 3{,}594{,}641$. By Phase~A and Corollary~\ref{cor:clique}(2), every block $I(x)$ with $x_{\mathrm{fail}}(k) + 1 \le x \le x_0$ satisfies $I(x) \cap T_k = \emptyset$, so every $n \in T_k$ satisfies $n \le (x_{\mathrm{fail}}(k) + 1)^2 - 1 = N_{\mathrm{cut}}(k) \le 442{,}224 < 600{,}000$. By Proposition~\ref{prop:reduction}(3)--(4), every solution to $D_n = \rad(n + 1)$ lies in $T_1$, and every $m \ge k + 1$ in $S_k$ satisfies $m - k \in T_k$. Phase~B exhaustively evaluates $0 \le n \le 600{,}000$, finding zero solutions in $T_k$ with $900 < n \le 600{,}000$ and yielding the exact complete sets listed below. \end{proof} \subsection*{Complete explicit lists} For convenience and permanent reference, we list the complete sets $S_2, S_3, S_4, S_5$ and $T_2$ (with \texttt{A195441}, $T_1$, and $S_1 = \texttt{A094960}$ already listed in Theorems~\ref{thm:a195441} and~\ref{thm:a094960}): \begin{itemize} \item $S_2 = \texttt{A366169}$ ($29$ terms, $\max 190$): $\{$1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 15, 16, 21, 25, 28, 29, 30, 31, 36, 37, 55, 57, 60, 61, 70, 121, 190$\}$. \item $T_2$ ($43$ terms, $\max 208$): $\{$1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 18, 19, 20, 23, 26, 27, 28, 29, 30, 34, 35, 36, 40, 50, 53, 54, 55, 56, 58, 59, 64, 68, 76, 108, 119, 154, 188, 208$\}$. \item $S_3 = \texttt{A366186}$ ($59$ terms, $\max 392$): $\{$1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 20, 21, 22, 25, 26, 28, 29, 30, 31, 32, 35, 36, 37, 38, 42, 50, 52, 55, 56, 57, 58, 60, 61, 62, 66, 70, 71, 72, 78, 80, 92, 110, 121, 122, 156, 176, 177, 190, 191, 210, 392$\}$. \item $S_4 = \texttt{A366187}$ ($88$ terms, $\max 393$): $\{$1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25, 26, 27, 28, 29, 30, 31, 32, 33, 35, 36, 37, 38, 39, 42, 43, 45, 50, 51, 52, 53, 55, 56, 57, 58, 59, 60, 61, 62, 63, 66, 67, 68, 70, 71, 72, 73, 78, 79, 80, 81, 91, 92, 93, 110, 111, 121, 122, 123, 143, 147, 156, 157, 171, 176, 177, 178, 190, 191, 192, 210, 211, 255, 392, 393$\}$. \item $S_5 = \texttt{A366188}$ ($125$ terms, $\max 904$): $\{$1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 42, 43, 44, 45, 46, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 66, 67, 68, 69, 70, 71, 72, 73, 74, 78, 79, 80, 81, 82, 84, 88, 91, 92, 93, 94, 99, 100, 104, 110, 111, 112, 121, 122, 123, 124, 130, 136, 143, 144, 147, 148, 156, 157, 158, 171, 172, 176, 177, 178, 179, 190, 191, 192, 193, 210, 211, 212, 255, 256, 290, 304, 378, 392, 393, 394, 418, 444, 784, 904$\}$. \end{itemize} The sets $T_3$ ($77$ terms, $\max 389$), $T_4$ ($110$ terms, $\max 900$), and $T_5$ ($156$ terms, $\max 900$) have upper tails ($n > 200$) given respectively by: \begin{itemize} \item $T_3 \cap (200, \infty) = \{$207, 208, 252, 389$\}$. \item $T_4 \cap (200, \infty) = \{$206, 207, 208, 251, 252, 286, 300, 374, 388, 389, 414, 780, 900$\}$. \item $T_5 \cap (200, \infty) = \{$204, 205, 206, 207, 208, 216, 250, 251, 252, 285, 286, 299, 300, 320, 372, 373, 374, 387, 388, 389, 390, 413, 414, 439, 440, 528, 779, 780, 899, 900$\}$. \end{itemize} \section{Formal Verification in Lean 4}\label{sec:lean} To eliminate any risk of subtle algebraic, edge-case, or real-analytic errors in our core arguments, we formalized the entire proof core in Lean~4.33.1 (Mathlib) in the standalone companion file \texttt{lean/KellnerBernoulli\_Core.lean} ($1{,}173$ lines, $58{,}144$ bytes; publicly archived at \url{https://github.com/saientropy/math-papers-lean4}). The file compiles cleanly with \texttt{lake env lean} in $23.11\,\mathrm{s}$ with exit code~$0$, zero warnings, zero \texttt{maxHeartbeats} overrides, and zero banned tokens (no \texttt{sorry}, \texttt{admit}, \texttt{axiom}, \texttt{native\_decide}, \texttt{unsafe}, \texttt{partial}, or \texttt{opaque}). Auditing all $18$ public theorems and lemmas via \texttt{\#print axioms} confirms that every declaration depends exclusively on the three standard Lean axioms $\{\texttt{propext}, \texttt{Classical.choice}, \texttt{Quot.sound}\}$. Table~\ref{tab:lean} maps each mathematical result in this paper to its verified Lean~4 declaration and exact line span in \texttt{KellnerBernoulli\_Core.lean} (namespace \texttt{KellnerBernoulliCore}). Notice that for Section~4 of the Lean file, rather than trusting naive trial division inside the kernel, we define a structurally recursive base-$p$ digit-sum evaluator \texttt{digitSumFuel} (proved equal to \texttt{digitSum} in \texttt{digitSumFuel\_eq} and \texttt{digitSumFuel\_ten\_eq}) together with a bounded trial-divisor primality predicate \texttt{isPrimeSmall} (proved equivalent to \texttt{Nat.Prime} for all $n \le 1{,}023$ in \texttt{isPrimeSmall\_eq} via \texttt{Nat.minFac\_sq\_le\_self}), and then establish exact equality between the fast evaluators and the clean specifications \texttt{checkA195441} and \texttt{checkBkIntegral}. Consequently, all six OEIS sequences (\texttt{A195441}, \texttt{A094960}, \texttt{A366169}, \texttt{A366186}, \texttt{A366187}, \texttt{A366188}) are kernel-verified up to $1{,}000$ via \texttt{decide +kernel}. \begin{table}[ht] \centering \caption{Correspondence between paper theorems and formally verified declarations in \texttt{KellnerBernoulli\_Core.lean} (namespace \texttt{KellnerBernoulliCore}).}\label{tab:lean} \small \begin{tabular}{@{}lll@{}} \toprule Paper result & Lean 4 declaration & Line span \\ \midrule Two-digit formula ($n < p^2$) & \texttt{digitSum\_two\_digits} & L86--98 \\ Theorem~\ref{thm:pair} (Prime-Pair Lemma) & \texttt{prime\_pair\_lemma} & L104--163 \\ Lemma~\ref{lem:atmostk} ($\le k$ large prime divisors) & \texttt{at\_most\_k\_large\_prime\_divisors} & L173--212 \\ Lemma~\ref{lem:pairincompat} ($G(x)$ edge soundness) & \texttt{pairIncompat\_sound} & L220--235 \\ Corollary~\ref{cor:clique} (Disjoint-clique certificate) & \texttt{disjoint\_cliques\_no\_solution} & L241--320 \\ Pigeonhole minimum gap & \texttt{exists\_small\_gap\_sorted} & L380--402 \\ $\log x_0 > 15$, $(\log x)^2/x$ bounds & \texttt{fifteen\_lt\_log\_x0}, \texttt{log\_sq\_div\_le} & L405--429 \\ Lemma~\ref{lem:monotone} (Monotonicity of $(\log x)^2/x$) & \texttt{log\_sq\_div\_antitone} & L432--465 \\ Lemma~\ref{lem:pcount} (Interval prime count, private) & \texttt{prime\_count\_interval\_lb} & L469--556 \\ Gap contradiction step (private) & \texttt{analytic\_gap\_contradiction} & L560--608 \\ Theorem~\ref{thm:analytic} (General-$k$ analytic bound) & \texttt{analytic\_large\_x\_no\_solution} & L613--737 \\ Theorem~\ref{thm:effective} ($1 \le k \le 787$ uniform bound) & \texttt{analytic\_uniform\_k\_le\_787} & L740--788 \\ Theorem~\ref{thm:effective} (Closed-form bound, all $k \ge 1$) & \texttt{analytic\_general\_k\_bound} & L793--870 \\ Exact \texttt{A195441} ($1 \le n \le 1{,}000$) & \texttt{a195441\_up\_to\_1000} & L1087--1095 \\ Exact \texttt{A094960} ($1 \le m \le 1{,}000$) & \texttt{a094960\_up\_to\_1000} & L1098--1107 \\ Exact \texttt{A366169} ($1 \le m \le 1{,}000$) & \texttt{a366169\_up\_to\_1000} & L1110--1120 \\ Exact \texttt{A366186} ($1 \le m \le 1{,}000$) & \texttt{a366186\_up\_to\_1000} & L1123--1135 \\ Exact \texttt{A366187} ($1 \le m \le 1{,}000$) & \texttt{a366187\_up\_to\_1000} & L1138--1152 \\ Exact \texttt{A366188} ($1 \le m \le 1{,}000$) & \texttt{a366188\_up\_to\_1000} & L1155--1171 \\ \bottomrule \end{tabular} \end{table} \begin{remark}[Explicit scope of formalization]\label{rem:scope} To keep the verification boundary completely transparent, we note the three components not yet internalized inside \texttt{KellnerBernoulli\_Core.lean}: \begin{enumerate} \item Dusart's published prime-number-theorem estimate (Theorem~\ref{thm:dusart}) is passed as an explicit proposition parameter \texttt{hD : Dusart2018ThetaBound} to \texttt{analytic\_large\_x\_no\_solution}, \texttt{analytic\_uniform\_k\_le\_787}, and \texttt{analytic\_general\_k\_bound}, rather than declared as an axiom. \item The classical identities of Kellner--Sondow (Theorem~\ref{thm:KS}) and von Staudt--Clausen (Theorem~\ref{thm:vSC}) are invoked in passing from the polynomial definition $B_m^{(k)}(x) \in \Z[x]$ to the digit-sum predicates \texttt{LargePrimeDivCond}, \texttt{checkA195441}, and \texttt{checkBkIntegral}. \item The finite verification on $1{,}000 < n < 3{,}594{,}641^2$ is performed by our $0.12\,\mathrm{s}$/$0.37\,\mathrm{s}$ C verifiers (whose underlying soundness theorem \texttt{disjoint\_cliques\_no\_solution} is formally proved in Lean), while the exact lists up to $1{,}000$ containing every solution of all six OEIS sequences are kernel-verified directly in Lean. \end{enumerate} \end{remark} \section{Concluding Remarks and Open Questions}\label{sec:remarks} We close with three natural directions suggested by our results. \begin{enumerate} \item \emph{True growth rate of $\max S_k$ and $\max T_k$.} Theorem~\ref{thm:effective} establishes the explicit bound $\max S_k = O(k^2 (\log k)^4)$, whereas our exact values $\max S_k \in \{60, 190, 392, 393, 904\}$ for $1 \le k \le 5$ grow substantially more slowly. Determining the true asymptotic order of $\max S_k$ and $\max T_k$ as $k \to \infty$ (even heuristically, or improving the upper bound toward $O(k^{1 + o(1)})$ by exploiting primes in shorter ranges or multiple digit-sum constraints below $\sqrt{n}$) remains an appealing open problem. \item \emph{Elementary PNT-free effective bounds.} Our analytic proof in Section~\ref{sec:analytic} uses Dusart's explicit $\vartheta$-bound~\cite{Dusart2018} solely to obtain $\vartheta(x + \Delta) - \vartheta(x) > c\, \Delta$ on $\Delta = x / (3 \log x)$, which is a sub-linear interval length $\Delta = o(x)$. Can one obtain an effective bound for $T_k$ using only elementary Chebyshev-type bounds (without zero-free regions of $\zeta(s)$), perhaps at the cost of a larger base-$p$ digit-sum argument across several scales? \item \emph{End-to-end formalization of \texttt{OeisA195441.conjecture}.} In the Formal Conjectures repository (\texttt{FormalConjectures/OEIS/195441.lean}), \texttt{OeisA195441.conjecture} is stated directly in terms of \texttt{bernoulli} and \texttt{UniqueFactorizationMonoid.radical}. Combining \texttt{KellnerBernoulli\_Core.lean} with a Lean~4 formalization of Kellner--Sondow's formula (Theorem~\ref{thm:KS}), Dusart's bound~\cite{Dusart2018} (or a weaker formalized explicit $\vartheta$ estimate), and a kernel-checked certificate for the finite block range would yield a fully self-contained formal proof of \texttt{OeisA195441.conjecture} from Mathlib's axioms alone. \end{enumerate} \begin{thebibliography}{99} \bibitem{BLMS2018} O.~Bordell\`es, F.~Luca, P.~Moree, and I.~E.~Shparlinski, \emph{Denominators of Bernoulli polynomials}, Mathematika \textbf{64} (2018), no.~2, 519--541. \bibitem{BKLNW2021} S.~Broadbent, H.~Kadiri, A.~Lumley, N.~Ng, and K.~Wilk, \emph{Sharper bounds for the Chebyshev function $\theta(x)$}, Math. Comp. \textbf{90} (2021), no.~331, 2281--2315. \bibitem{Clausen1840} T.~Clausen, \emph{Theorem}, Astronom. Nachr. \textbf{17} (1840), no.~22, 351--352. \bibitem{Dusart2018} P.~Dusart, \emph{Explicit estimates of some functions over primes}, Ramanujan J. \textbf{45} (2018), no.~1, 227--251. \bibitem{Kellner2024} B.~C.~Kellner, \emph{On the finiteness of Bernoulli polynomials whose derivative has only integral coefficients}, J. Integer Seq. \textbf{27} (2024), Article 24.2.8, 11~pp. \bibitem{KS2017} B.~C.~Kellner and J.~Sondow, \emph{Power-sum denominators}, Amer. Math. Monthly \textbf{124} (2017), no.~8, 695--709. \bibitem{KS2018} B.~C.~Kellner and J.~Sondow, \emph{The denominators of power sums of arithmetic progressions}, Integers \textbf{18} (2018), Article A95, 17~pp. \bibitem{KS2021} B.~C.~Kellner and J.~Sondow, \emph{On Carmichael and polygonal numbers, Bernoulli polynomials, and sums of base-$p$ digits}, Integers \textbf{21} (2021), Article A52, 21~pp. \bibitem{OEIS} OEIS Foundation Inc., \emph{The On-Line Encyclopedia of Integer Sequences}, sequences \texttt{A094960}, \texttt{A195441}, \texttt{A366169}, \texttt{A366186}, \texttt{A366187}, and \texttt{A366188}, \url{https://oeis.org}. \bibitem{vonStaudt1840} K.~G.~C.~von~Staudt, \emph{Beweis eines Lehrsatzes, die Bernoullischen Zahlen betreffend}, J. Reine Angew. Math. \textbf{21} (1840), 372--374. \end{thebibliography} \end{document}