\documentclass[11pt,reqno]{amsart} \textwidth = 6.2 in \textheight = 8.5 in \oddsidemargin = 0.0 in \evensidemargin = 0.0 in \topmargin = 0.0 in \headheight = 0.0 in \headsep = 0.3 in \parskip = 0.05 in \parindent = 0.3 in \usepackage{graphicx} \usepackage{appendix} \usepackage{longtable} \usepackage{multirow} \usepackage{mleftright} \usepackage{oplotsymbl} \usepackage{wasysym} \makeatletter %\renewcommand\subsection{\@startsection{subsection}{2}{\z@}% % {-3.25ex\@plus -1ex \@minus -.2ex}% % {1.5ex \@plus .2ex}% % {\normalfont\large\bfseries}} \makeatother \DeclareMathAlphabet{\mathpzc}{OT1}{pzc}{m}{it} \DeclareMathAlphabet{\mathantt}{OT1}{antt}{li}{it} \usepackage{comment} \usepackage{enumerate} \usepackage{esvect} \usepackage{bm} \usepackage{amsmath} \usepackage{amssymb} \usepackage{mathtools} \newcommand{\defeq}{\vcentcolon=} \newcommand{\eqdef}{=\vcentcolon} \newcommand{\Aut}{\text{\normalfont Aut}} \usepackage{mathrsfs} \usepackage{color} \def\cc{\color{blue}} \usepackage[normalem]{ulem} \usepackage{url} \newtheorem{theorem}{Theorem}[section] \newtheorem{prop}[theorem]{Proposition} \newtheorem{cor}[theorem]{Corollary} \newtheorem{lemma}[theorem]{Lemma} \newtheorem{remark}[theorem]{Remark} \newtheorem{definition}[theorem]{Definition} \newtheorem{conj}[theorem]{Conjecture} \newtheorem{question}[theorem]{Question} \newtheorem{ex}[theorem]{Example} \usepackage{bbm} \DeclareSymbolFont{bbold}{U}{bbold}{m}{n} \DeclareSymbolFontAlphabet{\mathbbold}{bbold} \usepackage{stmaryrd} \usepackage{hyperref} \hypersetup{hidelinks,colorlinks} \hypersetup{ %linkbordercolor=red, % Set color for boxes around internal links %citebordercolor=blue, % Set color for boxes around citations linkcolor=red, citecolor=blue, urlcolor=black, } \DeclareMathOperator{\lcm}{lcm} \usepackage{dsfont} \usepackage{mleftright} % for \mleft and \mright macros \DeclareMathOperator{\sgn}{sgn} \newcommand{\CC}{\mathbb{C}} \newcommand{\RR}{\mathbb{R}} \newcommand{\NN}{\mathbb{N}} \newcommand{\QQ}{\mathbb{Q}} \newcommand{\ZZ}{\mathbb{Z}} \newcommand{\DD}{\mathbb{D}} \newcommand{\PP}{\mathbb{P}} \newcommand{\repgen}{r_{\tiny\pentagon}} \newcommand{\repord}{r_{\tiny\pentagon}^{+}} \newcommand{\repsquares}{r_{\scriptscriptstyle\square}} \newcommand{\ksymbol}{} \newcommand{\settingstar}{{\normalfont(\hyperref[setting_star]{$\ast$})}} \newcommand{\hatted}[1]{\widehat{#1}} \DeclareMathOperator{\oddleq}{\mathcal{O}_{\leq}} \DeclareMathOperator{\evenleq}{\mathcal{E}_{\leq}} \DeclareMathOperator{\image}{Im} \title{On the ternary pentagonal numbers conjecture} \author{Glenn Bruda} \address{School of Mathematics, Georgia Institute of Technology, Atlanta, GA 30332} \email{gbruda3@gatech.edu} \allowdisplaybreaks \raggedbottom \begin{document} \begin{abstract} Communicated by Guy in 1994, the ternary pentagonal numbers conjecture of Blecksmith and Selfridge asserts that every integer larger than $33066$ is the sum of three positive pentagonal numbers. Prior to this note, it was even unknown whether every sufficiently large integer is the sum of three positive pentagonal numbers. We resolve this in the affirmative, using the landmark work of Duke and Schulze-Pillot on ternary quadratic forms to handle all sufficiently large integers $n$ with $v_3(24n+3)\leq8$, and present an explicit lift to handle the $n$ with $v_3(24n+3)\geq9$. \end{abstract} \maketitle \thispagestyle{empty} \section{Introduction and Results} For an integer $k\geq3$, let $p_k(x)=((k-2)x^2-(k-4)x)/2$ be the $k$-gonal polynomial. We say that $n$ is a $k$-gonal number if $n=p_k(m)$ for some nonnegative integer $m$ and that $n$ is a generalized $k$-gonal number if $n=p_k(x)$ for some $x\in\ZZ$. Since Fermat conjectured in 1638 that every positive integer is the sum of $k$ $k$-gonal numbers (which is now known as the Fermat--Cauchy polygonal number theorem), additive bases of (generalized) polygonal numbers have endured as a topic of thorough study. While the Fermat--Cauchy polygonal number theorem is sharp for every $k$, the question of how many $k$-gonal numbers one needs to represent every sufficiently large integer is subtler. In 1830, Legendre \cite{legendre} showed that every sufficiently large integer is the sum of four $k$-gonal numbers if $k\not\equiv0\pmod{4}$, and is the sum of five $k$-gonal numbers if $k\equiv0\pmod{4}$ (and at least one of these five is $0$ or $1$). While Meng and Sun \cite{supplement_to_legendre} showed that the $k\equiv0\pmod{4}$ case of Legendre's result is sharp for $k\geq8$ (the $k=4$ case is Lagrange's four-square theorem), the question of whether only three $k$-gonal numbers suffice to represent every sufficiently large integer is still open in general. In fact, it is still unknown whether every sufficiently large integer is the sum of three \emph{generalized} $k$-gonal numbers for general $k\equiv 5,11\pmod{12}$, though \cite[Theorem 1.2]{ternary_polygonal_haensch} gives some control over the exceptional set. In 1994, Guy \cite{guy_AMM} posed numerous representation problems regarding (generalized) polygonal numbers. In particular, he communicated a conjecture of Richard Blecksmith and John Selfridge on the positive integers that are the sum of three pentagonal numbers, which was recently rediscovered by Sun \cite[Remark 1.1]{sun}. \begin{conj}[Blecksmith--Selfridge, {\cite[pg.171]{guy_AMM}}]\label{blecksmith_selfridge_conj} Every integer larger than $33066$ is the sum of three positive pentagonal numbers. \end{conj} See \cite{oeis_exceptional_set} for a list of all 210 currently known positive integers that are not the sum of three pentagonal numbers. While Guy quickly and elementarily shows that in fact every positive integer is the sum of three generalized pentagonal numbers, proving Conjecture \ref{blecksmith_selfridge_conj} appears considerably more difficult, with no proof, elementary or otherwise, being found to date. After stating Conjecture \ref{blecksmith_selfridge_conj}, Guy simply asks whether every sufficiently large integer is the sum of three pentagonal numbers, which has also remained open since the publication of \cite{guy_AMM}. We resolve this question in the affirmative, and assert further that one can require each of the three pentagonal numbers to be positive. \begin{theorem}\label{main_result} Every sufficiently large integer is the sum of three positive pentagonal numbers. \end{theorem} The proof is separated into two cases: $v_3(24n+3)\leq 8$ and $v_3(24n+3)\geq9$. For $v_3(24n+3)\leq 8$, we recast the ternary pentagonal numbers conjecture to use the work of Duke and Schulze-Pillot \cite{DSP} to approximate the ternary representation function of the positive pentagonal numbers by the ternary representation function of the generalized pentagonal numbers, from which we ultimately show that the former is $\Omega_{\varepsilon}(n^{1/2-\varepsilon})$. We note that this asymptotic bound is ineffective (and thus so is Theorem \ref{main_result}) since it relies on Siegel's estimate \cite{siegel_estimate}. For all integers with $v_3(24n+3)\geq9$, we provide an explicit lift found by ChatGPT 5.6 Sol. A statement of AI use may be found toward the end of the paper, immediately preceding the acknowledgments. \section{Discussion} \subsection{Background and overview} Seeking to determine when the integral points on the ellipsoid $Q(x_1,x_2,x_3)=n$ are asymptotically uniformly distributed for $Q$ a positive-definite integral ternary quadratic form, Duke and Schulze-Pillot \cite{DSP} prove several results of crucial use to us. Their setup is as follows: let $N$ be the level\footnote{The level $N$ of a quadratic form $\frac{1}{2}\mathbf{x}^T A\mathbf{x}$ (with $A$ symmetric and integral with diagonal entries all even) is the smallest positive integer such that $NA^{-1}$ is integral with diagonal entries all even.} of $Q$, let $\mathscr{F}$ be a convex subset of $\mathcal{E}\defeq\{\mathbf{t}\in\RR^3:Q(\mathbf{t})=1\}$ with a piecewise-smooth boundary, and let $\mathbf{h}\in \QQ^3$ be such that $A\mathbf{h}\in\ZZ^3$ and $Q(\mathbf{h})\in\ZZ$, where $A$ is the matrix such that $Q(\mathbf{x})=\frac{1}{2}\mathbf{x}^T A\mathbf{x}$. Now define \begin{align*} r(Q,\mathbf{h},n)&\defeq \#\left\{\mathbf{x}\in\QQ^3:\mathbf{x}\equiv\mathbf{h}\bmod\ZZ^3,Q(\mathbf{x})=n\right\},\\ r(Q,\mathscr{F},\mathbf{h},n)&\defeq \#\left\{\mathbf{x}\in\QQ^3:\mathbf{x}\equiv\mathbf{h}\bmod\ZZ^3,Q(\mathbf{x})=n,\mathbf{x}/\sqrt{n}\in\mathscr{F}\right\}. \end{align*} Letting $\mu$ be the normalized measure on $\mathcal{E}$, the asymptotic uniform distribution statement sought is then $r(Q,\mathscr{F},\mathbf{h},n)\sim \mu(\mathscr{F})r(Q,\mathbf{h},n)$. The critical result of their paper, \cite[Theorem 1]{DSP}, when combined with the routine bound $r(Q,\mathbf{h},n)\ll_{\varepsilon} n^{1/2+\varepsilon}$, asserts that for suitable $n$, indeed \begin{align}\label{general_DSP_approximation} r(Q,\mathscr{F},\mathbf{h},n)= \mu(\mathscr{F})r(Q,\mathbf{h},n)+O_{\varepsilon,S,N}(n^{1/2-1/175+\varepsilon}), \end{align} where $S$ is a parameter governing which $n$ are ``suitable''. The remainder of the paper is dedicated to showing when $r(Q,\mathbf{h},n)$ has the predicted growth of $n^{1/2+o(1)}$. The key breakthrough making \eqref{general_DSP_approximation} possible is the development of power-saving bounds for Fourier coefficients of cusp forms of half-integral weight, initiated by Iwaniec \cite{iwaniec_fourier_coeffs} and extended by Duke \cite{duke_fourier_coeffs}. The path toward proving \cite[Theorem 1]{DSP} is separated into four steps. For $\delta>0$ to be specified later, one first tightly bounds the indicator function $\mathbf{1}_{\mathscr{F}}(\mathbf{x})$ above and below by a series of homogeneous $Q$-harmonic polynomials $P_v^{\pm}(\mathbf{x})$ of degree $v$ with rapid decay in $v$ and $|P_0^{\pm}-\mu(\mathscr{F})|<\delta$; this is \cite[Lemma 1]{DSP}. Next, since \begin{align*} \sum_{v\geq0}\sum_{\substack{\mathbf{x}\in \mathbf{h}+\ZZ^3,\\ Q(\mathbf{x})=n}}P_v^{-}(\mathbf{x}/\sqrt{n})\leq r(Q,\mathscr{F},\mathbf{h},n)\leq \sum_{v\geq0}\sum_{\substack{\mathbf{x}\in \mathbf{h}+\ZZ^3,\\ Q(\mathbf{x})=n}}P_v^{+}(\mathbf{x}/\sqrt{n}), \end{align*} we have \begin{align*} r(Q,\mathscr{F},\mathbf{h},n)-\mu(\mathscr{F})r(Q,\mathbf{h},n)\leq \sum_{v\geq1}\sum_{\substack{\mathbf{x}\in \mathbf{h}+\ZZ^3\\ Q(\mathbf{x})=n}}P_v^{+}(\mathbf{x}/\sqrt{n})+\delta r(Q,\mathbf{h},n),\\ r(Q,\mathscr{F},\mathbf{h},n)-\mu(\mathscr{F})r(Q,\mathbf{h},n)\geq\sum_{v\geq1}\sum_{\substack{\mathbf{x}\in \mathbf{h}+\ZZ^3\\ Q(\mathbf{x})=n}}P_v^{-}(\mathbf{x}/\sqrt{n})-\delta r(Q,\mathbf{h},n). \end{align*} Then for each $v\geq1$, the methods of Iwaniec \cite{iwaniec_fourier_coeffs} and Duke \cite{duke_fourier_coeffs} are used, after refinement by \cite[Lemma 2]{DSP}, to bound the Fourier coefficients of the shifted (by $\mathbf{h}$) theta series associated with $Q$ weighted by $P_v^{\pm}$, since they are cusp forms of weight $3/2+v$. These Fourier coefficients are precisely the $v$-summands above multiplied by $n^{v/2}$ (recall that the $P_v^{\pm}$ are homogeneous). Finally, \cite[Lemma 3]{DSP} uses these Fourier coefficient bounds to prove that the $\sum_{v\geq1}$ sums above are at most on the order of $\delta r(Q,\mathbf{h},n)+\delta^{-21/4-\varepsilon}n^{1/2-1/28+\varepsilon}$. Taking $\delta=n^{-1/175}$ and noting $r(Q,\mathbf{h},n)\ll_{\varepsilon} n^{1/2+\varepsilon}$ then yields \eqref{general_DSP_approximation}. We now elucidate how this applies to our problem, first setting some notation. Let $\repgen(n)$ be the number of representations of $n$ as the sum of three generalized pentagonal numbers and $\repord(n)$ be the number of representations of $n$ as the sum of three positive pentagonal numbers. Let $q(\mathbf{x})=x_1^2+x_2^2+x_3^2$ be the sum of three squares quadratic form and $\repsquares(n)$ be the sum of three squares function, counting the number of solutions to $q(\mathbf{x})=n$ over $\mathbf{x}\in\ZZ^3$. Now let $\tilde{q}(\mathbf{x})=36q(\mathbf{x})$, which has level $N=144$, and set $\mathbf{h}=(-1/6,-1/6,-1/6)$. Define $\mathcal{E}=\{\mathbf{t}\in\RR^3:\tilde{q}(\mathbf{t})=1\}$ and ${\mathscr{F}=\{\mathbf{t}\in\mathcal{E}:t_i>0\}}$, wherein we have $\mu(\mathscr{F})=1/8$. Then, since $\sum_{i=1}^{3}p_5(m_i)=n$ is equivalent to $\tilde{q}(\mathbf{m}+\mathbf{h})=24n+3$ for $\mathbf{m}\in\ZZ^3$, we have \begin{align*} \repgen(n)=r(\tilde{q},\mathbf{h},24n+3),\quad \repord(n)=r(\tilde{q},\mathscr{F},\mathbf{h},24n+3). \end{align*} Our proof now proceeds directly from \eqref{general_DSP_approximation}. In our setting, the ``suitable'' $n$ are exactly those for which $v_3(24n+3)$ is bounded; we must treat the unbounded case separately. Using the formula $\repgen(n)=\frac{1}{8}(\repsquares(24n+3)-\mathbf{1}_{n\equiv1(3)}\repsquares((8n+1)/3))$ \cite[Theorem 3]{robbins_gen_pentagonal_formula} and the Siegel mass formula \cite{siegel_mass_formula}, we prove that $\repgen(n)\geq\frac{1}{12}\repsquares(24n+3)$ for all $n$. Siegel's (ineffective) estimate \cite{siegel_estimate} implies $\repsquares(24n+3)\gg_{\varepsilon} n^{1/2-\varepsilon}$, whence it follows from \eqref{general_DSP_approximation} that $\repord(n)\gg_{\varepsilon}n^{1/2-\varepsilon}$ for bounded $v_3(24n+3)$. We remark that one could alternatively demonstrate the existence of a primitive $\mathbf{x}\in\ZZ^3$ with $\sum_{i=1}^{3}p_5(x_i)=n$ to use \cite[Theorem 3(ii)]{DSP}; we have chosen to present the above argument instead since we suspect it to be more adaptable to a complete resolution of {Conjecture \ref{blecksmith_selfridge_conj}} (see Subsection \ref{subsect:tacking_full_conj}). For unbounded $v_3(24n+3)$, we require a different approach. For this regime, we present in Theorem \ref{explicit_lift} (a slight reformulation of) an explicit lift found by ChatGPT 5.6 Sol. In particular, noting that $v_3(24n+3)\geq9$ is equivalent to $n\equiv (3^8-1)/8\pmod{3^8}$, we find that a ternary \emph{generalized} pentagonal number representation $\mathbf{x}\in\ZZ^3$ of $3^{-8}(n-(3^8-1)/8)$, which we recall always exists \cite[pg.171]{guy_AMM}, may be lifted by one of five affine mappings to give a ternary positive pentagonal number representation of $n$. The specific affine map employed depends on the positivity of the $x_i$. \subsection{Tackling the full ternary pentagonal numbers conjecture}\label{subsect:tacking_full_conj} It is plausible that one could prove Conjecture \ref{blecksmith_selfridge_conj} using the methodology in \cite{DSP}, provided that one assumes an explicit lower bound $|L(1,\chi)|\gg n^{-\alpha}$ for some sufficiently small $\alpha>0$, where $\chi$ is the quadratic character associated with $\QQ(\sqrt{-24n-3})$. The mechanism we suggest is essentially to prove an explicit version of \cite[Theorem 1]{DSP} for $\repord(n)$, wherein we require the explicit lower bound on $|L(1,\chi)|$ to get a sufficiently strong explicit lower bound on $\repgen(n)$. For every $v\geq0$, let $P^{-}_v$ be a (symmetric) homogeneous harmonic polynomial of degree $v$ as in \cite[Lemma 1]{DSP}, with ${\mathscr{F}=\{\mathbf{t}\in\mathcal{E}:t_i>0\}}$ as before. The primary hurdle of getting an explicit version of \cite[Theorem 1]{DSP} is proving a bound of the form $|c_v(n)|\leq A_{\beta,v} n^{v/2+1/4+\beta}$ for every $v\geq1$ and some $0<\beta<1/4$, where $\sum_{v\geq1}24^{-v/2}A_{\beta,v}<\infty$ and \begin{align}\label{def_of_fourier_coeff} c_v(n)\defeq[\omega^{24n+3}]\sum_{\mathbf{x}\in\mathbf{h}+\ZZ^3}P_v^{-}(\mathbf{x})\omega^{\tilde{q}(\mathbf{x})}=[\omega^n]\sum_{\mathbf{x}\in\ZZ^3}P_v^{-}(\mathbf{x}-\mathbf{1}/6)\omega^{\sum_{i=1}^{3}p_5(x_i)}, \end{align} where $\omega=e^{2\pi iz}$ and $[\omega^m]F(\omega)$ denotes the $m$\textsuperscript{th} Fourier coefficient of $F(z)$. Indeed, by the construction of the $P^{-}_v$, we have \begin{align}\label{eqn_for_ineq_on_repord} \repord(n)=r(\tilde{q},\mathscr{F},\mathbf{h},24n+3)=\sum_{\substack{\mathbf{x}\in\mathbf{h}+\ZZ^3\\ \tilde{q}(\mathbf{x})=24n+3}}\mathbf{1}_{\mathscr{F}}(\mathbf{x}/\sqrt{24n+3})\geq \sum_{v\geq0}(24n+3)^{-v/2}c_v(n), \end{align} wherein the $v=0$ term will be the main term (which is $\repgen(n)$ times some constant close to $\mu(\mathscr{F})=1/8$) and the sum $\sum_{v\geq1}$ will be the error term, as described in the previous subsection. Of course, since the theta series on the left-hand side of \eqref{def_of_fourier_coeff} is a cusp form for $\Gamma_1(144)$ of weight $3/2+v$ if $v\geq1$ \cite[pg.52]{DSP}, the Ramanujan--Petersson conjecture for cusp forms of half-integral weight predicts that $c_v(n)\ll_{\varepsilon,v} n^{v/2+1/4+\varepsilon}$, though a bound of this strength is not necessary, and in particular the implied constants twisted by $24^{-v/2}$ are not necessarily summable in $v$. Provided that $\alpha+\beta<1/4$, one will see from \eqref{eqn_for_ineq_on_repord} that $\repord(n)>0$ for $n\geq C$ for some explicit constant $C$, leaving the integers less than $C$ to be checked by computer. Because we thus require $C$ not to be unreasonably large, we suggest proving an explicit bound for each $c_v(n)$ for a particular $\{P_v^{-}\}_v$, rather than proving a fully general explicit version of \cite[Theorem 1]{DSP}. We note that we have written the theta series on the right-hand side of \eqref{def_of_fourier_coeff} in this manner due to its close connection to a family of quasimodular forms that Ramanujan studied in his last notebook \cite[pg.369]{last_notebook}, which have recently garnered significant attention; we refer the reader to \cite{recursive_formulas,AMDEBERHAN_ONO_SINGH_2025,bringmann_pandey,applying_faa_di_bruno}. \section{Proof} We first set some standard notation. For a prime $p$ and an integer $m$, let $v_p(m)$ denote the $p$-adic valuation of $m$. Let $\QQ_p$ and $\ZZ_p$ denote the $p$-adic numbers and $p$-adic integers, respectively. We use the Vinogradov notations $\ll$ and $\gg$ interchangeably with the big $O$ and big $\Omega$ notations, respectively. When $\varepsilon$ appears in such an asymptotic notation, we mean that the asymptotic statement holds for all $\varepsilon>0$, and write $\varepsilon$ in the subscript of the asymptotic notation to indicate that the implied constant depends on $\varepsilon$. If the implied constant depends on other variables, we also include them in the subscript. We write $M^T$ to denote the transpose of a matrix $M$. \subsection{Handling Small $v_3(24n+3)$}\label{subsect:using_DSP} To approximate $\repord(n)$ by $\frac{1}{8}\repgen(n)$ using \cite[Theorem 1]{DSP}, we require that $24n+3$ has bounded $p$-adic valuation for each $p\mid N$ such that $\tilde{q}$ is isotropic over $\QQ_p$ and $\mathbf{h}\not\in \ZZ_p^3$; the only such prime is $p=3$. With this noted, it remains to verify that $\repgen(n)\gg_{\varepsilon} n^{1/2-\varepsilon}$. It is the requisite use of this bound that makes Theorem \ref{thm_via_DSP} ineffective. \begin{theorem}\label{thm_via_DSP} Every sufficiently large $n$ with $v_3(24n+3)\leq8$ is the sum of three positive pentagonal numbers. \end{theorem} \begin{proof} By \cite[Theorem 1]{DSP}, if $v_3(24n+3)\leq C$ for some fixed $C>0$, then, after noting the routine upper bound $r(Q,\mathbf{h}',n)\ll_{\varepsilon} n^{1/2+\varepsilon}$ for $Q$ an arbitrary positive-definite ternary quadratic form, we have the estimate \begin{align}\label{DSP_approximation} \repord(n)=\frac{1}{8}\repgen(n)+O_{\varepsilon,C}(n^{1/2-1/175+\varepsilon}). \end{align} We take $C=8$ in particular since the explicit lift given in Subsection \ref{subsect:explicit_lift} covers $v_3(24n+3)\geq9$. By \eqref{DSP_approximation}, it remains to show that $\repgen(n)\gg_{\varepsilon} n^{1/2-\varepsilon}$. We proceed in doing so by first invoking the formula $\repgen(n)=\frac{1}{8}\left(\repsquares(24n+3)-\repsquares((8n+1)/3)\right)$ recorded in \cite[Theorem 3]{robbins_gen_pentagonal_formula}, where ${\repsquares((8n+1)/3)}$ is understood to be zero if $n\not\equiv1\pmod{3}$. Then, recalling that $\repsquares(n)=r(\mathrm{gen}\,q,n)$ since $q$ is the only form in its genus up to integral equivalence, we use the Siegel mass formula \cite{siegel_mass_formula} to write $\repgen(n)$ in terms of $\repsquares(24n+3)$ times a factor that we verify to be bounded away from zero. Let \begin{align*} \alpha_p(q,n)\defeq \lim_{k\to\infty}p^{-2k}\#\left\{\mathbf{x}\in(\ZZ/p^k\ZZ)^3:q(\mathbf{x})\equiv n\bmod{p^k}\right\} \end{align*} be the usual $p$-adic density of the equation $q(\mathbf{x})=n$. By appealing to Legendre's three-square theorem and the Siegel mass formula \cite{siegel_mass_formula}, since $24n+3$ is odd and $24n+3\not\equiv 7\pmod{8}$, we have that $\repsquares(24n+3)\neq0$ and each $\alpha_p(q,24n+3)\neq0$. Observe that $\alpha_p(q,m^2 n)=\alpha_p(q,n)$ for $p\nmid m$, in view of the bijection $\mathbf{x}\mapsto m\mathbf{x}$ on $(\ZZ/p^k\ZZ)^3$. So \begin{align*} \frac{\repsquares((8n+1)/3)}{\repsquares(24n+3)}=\frac{\mathbf{1}_{n\equiv1(3)}\alpha_3(q,(8n+1)/3)\sqrt{(8n+1)/3}}{\alpha_3(q,24n+3)\sqrt{24n+3}}=\frac{\mathbf{1}_{n\equiv1(3)}\alpha_3(q,(8n+1)/3)}{3\alpha_3(q,24n+3)}. \end{align*} Thus, invoking $\repgen(n)=\frac{1}{8}\left(\repsquares(24n+3)-\repsquares((8n+1)/3)\right)$ from \cite[Theorem 3]{robbins_gen_pentagonal_formula} yields \begin{align}\label{repgen_formula} \repgen(n)=\frac{1}{8}\left(1-\frac{\mathbf{1}_{n\equiv1(3)}\alpha_3(q,(8n+1)/3)}{3\alpha_3(q,24n+3)}\right)\repsquares(24n+3). \end{align} In view of the formula $\alpha_3(q,m)=4/3-3^{-1-\lceil{(v_3(m)-1)}/{2}\rceil}-(\frac{m_3}{3})^{v_3(m)+1}3^{-\lfloor(v_3(m)+3)/2\rfloor}$ (see \cite[Theorem 1.3]{p_adic_density_comp}, for example) with $m_3=3^{-v_3(m)}m$, we see that $\alpha_3(q,m)\leq \alpha_3(q,9m)$. So \begin{align}\label{3_adic_contribution_nonzero} 1-\frac{\mathbf{1}_{n\equiv1(3)}\alpha_3(q,(8n+1)/3)}{3\alpha_3(q,24n+3)}\geq\frac{2}{3}. \end{align} We now conclude by remarking the ineffective (due to its reliance on Siegel's estimate \cite{siegel_estimate}) bound $\repsquares(24n+3)\gg_{\varepsilon} n^{1/2-\varepsilon}$, which may be seen in a multitude of ways. Since $2$ is the only prime $p$ such that $q$ is anisotropic over $\QQ_p$, we have that $24n+3$ is in \begin{align*} R_{1}(\text{gen}\, q)\defeq\left\{ m\in\NN:\alpha_p(q,m)\neq0\text{ for all primes }p,p\nmid m\text{ if }q\text{ is anisotropic over }\QQ_p\right\}. \end{align*} Thus, upon noting that $r(\mathrm{gen}\, q,n)$ and $r(\mathrm{gen}_4q,n)$ coincide since we have no congruence conditions, by \cite[Lemma 5(i)]{DSP}, we have $\repsquares(24n+3)=r(\text{gen}\, q,24n+3)\gg_{\varepsilon} n^{1/2-\varepsilon}$. Therefore, by \eqref{repgen_formula} and \eqref{3_adic_contribution_nonzero}, $\repgen(n)\gg_{\varepsilon} n^{1/2-\varepsilon}$, whence it follows from \eqref{DSP_approximation} that ${\repord(n)\gg_{\varepsilon} n^{1/2-\varepsilon}}$ for $v_3(24n+3)\leq 8$. \end{proof} \subsection{Handling Large $v_3(24n+3)$}\label{subsect:explicit_lift} With the integers $n$ with $v_3(24n+3)\leq 8$ handled in Subsection \ref{subsect:using_DSP} using \cite{DSP}, we now turn to the integers with $v_3(24n+3)\geq9$, presenting the following lift. \begin{theorem}\label{explicit_lift} Let $n$ be such that $v_3(24n+3)\geq9$, or equivalently, let $n\equiv (3^8-1)/8\pmod{3^8}$. Let $\mathbf{x}\in\ZZ^3$ be a solution to \begin{align*} p_5(x_1)+p_5(x_2)+p_5(x_3)=3^{-8}\left(n-(3^8-1)/8\right) \end{align*} and suppose without loss of generality that $p_5(x_1)\geq p_5(x_2)\geq p_5(x_3)$. Defining \\${\delta=(\mathbf{1}_{x_1>0},\mathbf{1}_{x_2>0},\mathbf{1}_{x_3>0})}$, now \begin{enumerate}[(i)] \item\label{case_1} set $\mathbf{y}=(76x_1-16x_2-23x_3-6, ~28x_1+41x_2+64x_3-22,~x_1+68x_2-44x_3-4)$ \\if $\delta=(1,1,1)$ or $\delta=(1,1,0)$, \item\label{case_2} set $\mathbf{y}=(76x_1+16x_2+23x_3-19,~28x_1-41x_2-64x_3+13,~x_1-68x_2+44x_3+4)$ \\ if $\delta=(1,0,1)$ or $\delta=(1,0,0)$, \item\label{case_3} set $\mathbf{y}=(-44x_1+40x_2-55x_3+10,\ {-20x_1}+55x_2+56x_3-15,~{-65x_1}-44x_2+20x_3+15)$ \\ if $\delta=(0,1,1)$ or $\delta=(0,1,0)$, \item\label{case_4} set $\mathbf{y}=(-17x_1-56x_2+56x_3+3,~{-56x_1}+49x_2+32x_3-4,~{-56x_1}-32x_2-49x_3+23)$ \\ if $\delta=(0,0,1)$, and \item\label{case_5} set $\mathbf{y}=(-44x_1-40x_2+55x_3+5,~{-20x_1}-55x_2-56x_3+22,~{-65x_1}+44x_2-20x_3+7)$ if $\delta=(0,0,0)$. \end{enumerate} Then $\mathbf{y}\in\ZZ_+^3$ and is a solution to $p_5(y_1)+p_5(y_2)+p_5(y_3)=n$. \end{theorem} \begin{proof} To see that each $y_i$ is positive for all $\delta$, see Table \ref{table_of_positivity}. Toward showing that $\sum_{i=1}^{3}p_5(y_i)=n$, define the matrices \begin{align}\label{five_matrices} &M_1=\begin{pmatrix} 76& -16& -23\\ 28&41&64\\ 1&68&-44 \end{pmatrix},\quad M_2=\begin{pmatrix} 76&16&23\\ 28&-41&-64\\ 1&-68&44 \end{pmatrix},\quad M_3=\begin{pmatrix} -44&40&-55\\ -20&55&56\\ -65&-44&20 \end{pmatrix}, \nonumber\\ &\phantom{dfjngdfkjgndk}M_4=\begin{pmatrix} -17&-56&56\\ -56&49&32\\ -56&-32&-49 \end{pmatrix},\quad M_5=\begin{pmatrix} -44&-40&55\\ -20&-55&-56\\ -65&44&-20 \end{pmatrix}. \end{align} We then note that each $M_i$ satisfies $M_i^{T}M_i=3^8 I$, and $6\mathbf{y}-\mathbf{1}=M(6\mathbf{x}-\mathbf{1})$ for all $\delta$, where \begin{align}\label{choose_M} M=\begin{cases} M_1& \delta\in\{(1,1,1),(1,1,0)\},\\ M_2 & \delta\in\{(1,0,1),(1,0,0)\},\\ M_3 & \delta\in\{(0,1,1),(0,1,0)\},\\ M_4& \delta=(0,0,1),\\ M_5 & \delta=(0,0,0). \end{cases} \end{align} Therefore \begin{align*} 24\sum_{i=1}p_5(y_i)+3&=\sum_{i=1}^{3}(6y_i-1)^2=||M(6\mathbf{x}-\mathbf{1})||^2=(6\mathbf{x}-\mathbf{1})^TM^TM(6\mathbf{x}-\mathbf{1})\\ &=(6\mathbf{x}-\mathbf{1})^T 3^8 I (6\mathbf{x}-\mathbf{1})=3^8\sum_{i=1}^{3}(6x_i-1)^2=3^8\left(24\sum_{i=1}^{3}p_5(x_i)+3\right). \end{align*} So $\sum_{i=1}^{3}p_5(y_i)=3^8\sum_{i=1}^{3}p_5(x_i)+(3^8-1)/8=n$. \end{proof} \begin{table}[!t] \centering \caption{Lower bounds on each $y_i$ in terms of $x_1$ for every $\delta$, and the inequality chains of the $x_i$ used to obtain them.} \label{table_of_positivity} \begin{tabular}{ |c|c|c| } \hline $\rule{0pt}{2ex}\delta$ & \rule{0pt}{2ex}Inequalities on $x_i$ & \rule{0pt}{2ex}Inequalities on $y_i$ \\ \hline $(1,1,1)$ & $x_1\geq x_2\geq x_3$ & $\begin{aligned} &\rule{0pt}{2ex}y_1\geq37x_1-6\\ &y_2\geq 28x_1+83\\ &y_3\geq x_1+20 \end{aligned}$\\ \hline $(1,1,0)$ & $x_1\geq x_2\geq -x_3+1$ & $\begin{aligned} &\rule{0pt}{2ex}y_1\geq 60x_1-6\\ &y_2\geq 5x_1+42\\ &y_3\geq x_1+64 \end{aligned}$\\ \hline $(1,0,1)$ & $x_1\geq -x_2+1\geq x_3+1$ & $\begin{aligned} &\rule{0pt}{2ex}y_1\geq 60x_1+20\\ &y_2\geq 5x_1+36\\ &y_3\geq x_1+116 \end{aligned}$\\ \hline $(1,0,0)$ & $x_1\geq -x_2+1\geq -x_3+1$ & $\begin{aligned} &\rule{0pt}{2ex}y_1\geq 37x_1+20\\ &y_2\geq 28x_1+13\\ &y_3\geq x_1+4 \end{aligned}$\\ \hline $(0,1,1)$ & $-x_1\geq x_2\geq x_3$ & $\begin{aligned} &\rule{0pt}{2ex}y_1\geq -29x_1+10\\ &y_2\geq -20x_1+96\\ &y_3\geq -21x_1+35 \end{aligned}$\\ \hline $(0,1,0)$ & $-x_1\geq x_2\geq -x_3+1$ & $\begin{aligned} &\rule{0pt}{2ex}y_1\geq -44x_1+50\\ &y_2\geq -19x_1+41\\ &y_3\geq -x_1+35 \end{aligned}$\\ \hline $(0,0,1)$ & $-x_1\geq -x_2\geq x_3$ & $\begin{aligned} &\rule{0pt}{2ex}y_1\geq -17x_1+115\\ &y_2\geq -7x_1+28\\ &y_3\geq -39x_1+23 \end{aligned}$\\ \hline $(0,0,0)$ & $-x_1\geq -x_2\geq -x_3$ & $\begin{aligned} &\rule{0pt}{2ex}y_1\geq -29x_1+5\\ &y_2\geq -20x_1+22\\ &y_3\geq -21x_1+7 \end{aligned}$\\ \hline \end{tabular} \end{table} \begin{comment} \begin{table}[!t] \centering \caption{Lower bounds on each $y_i$ in terms of $x_1$ for every $\delta$, and the inequality chains of the $x_i$ used to obtain them.} \label{table_of_positivity} \begin{tabular}{ |c|c|c| } \hline $\rule{0pt}{2ex}\delta$ & \rule{0pt}{2ex}Inequalities on $x_i$ & \rule{0pt}{2ex}Inequalities on $y_i$ \\ \hline $(1,1,1)$ & $x_1\geq x_2\geq x_3$ & $\begin{aligned} &\rule{0pt}{2ex}y_1=76x_1-16x_2-23x_3-6\geq60x_1-23x_3-6\geq37x_1-6\\ &y_2=28x_1+41x_2+64x_3-22\geq28x_1+105x_3-22\geq28x_1+83\\ &y_3=x_1+68x_2-44x_3-4\geq x_1+24x_3-4\geq x_1+20 \end{aligned}$\\ \hline $(1,1,0)$ & $x_1\geq x_2\geq-x_3+1$ & $\begin{aligned} &\rule{0pt}{2ex}y_1=76x_1-16x_2-23x_3-6\geq60x_1-23x_3-6\geq60x_1-6\\ &y_2=28x_1+41x_2+64x_3-22\geq28x_1-23x_2+42\geq5x_1+42\\ &y_3=x_1+68x_2-44x_3-4\geq x_1+68x_2-4\geq x_1+64 \end{aligned}$\\ \hline $(1,0,1)$ & $x_1\geq-x_2+1\geq x_3+1$ & $\begin{aligned} &\rule{0pt}{2ex}y_1=76x_1+16x_2+23x_3-19\geq60x_1+23x_3-3\geq60x_1+20\\ &y_2=28x_1-41x_2-64x_3+13\geq28x_1+23x_2+13\geq5x_1+36\\ &y_3=x_1-68x_2+44x_3+4\geq x_1+68+44x_3+4\geq x_1+116 \end{aligned}$\\ \hline $(1,0,0)$ & $x_1\geq-x_2+1\geq-x_3+1$ & $\begin{aligned} &\rule{0pt}{2ex}y_1=76x_1+16x_2+23x_3-19\geq76x_1+39x_2-19\geq37x_1+20\\ &y_2=28x_1-41x_2-64x_3+13\geq28x_1-64x_3+13\geq28x_1+13\\ &y_3=x_1-68x_2+44x_3+4\geq x_1-24x_2+4\geq x_1+4 \end{aligned}$\\ \hline $(0,1,1)$ & $-x_1\geq x_2\geq x_3$ & $\begin{aligned} &\rule{0pt}{2ex}y_1=-44x_1+40x_2-55x_3+10\geq-44x_1-15x_2+10\geq-29x_1+10\\ &y_2=-20x_1+55x_2+56x_3-15\geq-20x_1+111x_3-15\geq-20x_1+96\\ &y_3=-65x_1-44x_2+20x_3+15\geq-21x_1+20x_3+15\geq-21x_1+35 \end{aligned}$\\ \hline $(0,1,0)$ & $-x_1\geq x_2\geq-x_3+1$ & $\begin{aligned} &\rule{0pt}{2ex}y_1=-44x_1+40x_2-55x_3+10\geq-44x_1+40x_2+10\geq-44x_1+50\\ &y_2=-20x_1+55x_2+56x_3-15\geq-20x_1-x_2+41\geq-19x_1+41\\ &y_3=-65x_1-44x_2+20x_3+15\geq-65x_1-64x_2+35\geq-x_1+35 \end{aligned}$\\ \hline $(0,0,1)$ & $-x_1\geq-x_2\geq x_3$ & $\begin{aligned} &\rule{0pt}{2ex}y_1=-17x_1-56x_2+56x_3+3\geq-17x_1+56+56x_3+3\geq-17x_1+115\\ &y_2=-56x_1+49x_2+32x_3-4\geq-7x_1+32x_3-4\geq-7x_1+28\\ &y_3=-56x_1-32x_2-49x_3+23\geq-56x_1-17x_3+23\geq-39x_1+23 \end{aligned}$\\ \hline $(0,0,0)$ & $-x_1\geq-x_2\geq-x_3$ & $\begin{aligned} &\rule{0pt}{2ex}y_1=-44x_1-40x_2+55x_3+5\geq-44x_1+15x_2+5\geq-29x_1+5\\ &y_2=-20x_1-55x_2-56x_3+22\geq-20x_1-56x_3+22\geq-20x_1+22\\ &y_3=-65x_1+44x_2-20x_3+7\geq-21x_1-20x_3+7\geq-21x_1+7 \end{aligned}$\\ \hline \end{tabular} \end{table} \end{comment} \section*{AI Use} Having proven that every positive integer $n$ with bounded $v_3(24n+3)$ is the sum of three positive pentagonal numbers, we asked ChatGPT 5.6 Sol to prove that every integer congruent to $(9^{\lceil k/2\rceil}-1)/8\bmod{3^k}$ (which is equivalent to $v_3(8n+1)\geq k$) is the sum of three positive pentagonal numbers for $k$ sufficiently large. ChatGPT initiated a search for, and succeeded in finding, the five matrices $M_1,\dots,M_5$ given in \eqref{five_matrices} satisfying the properties $M_i^T M_i=3^8 I$ and $6\mathbf{y}-\mathbf{1}=M(6\mathbf{x}-\mathbf{1})$, where $M$ is as in \eqref{choose_M}. The proof of Theorem \ref{explicit_lift} is based on the argument provided by ChatGPT, though we have reformulated the statement and proof. All of the writing in the document is the author's own, and we take full responsibility for its mathematical correctness. \section*{Acknowledgments} We thank Peter Sarnak for suggesting the use of \cite{DSP} to approach the ternary pentagonal numbers conjecture. We are grateful to Alexander Dunn and Carl Schildkraut for helpful comments. \bibliography{main}{} \bibliographystyle{amsalpha} \end{document}