%% Lehmer's totient problem and the companion equation phi(n) | n+1 \documentclass[11pt,reqno]{amsart} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{amsmath,amssymb,amsthm,mathtools} \usepackage[kerning=true]{microtype} \usepackage{enumitem} \usepackage[margin=1.12in]{geometry} \usepackage{booktabs,array} \usepackage{graphicx} \usepackage{xcolor} \usepackage[colorlinks=true,linkcolor=blue!55!black,citecolor=blue!55!black,urlcolor=blue!55!black]{hyperref} \numberwithin{equation}{section} \raggedbottom \addtolength{\skip\footins}{0pt minus 3pt} \theoremstyle{plain} \newtheorem{theorem}{Theorem}[section] \newtheorem{lemma}[theorem]{Lemma} \newtheorem{proposition}[theorem]{Proposition} \newtheorem{corollary}[theorem]{Corollary} \theoremstyle{definition} \newtheorem{definition}[theorem]{Definition} \theoremstyle{remark} \newtheorem{remark}[theorem]{Remark} %% Release of the code that accompanies this paper. \newcommand{\releaseline}{, released as version 1.4.0 \cite{Data}} \title[Lehmer's totient problem] {Lehmer's totient problem with fewer than sixteen prime factors} \author{Deep Bhattacharjee} \address{Formerly, Electro-Gravitational Space Propulsion Laboratory (EGSPL), Bhubaneswar, Odisha 751030, India} \email{d.bhattacharjee@erl-forschung.de} \email{itsdeep@live.com} \urladdr{\textnormal{ORCID \href{https://orcid.org/0000-0003-0466-750X}{0000-0003-0466-750X}}} \subjclass[2020]{Primary 11A25; Secondary 11A41, 11A51, 11D68, 11N36, 11Y11, 11Y16, 11Y70} \keywords{Lehmer's totient problem, Euler's totient function, large sieve, Fermat primes} \date{} \begin{document} \begin{abstract} A composite number $n$ whose totient divides $n-1$ was known to have at least fourteen prime factors. We prove that it has at least sixteen, at least $16001$ if $(n-1)/\varphi(n)\ge3$, and more than $10^8$ if $3\mid n$, and that $n<2^{2^{k-7}}$ if $n$ has $k$ prime factors. For the companion equation $\varphi(n)\mid n+1$ we show that the nine known solutions are the only ones with at most eight prime factors, and that a further solution prime to $3$ has at least sixteen. Each statement is reduced by hand to a finite computation, which independent programs carry out. Lehmer's conjecture remains open, and we state the assertion that would settle it. \end{abstract} \maketitle %%================================================================== \section{Introduction}\label{sec:intro} %%================================================================== \subsection{Two questions of Lehmer} Every prime $p$ satisfies $\varphi(p)=p-1$, and so $\varphi(p)$ divides $p-1$. In 1932 Lehmer \cite{Leh32} asked whether any composite number $n$ has the same property, \begin{equation}\label{eq:first} \varphi(n)\mid n-1 . \end{equation} Nobody has found one, and nobody has shown that none exists. Lehmer proved that a composite solution of \eqref{eq:first} must be odd, squarefree and divisible by at least seven distinct primes. The question is Problem~B37 in Guy's collection \cite{Guy04}. Lehmer's paper also lists solutions of the companion equation\footnote{The comments to sequence A050474 of the OEIS \cite{OEIS} record this, and a misprint in Lehmer's summary where $3\cdot5\cdot353\cdot929$ stands for $83623935=3\cdot5\cdot17\cdot353\cdot929$.} \begin{equation}\label{eq:second} \varphi(n)\mid n+1 . \end{equation} The two equations differ only in a sign. Equation~\eqref{eq:first} has no known composite solution, whereas \eqref{eq:second} has the solutions \begin{equation}\label{eq:known} 1,\ 2,\ 3,\ 15,\ 255,\ 65535,\ 83623935,\ 4294967295,\ 6992962672132095, \end{equation} and no others are known. Except for $2$, each of them satisfies $n+1=2\varphi(n)$. Five of them are products of the first Fermat primes\footnote{The Fermat numbers $F_i=2^{2^i}+1$ are prime for $0\le i\le4$, and $F_0F_1\cdots F_{r-1}=2^{2^r}-1$. For $1\le r\le5$ the number $n=2^{2^r}-1$ is therefore a product of primes $F_i$, and $\varphi(n)=2^{1+2+\dots+2^{r-1}}=2^{2^r-1}=(n+1)/2$. The chain breaks at $r=6$ because $F_5=641\cdot6700417$, as Euler found.}, namely $3$, $15=3\cdot5$, $255=3\cdot5\cdot17$, $65535=3\cdot5\cdot17\cdot257$ and $4294967295=3\cdot5\cdot17\cdot257\cdot65537$. Apart from $1$ and $2$, the other two are $83623935=3\cdot5\cdot17\cdot353\cdot929$ and $6992962672132095=83623935\cdot83623937$. These numbers form sequence A203966 of the OEIS \cite{OEIS}. Much of the literature on \eqref{eq:first} concerns the number $\omega(n)$ of distinct prime factors of a composite solution. Pomerance \cite{Pom77} proved that a composite solution with $k$ prime factors satisfies $n1$ with $1^{n-1}+2^{n-1}+\dots+(n-1)^{n-1}\equiv-1\pmod n$ is prime. He showed that a composite $n$ satisfies this congruence exactly when $p\mid n/p-1$ and $p-1\mid n/p-1$ for every prime $p\mid n$; the second condition makes $n$ a Carmichael number.} More is known when the quotient $M=(n-1)/\varphi(n)$ exceeds $2$. Hagis \cite{Hag88} proved $\omega(n)\ge1991$ for $M=3$, and Grytczuk and W\'ojtowicz \cite{GW03} gave lower bounds for $\omega(n)$ that grow exponentially with $M\ge4$ (see \cite{Yam23} for both). The prime factors of a solution form what Golomb \cite{Gol55} called a $G$-sequence: none of them divides another minus one. Meijer \cite{Mei74}, who points out the connection with \eqref{eq:first}, proved with the Brun--Selberg sieve that the product of $p/(p-1)$ over the elements of a $G$-sequence up to $x$ is at most a constant times $\log\log x$. Yamada \cite{Yam23} made this explicit with the large sieve and deduced that $M<16.03235\log\log\omega(n)$ for every composite solution of $\varphi(n)\mid n\pm1$ with $\omega(n)\ge4$, so that $\omega(n)$ is at least doubly exponential in $M$. Norman \cite{Nor21} claimed that $M\ge3$ for every composite solution of \eqref{eq:first}, and hence $\omega(n)\ge1991$. The proof rests on \cite[Lemma~2.1]{Nor21}, which asserts that $\psi(G)/|G|^2>\varphi(m)/(2m)$ for every noncyclic nilpotent group $G$ of order $4m$ with $m$ odd and squarefree, where $\psi(G)$ is the sum of the orders of the elements of $G$. The lemma is false. For $G=C_2\times C_2\times C_m$ with $m$ prime to $3$ we have $\psi(G)=7\prod_{p\mid m}(p^2-p+1)$, since $\psi$ is multiplicative over factors of coprime order, and the ratio of $\psi(G)/|G|^2$ to $\varphi(m)/(2m)$ is $\frac78\prod_{p\mid m}\bigl(1+\frac1{p(p-1)}\bigr)$. The product over all primes $p\ge5$ is $\frac47\zeta(2)\zeta(3)/\zeta(6)=1.1106\ldots<\frac87$, so the ratio is less than $1$; for $m=5$ the two sides are $147/400$ and $2/5$. The proof of the lemma uses $\psi(V)/16\ge\frac12$ for the Sylow $2$-subgroup $V$, whereas $\psi(C_2\times C_2)=7$. The claim $M\ge3$ is therefore unproved; if it holds, Theorem~\ref{thm:first} below gives $\omega(n)\ge16001$ for every composite solution. Less is known about \eqref{eq:second}. The comments to sequences A050474 and A203966 of the OEIS \cite{OEIS} report that the M.Sc.\ thesis of Wong \cite{Won97} shows that a further solution of $n+1=2\varphi(n)$ would need at least eight prime factors, that there are no further solutions of $n+1=2\varphi(n)$ below $10^{31}$ and none of \eqref{eq:second} below $1.6\cdot10^{30}$ (Alekseyev), and that $(n+1)/\varphi(n)=3$ would force at least $33$ prime factors. None of this has appeared in a refereed paper, and we know of no refereed bound on $\omega(n)$ for \eqref{eq:second}. \subsection{Results} We write $\omega(n)$ for the number of distinct prime factors of $n$. Our first theorem goes one prime further than the bound announced by Renze and by Pinch, and its proof includes a complete proof of that bound. \begin{theorem}\label{thm:first} Let $n$ be composite with $\varphi(n)\mid n-1$. Then $\omega(n)\ge16$. If $(n-1)/\varphi(n)\ge3$, then $\omega(n)\ge16001$, and if $3\mid n$, then $\omega(n)>10^8$. \end{theorem} Apart from Norman's claim, we know of no earlier claim beyond fifteen prime factors in general. The second assertion raises the bound $1991$ of Hagis for the quotient $3$ to $16001$, and for $3\nmid n$ it also improves the bounds of Grytczuk and W\'ojtowicz for the quotients from $4$ to $7$. For $3\mid n$ the third assertion raises the bound of Burcsi, Czirbusz and Farkas from $40000000$ to more than $10^8$. Our second theorem bounds the size of a solution in terms of the number of its prime factors. \begin{theorem}\label{thm:size} Let $n$ be composite with $\varphi(n)\mid n-1$, let $k=\omega(n)$, and put $M=(n-1)/\varphi(n)$. \begin{enumerate}[label=\textup{(\roman*)}] \item $n<2^{2^{k-7}}$. \item If $M\ge3$, then $n<2^{2^{k-15981}}$. \item If $3\mid n$, then $n<2^{2^{k-10^8}}$. \end{enumerate} \end{theorem} Part (i) divides the number of binary digits allowed by the bound of Burek and \.Zmija by $2^7=128$. Together with Theorem~\ref{thm:first} it shows that a solution with sixteen prime factors, the first case not yet excluded, lies below $2^{512}<1.35\cdot10^{154}$. The other results concern \eqref{eq:second}. \begin{theorem}\label{thm:eight} The solutions of $\varphi(n)\mid n+1$ with $\omega(n)\le8$ are exactly the nine numbers \eqref{eq:known}. \end{theorem} \begin{theorem}\label{thm:coprime} Every solution of $\varphi(n)\mid n+1$ with $n>3$ and $3\nmid n$ has $\omega(n)\ge16$. \end{theorem} \begin{theorem}\label{thm:quotient} Let $n>3$ satisfy $\varphi(n)\mid n+1$ with $(n+1)/\varphi(n)\ge3$. Then $\omega(n)\ge16001$, and $\omega(n)>10^8$ if $3\mid n$. \end{theorem} The next theorem explains the list \eqref{eq:known}. Say that $n$ is a \emph{Fermat-type} solution if $n+1=2\varphi(n)$; by convention $n=1$ is one. \begin{theorem}\label{thm:ext} Let $n_0$ be a Fermat-type solution. \begin{enumerate}[label=\textup{(\roman*)}] \item For a prime $q\nmid n_0$, the number $n_0q$ is a Fermat-type solution if and only if $q=n_0+2$. \item For primes $p0$ with the following property. Let $n$ be composite with $\varphi(n)\mid n-1$, or let $n>3$ with $\varphi(n)\mid n+1$, and let $M$ be the quotient $(n-1)/\varphi(n)$ or $(n+1)/\varphi(n)$. Then \[ \omega(n)\ge\exp\bigl(\exp(cM)\bigr)-2 . \] \end{theorem} The first primes alone give only $\omega(n)\ge\exp(c'M)$, since the product of $p/(p-1)$ over the first $K$ primes grows like $\log K$. Theorem~\ref{thm:doubly} uses the fact that no prime factor of a solution divides another prime factor minus one, and it is proved by the large sieve (Section~\ref{sec:growth}). It explains why the bounds $16001$ and $10^8$ in Theorems~\ref{thm:first} and~\ref{thm:quotient} lie so far above the bounds $33$ and $1540$ that the first primes give. \subsection{Theory and computation} Every search in this paper rests on a theorem, proved by hand, that reduces the statement to finitely many cases and shows that the search covers all of them. The results divide as follows. \emph{Proved entirely by hand.} Theorem~\ref{thm:doubly} and Meijer's bound (Theorem~\ref{thm:sieve}), by the large sieve; the sharp product lemma (Theorem~\ref{thm:deficit}) and the size bound $n<2^{2^{k-2}}$ (Proposition~\ref{prop:hand}); the reductions of Section~\ref{sec:elem}, up to the evaluation of the explicit finite products in Lemmas~\ref{lem:three} and~\ref{lem:Mtwo}; parts (i) and (ii) of Theorem~\ref{thm:ext}; and the equivalence of Proposition~\ref{prop:equiv}. \emph{Proved by hand up to a finite computation.} \begin{itemize}[leftmargin=*] \item $\omega(n)\ge16$ in Theorem~\ref{thm:first}, and Theorem~\ref{thm:coprime}: the interval bounds, the divisibility condition for the last two primes and the completeness of the search (Propositions~\ref{prop:bounds} and~\ref{prop:last}, Theorem~\ref{thm:complete}, Corollary~\ref{cor:finite}), and the reduction of the last three primes to divisors in a residue class (Proposition~\ref{prop:class}, Theorem~\ref{thm:three}, Proposition~\ref{prop:fourdiv}), leave a search over at most fifteen primes, which ends in $33865004$ two-prime problems for fifteen (Section~\ref{sec:first}). \item The bounds $16001$ and $10^8$ in Theorems~\ref{thm:first} and~\ref{thm:quotient}: Corollary~\ref{cor:indep} reduces them to the branch-and-bound of Proposition~\ref{prop:indep}. \item Theorem~\ref{thm:size}: Corollary~\ref{cor:light} reduces part (i) to the tree $\mathcal T_7$ of $33678$ nodes (Theorem~\ref{thm:sizesearch}), and parts (ii) and (iii) to the evaluation of two explicit rational numbers. \item Theorem~\ref{thm:eight}: the same reductions leave $228260561$ two-prime problems for eight primes (Section~\ref{sec:eight}). \item Theorem~\ref{thm:ext}(iii): the factorisation of eight integers. \end{itemize} Every search was carried out by at least two programs written independently, and every count reported here is the same for all of them (Section~\ref{sec:checks}). A search that finds nothing proves something only if it would have found what it looks for, and the programs were therefore also run on equations that have solutions. \subsection{Scope} Theorems~\ref{thm:first}--\ref{thm:doubly} bound the number of prime factors and the size of a new solution and describe the known ones; they do not decide whether \eqref{eq:first} has a composite solution or whether \eqref{eq:second} has solutions beyond \eqref{eq:known}. Section~\ref{sec:open} estimates the cost of the next cases and states the assertion, equivalent to Lehmer's conjecture, that this paper does not prove. \subsection{Method} The bound $\omega(n)\ge16$ of Theorem~\ref{thm:first} and Theorems~\ref{thm:eight} and~\ref{thm:coprime} rest on three reductions proved in Sections~\ref{sec:elem} to~\ref{sec:three}. The first (Section~\ref{sec:elem}) shows that one may assume $n+\varepsilon=2\varphi(n)$, with $\varepsilon=-1$ for Lehmer's equation and $\varepsilon=+1$ for the companion, and, except in Theorem~\ref{thm:eight}, that $3\nmid n$. The second (Section~\ref{sec:search}) shows that once the first $j$ prime factors are fixed, the next one lies in an interval whose ends are explicit functions of them (Proposition~\ref{prop:bounds}), that for each $k$ only finitely many sequences of primes satisfy these conditions (Corollary~\ref{cor:finite}), and that the last two prime factors are determined by a divisibility condition (Proposition~\ref{prop:last}). Each value of $k$ is therefore a finite problem, and the traversal of an explicit finite tree finds every solution (Theorem~\ref{thm:complete}). The bounds for the two signs of $\varepsilon$ differ only by terms of size $1/\varphi(n)$; for $p_1\ge5$ they give identical trees for every $k\le14$, and for $k=15$ the same nodes down to depth $13$ (Figure~\ref{fig:profile}). The third reduction (Section~\ref{sec:three}) treats the last three primes together: once $p_{k-2}$ is fixed, the last two correspond to a divisor of an explicit integer $N$ in a known residue class modulo an integer $c$ (Proposition~\ref{prop:class}). Such divisors are the lattice points of a coset near a hyperbola (Lemmas~\ref{lem:box} and~\ref{lem:firsthit}). Since the two complementary divisors lie in the same class, their sum lies in a single class modulo $c$, which reduces the problem to one square test for each value of the sum (Section~\ref{sec:sum}), and when $c^3\ge N+2c^2$ there are at most four such divisors (Proposition~\ref{prop:fourdiv}). With these reductions the case $k\le14$ becomes a tree of at most $31962$ nodes and the case $k=15$ a set of $33865004$ problems of this kind, which we solved by computer. One of the routes never factors an integer, so that for every $k\le15$ the conclusion depends on no primality proof. The companion equation with eight prime factors and $3\mid n$ behaves differently. After the Fermat primes $3,5,17,257,65537$ the product $\prod p/(p-1)$ falls short of $2$ by only $2^{-31}$, the interval for the sixth prime has length $2^{33}$, and each of the $1.3\cdot10^8$ admissible choices of that prime leaves a two-prime problem whose modulus is far below the cube root of the integer to be split. We treat these problems by the sum route of Section~\ref{sec:sum}, combined with trial division for the small divisors and sieved by congruences that primes satisfy, and we settle the $1967265$ cases in which this would be slow by factoring the integer completely, with every prime factor proved prime (Section~\ref{sec:eight}). Theorem~\ref{thm:ext} rests on a short identity together with the factorisation of eight integers. The bounds for a quotient of at least $3$ and for $3\mid n$, in Theorems~\ref{thm:first} and~\ref{thm:quotient}, come from independence. The prime factors of a solution form a set in which no prime divides another minus one, and over such a set the product of $p/(p-1)$ grows only like the double logarithm of its size (Theorem~\ref{thm:sieve}). A branch-and-bound over these sets (Proposition~\ref{prop:indep}) shows that such a set must be very large before the product reaches $3$, as it must when the quotient is at least $3$ and $3\nmid n$, or reaches $\frac83$ with all its primes congruent to $2$ modulo $3$, as it must for the prime factors other than $3$ when $3\mid n$. Theorem~\ref{thm:size} is proved in Section~\ref{sec:size}. Its first ingredient is a sharp form of the lemma of Cook and Nielsen (Theorem~\ref{thm:deficit}), in which the bound for the product of the remaining prime factors depends on how far the product $\prod p/(p-1)$ over the prime factors already chosen falls short of $M$. This lemma alone gives $n<2^{2^{k-2}}$ (Proposition~\ref{prop:hand}), and more generally $n<2^{2^{k-s}}$ for every solution whose first prime factors are small in a precise sense. In every other solution the prime factors grow rapidly, and for $s=7$ an exhaustive search over their possible initial segments, which visits $33678$ of them, shows that there are none. Parts (ii) and (iii) combine the lemma of Cook and Nielsen with Proposition~\ref{prop:indep}. The paper is organised as follows. Section~\ref{sec:elem} proves the reductions, the bounds for large quotients and for $3\mid n$, Theorem~\ref{thm:quotient}, and, by the large sieve, Theorem~\ref{thm:doubly}. Section~\ref{sec:search} proves the interval bounds and the completeness of the search, and Section~\ref{sec:three} the reduction of the last three primes to divisors in a residue class. Section~\ref{sec:first} completes the proof of Theorem~\ref{thm:first}, Section~\ref{sec:size} proves Theorem~\ref{thm:size}, and Section~\ref{sec:second} proves Theorems~\ref{thm:eight}, \ref{thm:coprime} and~\ref{thm:ext}. Section~\ref{sec:checks} summarises the checks on the computations, and Section~\ref{sec:open} states the assertion that remains open. \subsection*{Notation} Throughout, $n=p_1p_2\cdots p_k$ with primes $p_1<\dots1$ satisfy $\varphi(n)\mid n+\varepsilon$ and put $M=(n+\varepsilon)/\varphi(n)$. Suppose $n$ is composite if $\varepsilon=-1$, and $n>3$ if $\varepsilon=+1$. \begin{enumerate}[label=\textup{(\roman*)}] \item $n$ is odd, squarefree and composite, and $M\ge2$. \item For primes $p,q$ dividing $n$, possibly equal, $p\nmid q-1$ and $p\nmid M$. \item $\displaystyle\prod_{p\mid n}\frac{p}{p-1} =M-\frac{\varepsilon}{\varphi(n)}$. \end{enumerate} \end{lemma} \begin{proof} If $n>2$ is even then $\varphi(n)$ is even and $n+\varepsilon$ is odd. If $p^2\mid n$ then $p$ divides $\varphi(n)$, hence $n+\varepsilon$, which is impossible since $p\mid n$. For $\varepsilon=+1$ a prime solution satisfies $n-1\mid2$, so $n\le3$; thus $n$ is composite in both cases. For odd squarefree composite $n$ we have $\varphi(n)4$: for $\varepsilon=-1$ because $n/\varphi(n)=M+1/\varphi(n)$ by Lemma~\ref{lem:basic}(iii), and for $\varepsilon=+1$ because then $M\ge5$ and $n/\varphi(n)=M-1/\varphi(n)\ge5-\tfrac12$. On the other hand, if $q_13$ satisfy $\varphi(n)\mid n+1$ with $\omega(n)\le7$. Then $n+1=2\varphi(n)$. \end{corollary} \begin{proof} Let $k=\omega(n)\ge2$. The prime factors of $n$, in increasing order, are at least $3,r_1,\dots,r_{k-1}$, and Lemma~\ref{lem:basic}(iii) gives, as in the proof of Lemma~\ref{lem:Mtwo}, \[ M\le\frac32\prod_{ip$ and $q\not\equiv1$ modulo every element of $S$ the \emph{candidates} for $S$. If $|S|2$. The product of $p/(p-1)$ over the six smallest primes from $5$ on is $1.9490\ldots$, so $k\ge7$ and $\varphi(n)\ge4\cdot6\cdot10\cdot12\cdot16\cdot18\cdot22>10^6$. Hence $n/\varphi(n)>2.999999$, and Proposition~\ref{prop:indep}(i) gives $k>16000$. (ii) By Lemma~\ref{lem:three}, $M\ge4$, and the $k-1$ prime factors other than $3$ are congruent to $2$ modulo $3$. The product of $p/(p-1)$ over them is $\frac23\,n/\varphi(n)=\frac23(M+1/\varphi(n))>\frac83$, so $k-1>10^8$ by Proposition~\ref{prop:indep}(ii). (iii) By Lemma~\ref{lem:three}, $M\ge5$, and the prime factors other than $3$ are as in (ii). The product over them is $\frac23(M-1/\varphi(n))\ge\frac{10}3-\frac2{3\varphi(n)}\ge3$, while over the five smallest primes $p\equiv2\pmod3$ from $5$ on it is $1.5818\ldots$. So there are at least six of them, $\varphi(n)\ge2\cdot4\cdot10\cdot16\cdot22\cdot28\cdot40>10^6$, and the product exceeds $\frac{10}3(1-10^{-6})$. Proposition~\ref{prop:indep}(iii) gives $k-1>10^8$. \end{proof} For $\varepsilon=-1$, part (ii) improves the bound $\omega(n)\ge40000000$ of Burcsi, Czirbusz and Farkas \cite{BCF11}, who completed sequences of primes $p\equiv2\pmod3$ in a similar way by the least primes allowed. Part (i) replaces the bound $33$ that the products over the first primes give, and for $M=3$ the bound $1991$ of Hagis \cite{Hag88}; part (iii) replaces the bound $1540$ that the products give. \begin{proof}[Proof of Theorem~\ref{thm:quotient} and of the last two assertions of Theorem~\ref{thm:first}] Let $n$ satisfy \eqref{eq:first} or \eqref{eq:second}, with $n$ composite in the first case and $n>3$ in the second. If $3\nmid n$ and $M\ge3$, then $\omega(n)\ge16001$ by Corollary~\ref{cor:indep}(i). If $3\mid n$, then $\omega(n)>10^8$ by Corollary~\ref{cor:indep}(ii) for \eqref{eq:first}, where $M\ge4$ holds automatically, and by Corollary~\ref{cor:indep}(iii) for \eqref{eq:second} when $M\ge3$. \end{proof} By Corollary~\ref{cor:indep}, a solution with at most $16000$ prime factors has $M=2$, and if it solves \eqref{eq:first} it is prime to $3$. The searches below concern the case $n+\varepsilon=2\varphi(n)$. \begin{figure}[t] \centering \includegraphics[width=0.9\textwidth]{figures/fig_products.png} \caption{The product of $p/(p-1)$ over the first $k$ primes of a list (solid) and over the independent set chosen from the same list one prime at a time (dashed), for the primes below $2\cdot10^8$, with $k$ on a logarithmic scale. Where a list has both curves, the largest product over an independent set of $k$ of its primes lies between them. (a)~For the primes from $5$ on the product passes $2$ at $k=7$, so a solution of \eqref{eq:M2} prime to $3$ has at least seven prime factors (Section~\ref{sec:first}), and $3$ at $k=33$ (Lemma~\ref{lem:Mtwo}); for the odd primes it passes $3$ at $k=8$, where the argument of Corollary~\ref{cor:seven} stops. The independent set passes $3$ only at $k=100470$, and no independent set of primes from $5$ on reaches $3$ before $k=16001$ (open circle). (b)~For $3$ and the primes $p\equiv2\pmod3$ the product passes $4$ at $k=1540$ (Lemma~\ref{lem:three}), and no independent set formed by $3$ and such primes reaches $4$ before $k=10^8+2$ (open circle).} \label{fig:products} \end{figure} \subsection{The growth of independent sets}\label{sec:growth} Proposition~\ref{prop:indep} needs a search because the product of $p/(p-1)$ over an independent set grows very slowly with the size of the set. Over the first $K$ primes the product is asymptotic to $e^{\gamma}\log K$ by Mertens' theorem, so that the products alone give only $\omega(n)\ge\exp(c'M)$ for some $c'>0$. Over an independent set of $K$ primes the product is at most a constant multiple of $\log\log K$, and this forces $\omega(n)$ to be at least doubly exponential in $M$ (Theorem~\ref{thm:doubly}). For a set $S$ of primes and $x\ge2$ put \[ P_S(x)=\prod_{p\in S,\ p\le x}\frac p{p-1},\qquad \delta_S(x)=\prod_{p\in S,\ p\le x}\Bigl(1-\frac1{p-1}\Bigr). \] An independent set with at least two elements does not contain $2$, since $2$ divides $q-1$ for every odd prime $q$. For a set $S$ of odd primes every factor of $\delta_S(x)$ is at least $\frac12$, and since $\frac p{p-1}\bigl(1-\frac1{p-1}\bigr)=1-\frac1{(p-1)^2}$, \begin{equation}\label{eq:deltaP} \delta_S(x)\,P_S(x)\le1 . \end{equation} \begin{theorem}[Meijer \cite{Mei74}]\label{thm:sieve} There is an absolute constant $c_0$ such that every independent set $S$ of $K\ge3$ primes satisfies \[ \prod_{p\in S}\frac p{p-1}\le c_0\log\log K . \] \end{theorem} Meijer proved the bound $P_S(x)\le c\log\log x$ with the Brun--Selberg sieve, and Yamada \cite{Yam23} gave explicit constants with the large sieve. We include a short proof by the large sieve, with constants left unspecified. Each element $p$ of $S$ excludes from $S$ the primes congruent to $1$ modulo $p$, so that a prime above $x$ can belong to $S$ only if it avoids one residue class modulo every element of $S$ up to $x$; the large sieve bounds the number of such primes by $\delta_S(x)$ times the number of all primes in the range. \begin{lemma}\label{lem:sievestep} Let $S$ be an independent set of odd primes and $N\ge2^{88}$. Then \[ \#\{q\in S:\ N^{1/44}z$; in every case $g(p)\le6/p$. Let $\Pi$ be the product of the primes up to $z$ and put $\sigma=1/\log z$, so that $Q^{\sigma}=e^{22}$. Then $L$ is the sum of $G(q)$ over the divisors $q\le Q$ of $\Pi$. A divisor $q>Q$ has $(q/Q)^{\sigma}>1$, and so \[ \sum_{q\mid\Pi,\ q>Q}G(q)\le Q^{-\sigma}\sum_{q\mid\Pi}G(q)\,q^{\sigma} =e^{-22}\prod_{p\le z}\bigl(1+g(p)p^{\sigma}\bigr). \] For $p\le z$ we have $0<\sigma\log p\le1$, hence $p^{\sigma}-1\le(e-1)\sigma\log p$ by convexity, and $1+g(p)p^{\sigma}\le\bigl(1+g(p)\bigr)\exp\bigl(g(p)(p^{\sigma}-1)\bigr)$. With $g(p)\le6/p$ and the elementary bound\footnote{Let $m=\lfloor z\rfloor$. Legendre's formula gives $\log m!\ge\sum_{p\le m}\lfloor m/p\rfloor\log p >m\sum_{p\le m}(\log p)/p-\sum_{p\le m}\log p$, while $\log m!\le m\log m$ and $\sum_{p\le m}\log pQ$ contribute less than a third of this sum, and $L>\frac23\prod_{p\le z}(1+g(p))$. Finally $1+g(p)=p/(p-1)$ for $p\notin S$ and $1+g(p)=\frac p{p-1}\bigl(1-\frac1{p-1}\bigr)^{-1}$ for $p\in S$, so that \[ \prod_{p\le z}\bigl(1+g(p)\bigr) =\frac1{\delta_S(z)}\prod_{p\le z}\Bigl(1-\frac1p\Bigr)^{-1} >\frac{\log z}{\delta_S(z)}, \] since the product $\prod_{p\le z}(1-1/p)^{-1}$ is at least $\sum_{n\le z}1/n>\log z$. With $\log z=(\log N)/44$ we obtain $L>\log N/(66\,\delta_S(z))$, and the large sieve, with $N+Q^2=2N$, gives the lemma. \end{proof} \begin{lemma}\label{lem:sievesum} Let $S$ be an independent set of odd primes and $y\ge2^{88}$. Then \[ \sum_{q\in S,\ yy$ and $\delta_S$ is decreasing. Each of these elements exceeds $2^{i-1}$, so their reciprocals add up to at most \[ \frac{132\cdot2^i\,\delta_S(y^{1/44})}{2^{i-1}\,i\log2} =\frac{264\,\delta_S(y^{1/44})}{i\log2}. \] Since $\sum_{ay_0$ let $j$ be the least index with $y_j\ge x$. Then $2^{j-1}\log y_0<\log x$, and $P_S(x)\le a_j\le c_3+2c_2\bigl(1+\log_2(\log x/\log y_0)\bigr)$. Together with $P_S(x)\le a_0\le c_3$ for $x\le y_0$, this gives $P_S(x)\le c_4\log\log x$ for all $x\ge3$, with an absolute constant $c_4$. Now let $S$ have $K\ge3$ elements, so that its elements are odd. At most $K$ of them exceed $K^2$, and each of those contributes a factor at most $1+1/K^2$, so that together they contribute less than $e^{1/K}<2$. Hence \[ \prod_{p\in S}\frac p{p-1}<2P_S(K^2)\le2c_4\log\log K^2 =2c_4(\log2+\log\log K)\le20\,c_4\log\log K, \] since $\log2<9\log\log3$. \end{proof} \begin{proof}[Proof of Theorem~\ref{thm:doubly}] Let $n$ be as in Lemma~\ref{lem:basic} and $k=\omega(n)\ge2$. The prime factors of $n$ form an independent set, and $n/\varphi(n)$ is the product of $p/(p-1)$ over them. If $k\ge3$, Theorem~\ref{thm:sieve} and Lemma~\ref{lem:basic}(iii) give $M\le c_0\log\log k+1/\varphi(n)<(c_0+3)\log\log(k+2)$, since $\log\log5>\frac13$. If $k=2$, then $n/\varphi(n)\le\frac32\cdot\frac54$ and $\varphi(n)\ge8$, so that $M\le2<7\log\log4$. In both cases $\log\log(k+2)\ge cM$ with $c=1/\max\{c_0+3,7\}$, which is the assertion. \end{proof} The constants in Theorems~\ref{thm:sieve} and~\ref{thm:doubly} are effective but large, and the numerical bounds of Corollary~\ref{cor:indep} come from Proposition~\ref{prop:indep}, not from the sieve. What the sieve explains is the shape of those bounds. Heuristically, the elements of $S$ up to $x$ leave a proportion $\delta_S(x)$ of the primes near $x$ available, and a set that takes every available prime gains $\log P_S$ at the rate $\delta_S(x)\,d\log\log x$, since $\sum_{q\le x}1/q$ grows like $\log\log x$. The derivative of $P_S$ with respect to $\log\log x$ is then $\delta_S(x)P_S(x)$, which is at most $1$ by \eqref{eq:deltaP}, so that $P_S(x)$ grows at most like $\log\log x$, the rate of Theorem~\ref{thm:sieve}. The independent sets chosen one prime at a time in Section~\ref{sec:indep} grow at this rate (Table~\ref{tab:greedy}). Between $x=10^3$ and $x=10^8$ the product of $p/(p-1)$ over the elements up to $x$ differs from a linear function of $\log\log x$ by less than $0.003$, with slope $0.82$ for the primes from $5$ on and $0.41$ for the primes $p\equiv2\pmod3$, which are half of all primes. The first set needs $100470$ primes to reach the product $3$, where the first primes from $5$ on need $33$, and the second has not reached $\frac83$ below $2\cdot10^8$ (Section~\ref{sec:indep}). This is why the bounds of Corollary~\ref{cor:indep} exceed $33$ and $1540$ by so much. \begin{table}[ht] \centering \caption{The independent sets chosen one prime at a time from the primes from $5$ on and from the primes $p\equiv2\pmod3$ from $5$ on: the number of elements up to $x$ and the product of $p/(p-1)$ over them.} \label{tab:greedy} \smallskip \small \begin{tabular}{@{}rrrrrr@{}} \toprule & & \multicolumn{2}{c}{primes from $5$ on} & \multicolumn{2}{c}{$p\equiv2\pmod3$} \\ \cmidrule(lr){3-4}\cmidrule(l){5-6} $x$ & $\log\log x$ & elements & product & elements & product \\ \midrule $10^3$ & $1.933$ & $62$ & $2.3430$ & $45$ & $1.6489$ \\ $10^4$ & $2.220$ & $407$ & $2.5792$ & $293$ & $1.7626$ \\ $10^5$ & $2.443$ & $2\,908$ & $2.7593$ & $2\,185$ & $1.8564$ \\ $10^6$ & $2.626$ & $22\,602$ & $2.9078$ & $17\,396$ & $1.9328$ \\ $10^7$ & $2.780$ & $183\,730$ & $3.0344$ & $142\,723$ & $1.9979$ \\ $10^8$ & $2.913$ & $1\,538\,281$ & $3.1447$ & $1\,207\,989$ & $2.0546$ \\ \bottomrule \end{tabular} \end{table} %%================================================================== \section{Intervals for the prime factors}\label{sec:search} %%================================================================== Fix $k\ge2$, a sign $\varepsilon$, and a squarefree odd $n=p_1\cdots p_k$ with \begin{equation}\label{eq:M2} n+\varepsilon=2\varphi(n). \end{equation} By Lemma~\ref{lem:basic}(iii), \begin{equation}\label{eq:excess} \prod_{i=1}^{k}\frac{p_i}{p_i-1}=2-\frac{\varepsilon}{\varphi(n)} . \end{equation} For $\varepsilon=-1$ the product lies just above $2$, and for $\varepsilon=+1$ just below it. Everything in this section is a consequence of \eqref{eq:excess}, and the two signs are treated together. \begin{proposition}\label{prop:below2} $P_j<2$ for every $j1+1/(n-1)$, and the remaining factors exceed $1$, so $P_k>2\bigl(1+1/(n-1)\bigr)=2+1/\varphi(n)$ by \eqref{eq:M2}, contradicting \eqref{eq:excess}. \end{proof} At depth $j$ put $T=2/P_j$, which exceeds $1$ by the proposition, and \[ C_j=2B_j-A_j,\qquad T-1=\frac{C_j}{A_j}. \] Thus $C_j$ is a positive integer, and $C_j/A_j$ measures how far the primes chosen so far fall short of the target $2$. \begin{proposition}\label{prop:bounds} Let $0\le j\le k-2$, $m=k-j$, $W=(p_j+1)^m$ and $x=p_{j+1}/(p_{j+1}-1)$. Then \begin{equation}\label{eq:bounds} \begin{aligned} &x^m>T \quad\text{and}\quad xj}p_i/(p_i-1)$. By \eqref{eq:excess}, \[ \rho=\frac{2-\varepsilon/\varphi(n)}{P_j} =T-\frac{\varepsilon}{P_j\varphi(n)} . \] There are $m\ge2$ factors in $\rho$; each exceeds $1$ and none exceeds $x$, because $p/(p-1)$ decreases in $p$. Hence $x<\rho\le x^m$. The remaining primes are odd and larger than $p_j$ (larger than $2$ when $j=0$), so $p_i-1\ge p_j+1$ for $i>j$, and $\varphi(n)=B_j\prod_{i>j}(p_i-1)\ge B_jW$. Therefore \[ 0<\frac{1}{P_j\varphi(n)}\le\frac{1}{P_jB_jW}=\frac1{A_jW}, \] and the four inequalities follow from $x<\rho\le x^m$. Finally, for $\varepsilon=+1$ the quantity $T-1/(A_jW)$ exceeds $1$, since $T-1=C_j/A_j\ge1/A_j$. \end{proof} Apart from the correction terms, \eqref{eq:bounds} says $xp_j$ be a prime that satisfies the inequality for $x^m$ in \eqref{eq:bounds}. Then $p_{j+1}<1+3(k-j)B_j/C_j<4kA_j$. If $n=p_1\cdots p_k$ satisfies \eqref{eq:M2}, then moreover $p_k\le2B_{k-1}+1$, and \[ A_j<(4k)^{2^j}\quad(0\le j\le k),\qquad n<(4k)^{2^k}. \] \end{corollary} \begin{proof} Let $m=k-j$ and $x=p_{j+1}/(p_{j+1}-1)$, so that $p_{j+1}-1=1/(x-1)$. By \eqref{eq:bounds}, $x^m\ge T'$, where $T'=T$ if $\varepsilon=-1$ and $T'=T-1/(A_jW)$ if $\varepsilon=+1$. As $T-1=C_j/A_j$ with $C_j\ge1$, and $W\ge4$, in both cases $T'-1\ge(C_j-\frac14)/A_j\ge3C_j/(4A_j)>0$ and $T'\le T$. For $t>1$ we have $t^{1/m}-1=(t-1)/\sum_{iT$ reads $p^mA_j>2B_j(p-1)^m$. A floating-point estimate is used only to find a starting point, which is then corrected by exact comparisons. \begin{lemma}[congruence prune]\label{lem:prune} No prime factor of $n$ divides $p-1$ for another prime factor $p$ of $n$. \end{lemma} This is Lemma~\ref{lem:basic}(ii). A candidate $p$ for $p_{j+1}$ is discarded if $p\mid p_i-1$ or $p_i\mid p-1$ for some $i\le j$. The primes of the interval $[L_j,U_j]$ that are not discarded are called \emph{admissible}. The last two primes are determined together by a divisibility condition. \begin{proposition}\label{prop:last} Let $A=A_{k-2}$, $B=B_{k-2}$, $C=2B-A$, $p=p_{k-1}$ and $q=p_k$. Then \begin{equation}\label{eq:last} t:=Cp-2B>0,\qquad t\mid Ap+\varepsilon,\qquad q=1+\frac{Ap+\varepsilon}{t}, \end{equation} and equivalently \begin{equation}\label{eq:hyperbola} (Cp-2B)(Cq-2B)=2AB+\varepsilon C . \end{equation} \end{proposition} \begin{proof} Equation \eqref{eq:M2} reads $Apq+\varepsilon=2B(p-1)(q-1)$. Collecting the terms in $q$ gives $q\,(Cp-2B)=2B(p-1)+\varepsilon$. The right-hand side is positive, so $t>0$, and $q-1=\bigl(2Bp-2B+\varepsilon-Cp+2B\bigr)/t=(Ap+\varepsilon)/t$. Multiplying $Cpq-2B(p+q)+2B-\varepsilon=0$ by $C$ and completing the product gives $(Cp-2B)(Cq-2B)=4B^2-2BC+\varepsilon C=2AB+\varepsilon C$. \end{proof} Once $p_1,\dots,p_{k-2}$ are fixed, the prime $p_{k-1}$ runs over the interval of Proposition~\ref{prop:bounds} with $m=2$, and for each candidate $p$ the last prime is determined by \eqref{eq:last}. Alternatively, by \eqref{eq:hyperbola}, $t$ is a divisor of the integer \[ D=2AB+\varepsilon C \] lying in a known residue class modulo $C$, so the candidates can be read off from the divisors of $D$ when $D$ can be factored. The first route costs time proportional to the length of the interval, the second the cost of factoring $D$. Figure~\ref{fig:search} summarises the procedure. \begin{figure}[t] \centering \includegraphics[width=\textwidth]{figures/fig_search.png} \caption{The search for $n=p_1\cdots p_k$ with $n+\varepsilon=2\varphi(n)$. A node at depth $j$ is an increasing sequence of primes $p_1<\dots0$, that $t\mid Ap+\varepsilon$, that $q=1+(Ap+\varepsilon)/t$ is a prime larger than $p$, that $p$ and $q$ pass the congruence prune, and finally that \eqref{eq:M2} holds exactly. \begin{theorem}[completeness]\label{thm:complete} If $n=p_1\cdots p_k$ with primes $p_{\min}\le p_1<\dotsN^{1/3}$,\footnote{In the form used here: if $0\le rN^{1/3}$, then at most $11$ positive divisors of $N$ are congruent to $r$ modulo $c$. The bound counts all divisors in the class, not only those up to $\sqrt N$.} and gave a polynomial-time algorithm to find them; Coppersmith, Howgrave-Graham and Nagaraj \cite{CHN08} extended the algorithmic side down to $c>N^{1/4+\delta}$. We use a more elementary method suited to our range, and in Section~\ref{sec:sum} a still simpler one based on the fact that $t$ and $N/t$ lie in the same class. \subsection{Lattice points near a hyperbola}\label{sec:lattice} Let $r'$ be the residue of $Nr^{-1}$ modulo $c$, so that $r'=r$ in the situation of Proposition~\ref{prop:class}, and put \[ w=\frac{N-rr'}{c},\qquad \alpha\equiv wr^{-1},\qquad \beta\equiv r'r^{-1}\pmod c . \] A divisor $t\equiv r$ is written $t=r+cu$ with $u\ge0$, and then $N/t=r'+cv$ for an integer $v$. Expanding $(r+cu)(r'+cv)=N$ gives \begin{equation}\label{eq:uv} c\,uv+r'u+rv=w , \end{equation} so the pairs $(u,v)$ are the lattice points on a hyperbola. Reducing \eqref{eq:uv} modulo $c$ shows that each of them lies in the coset \begin{equation}\label{eq:coset} v\equiv\alpha-\beta u\pmod c . \end{equation} The coset has one point in every $c$ consecutive values of $v$ above a given $u$, so by itself it excludes little; combined with the shape of the hyperbola it leaves only a few points to test. \begin{lemma}\label{lem:box} Let $0\le u_0\le u_1$ and put \[ v^+=\Bigl\lfloor\frac{\lfloor N/(r+cu_0)\rfloor-r'}{c}\Bigr\rfloor,\qquad v^-=\Bigl\lceil\frac{\lceil N/(r+cu_1)\rceil-r'}{c}\Bigr\rceil . \] If $t=r+cu$ divides $N$ and $u_0\le u\le u_1$, then $N/t=r'+cv$ with $v^-\le v\le v^+$ and $v$ satisfying \eqref{eq:coset}. Consequently, with $H=v^+-v^-+1$, the integer $u$ lies in the set \begin{equation}\label{eq:window} \bigl\{\,u\in[u_0,u_1]:\ (\alpha-\beta u-v^-)\bmod c\ R$. Right: the reduced problem $(30,7,13,20)$ asks for the least $z$ with $7z\bmod30$ in $[13,20]$. It is $z=2$, and the lemma returns $y=\lceil(40+2\cdot97)/30\rceil=8$, for which $ay\bmod g=46$.} \label{fig:firsthit} \end{figure} \begin{figure}[t] \centering \includegraphics[width=0.69\textwidth]{figures/fig_boxes.png} \caption{The divisors of $N=17670$ in the class $4$ modulo $13$ up to $\sqrt N$, found as in Lemma~\ref{lem:box}. The grey points form the coset \eqref{eq:coset}, here $v\equiv8-u\pmod{13}$; the curve is the hyperbola \eqref{eq:uv}. The boxes cover the curve for $2\le u\le9$ (the values $u=0,1$ are tested directly), and only the points inside a box are examined. Two of them lie on the curve and give the divisors $t=30$ and $t=95$.} \label{fig:boxes} \end{figure} \subsection{Choosing the boxes} The range $0\le u\le U=\lfloor(\lfloor\sqrt N\rfloor-r)/c\rfloor$ is cut into consecutive intervals $[u_0,u_1]$, each giving a box $[u_0,u_1]\times[v^-,v^+]$ in Lemma~\ref{lem:box} (Figure~\ref{fig:boxes}). Correctness does not depend on how this is done; the choice only affects the running time. Since $v\approx K/u$ with $K=N/c^2$, a box with $u_1-u_0=\lambda u_0$ has area close to $K\lambda^2/(1+\lambda)$, and as the coset has one point per area $c$ we choose $\lambda$ with $\lambda^2/(1+\lambda)=c^3/N$, so that each box holds about one point of \eqref{eq:coset}. There are two regimes. If $c^3>N$, then $\lambda$ exceeds $1.6$ and grows like $c^3/N$, so that $O\bigl(\log N/\log(2+c^3/N)\bigr)$ boxes cover the whole range: this is Lenstra's range, and the work is a handful of Euclidean recursions. If $c^3\sqrt N$ there is no divisor with $u\ge u_d$ to look for. Since $x+N/x$ decreases on $(0,\sqrt N\,]$, every divisor $t\le\sqrt N$ with $u\ge u_d$ has $2r+cS=t+N/t\le t_d+N/t_d$, while $t+N/t\ge2\sqrt N$. So $S$ runs over at most $N/(c^3u_d)+1$ values of one residue class, and each value needs a single test whether $S^2-4(w-rS)/c$ is a perfect square. Every divisor with $u\ge u_d$ is found in this way, and by the converse every square found gives a factorisation $N=(r+cu)(r+cv)$. The divisors with $u2c^2$, so $c>2$ and $0N$, so that Lenstra's bound applies and a few boxes suffice. The remaining $78221$ pairs come from values of $s$ just above the lower end of long intervals, where $c=C_{12}s-2B_{12}$ is small. The most extreme is the prefix ending in $25867$ of Table~\ref{tab:hard}, whose first admissible $s$ gives $c^3/N\approx2\cdot10^{-15}$. For these pairs the route of Section~\ref{sec:sum} needs about $2(N/c^3)^{1/2}$ operations. For none of the $33865004$ pairs does $N$ have a divisor in the class of Proposition~\ref{prop:class} that yields integers $s0$. Hence $MB_{k-1}>A_{k-1}$, that is $P_{k-1}a/b$. \end{proof} The next lemma is a majorisation inequality; only the sequence $x$ needs to be ordered. \begin{lemma}\label{lem:major} Let $x_1\le\dots\le x_m$ and $z_1,\dots,z_m$ be real numbers greater than $1$ with $X_u\ge Z_u$ for $1\le u\le m$. Then \[ \prod_{i=1}^{m}\Bigl(1-\frac1{x_i}\Bigr)\ge \prod_{i=1}^{m}\Bigl(1-\frac1{z_i}\Bigr), \] with strict inequality if $X_m>Z_m$. \end{lemma} \begin{proof} The function $f(t)=\log(1-e^{-t})$ on $t>0$ has derivative $f'(t)=1/(e^t-1)$, which is positive and decreasing, so $f$ is concave. Put $\tau_i=\log x_i$ and $\sigma_i=\log z_i$, so that $f(\tau_i)=\log(1-1/x_i)$ and $f(\sigma_i)=\log(1-1/z_i)$. By concavity \[ f(\sigma_i)\le f(\tau_i)+c_i(\sigma_i-\tau_i),\qquad c_i=f'(\tau_i)=\frac1{x_i-1}, \] and $c_1\ge c_2\ge\dots\ge c_m>0$ because the $x_i$ are nondecreasing. The partial sums $\Delta_u=\sum_{i\le u}(\sigma_i-\tau_i)=\log(Z_u/X_u)$ are at most $0$ by hypothesis, and summation by parts gives \[ \sum_{i=1}^{m}c_i(\sigma_i-\tau_i) =\sum_{u=1}^{m-1}(c_u-c_{u+1})\Delta_u+c_m\Delta_m \le c_m\Delta_m\le0 , \] with $c_m\Delta_m<0$ when $X_m>Z_m$. Hence $\sum f(\sigma_i)\le\sum f(\tau_i)$, strictly in that case, and the lemma follows on exponentiating. \end{proof} \begin{lemma}[Cook, Nielsen]\label{lem:cn} Under \eqref{eq:hyp}, with $m\ge1$, we have $aX_m\le E_m(a+1)$. \end{lemma} This is the lemma of Cook \cite{Coo99} and Nielsen \cite{Nie03} mentioned in the introduction. We include its proof, on which the proof of Theorem~\ref{thm:deficit} builds. \begin{proof} We use induction on $m$. Define \[ z_u=(a+1)^{2^{u-1}}+1\quad(1\le u\le m-1),\qquad z_m=(a+1)^{2^{m-1}} . \] Induction on $u$ gives $aZ_u=(a+1)^{2^u}-1$ for $0\le u\le m-1$, and then $aZ_m=E_m(a+1)$. Writing $c_u=(a+1)^{2^{u-1}}$, so that $c_{u+1}=c_u^2$ and $1-1/z_u=c_u(c_u-1)/(c_{u+1}-1)$ for $uu}x_i\le E_{m-u}(aX_u+1) \le E_{m-u}\bigl((a+1)^{2^u}\bigr)=E_m(a+1). \] Otherwise $X_u>Z_u$ for every $u\le m-1$ (for $m=1$ this is vacuous). If also $X_m>Z_m$, Lemma~\ref{lem:major} and \eqref{eq:zprod} give $\prod(1-1/x_i)>a/(a+1)\ge a/b$, contrary to \eqref{eq:hyp}. Hence $X_m\le Z_m$ and $aX_m\le E_m(a+1)$. \end{proof} The proof compares $x_1,\dots,x_m$ with an extremal sequence $z_1,\dots,z_m$ through the partial products $X_u$ and $Z_u$, and splits according to whether $X_u\le Z_u$ for some $u\le m-1$ (Figure~\ref{fig:dichotomy}). \begin{figure}[t] \centering \includegraphics[width=0.86\textwidth]{figures/fig_dichotomy.png} \caption{The proof of Theorem~\ref{thm:deficit} for $a/b=5/8$ and $m=5$, on the scale $\log_2\log_2(aX_u+1)$. The extremal sequence $3,17,257,65537,2^{32}$ rises by exactly $1$ per step from $u=1$ on and ends at $aZ_5=E_4(16)$. The two other sequences satisfy \eqref{eq:hyp}, start above it, and fall below it at $u=2$ and $u=3$. From that point Lemmas~\ref{lem:tail} and~\ref{lem:cn} give $aX_5<(aX_u+1)^{2^{5-u}}$, the dashed line of slope $1$, which ends below $E_4(16)$. A sequence that stayed above the extremal one up to $u=4$ would end below it at $u=5$, by Lemma~\ref{lem:major}.} \label{fig:dichotomy} \end{figure} \begin{proof}[Proof of Theorem~\ref{thm:deficit}] Put $G=b(a+1)/d$, so that $G-1=a(b+1)/d$, and define real numbers \[ z_1=\frac{b+1}{d},\qquad z_u=G^{2^{u-2}}+1\quad(2\le u\le m-1),\qquad z_m=G^{2^{m-2}} . \] Then $aZ_1=G-1$, induction gives $aZ_u=G^{2^{u-1}}-1$ for $1\le u\le m-1$, and $aZ_m=(G^{2^{m-2}}-1)G^{2^{m-2}}=E_{m-1}(G)$. The numbers $z_2,\dots,z_m$ are the sequence of the proof of Lemma~\ref{lem:cn} with $G-1$ in place of $a$ and $m-1$ terms, so by \eqref{eq:zprod} \[ \prod_{u=1}^{m}\Bigl(1-\frac1{z_u}\Bigr) =\frac{a+1}{b+1}\cdot\frac{G-1}{G} =\frac{a+1}{b+1}\cdot\frac{a(b+1)}{b(a+1)}=\frac ab . \] Suppose first that $X_u\le Z_u$ for some $1\le u\le m-1$, so that $aX_u+1\le G^{2^{u-1}}$. Lemmas~\ref{lem:tail} and~\ref{lem:cn}, applied to the $m-u\ge1$ terms $x_{u+1},\dots,x_m$, and \eqref{eq:Ecomp} give \[ aX_m\le E_{m-u}(aX_u+1)\le E_{m-u}\bigl(G^{2^{u-1}}\bigr) =E_{m-1}(G). \] Otherwise $X_u>Z_u$ for all $u\le m-1$. If also $X_m>Z_m$, then Lemma~\ref{lem:major}, which applies because every $z_u$ exceeds $1$ (for $z_1$ because $b+1>d$), gives $\prod(1-1/x_i)>\prod(1-1/z_i)=a/b$, contrary to \eqref{eq:hyp}. Hence $X_m\le Z_m$, that is $aX_m\le E_{m-1}(G)$. If $d\mid b+1$, then $z_1$ is an integer greater than $1$, so $z_1\ge2$, and $G-1=az_1$, $G\ge3$ and all $z_u$ are integers. They are nondecreasing: $z_2\ge G\ge z_1$, since $G\ge z_1$ amounts to $ab\ge1$; the middle terms increase; and for $m\ge3$ we have $z_m=(z_{m-1}-1)^2\ge z_{m-1}$ because $z_{m-1}-1\ge G\ge3$. The product of $1-1/z_u$ is $a/b$ over all $m$ terms and larger over the first $m-1$, so the $z_u$ satisfy \eqref{eq:hyp} and attain $aZ_m=E_{m-1}(G)$. \end{proof} \begin{figure}[t] \centering \includegraphics[width=0.94\textwidth]{figures/fig_bases.png} \caption{The base of the bound for $aX_m$ written as $E_{m-1}(\,\cdot\,)$, on a $\log_2$ scale, over the numerator $a$ and the deficit $d=b-a$. The wire mesh is the base $(a+1)^2$ of the lemma of Cook and Nielsen, the shaded sheet below it the base $b(a+1)/d$ of Theorem~\ref{thm:deficit}. They meet along $d=1$, where the two bounds coincide, and separate as $d$ grows.} \label{fig:bases} \end{figure} \begin{remark}\label{rem:compare} Since $G=(a+1)/(1-a/b)$, the bound of Theorem~\ref{thm:deficit} depends on $b$ only through the distance of $a/b$ from $1$. Its base is smaller than the base $(a+1)^2$ of Lemma~\ref{lem:cn} by the factor $(a+1)d/b$, which is at least $1$ because $(a+1)d-b=a(d-1)\ge0$; Figure~\ref{fig:bases} shows the two bases. Stone's bound $E_{m-1}(b^2/d)$ exceeds ours by the factor $b/(a+1)$ in the base. In the application below $a=A_j$ and $b=MB_j$, and then the base $G=(A_j+1)/(1-P_j/M)$ decreases as $M$ increases, so the smallest admissible value of $M$ yields an upper bound. The base $b^2/d=M^2B_j^2/(MB_j-A_j)$ of Stone has no such property: it decreases for $M<2P_j$ and increases for $M>2P_j$. \end{remark} \begin{remark}\label{rem:fermat} The extremal sequences of Theorem~\ref{thm:deficit} are explicit. For $a/b=5/8$ we have $d=3$, $z_1=3$ and $G=16$, and with $m=4$ the sequence is $3,17,257,65536$: \[ \frac23\cdot\frac{16}{17}\cdot\frac{256}{257}\cdot\frac{65535}{65536} =\frac58,\qquad 5\cdot3\cdot17\cdot257\cdot65536=2^{32}-2^{16}=E_3(16). \] The first three terms are Fermat primes. For $a=1$ the sequence of the proof of Lemma~\ref{lem:cn} consists of the Fermat numbers $F_0,\dots,F_{m-2}$ followed by $2^{2^{m-1}}$, and the products $F_0F_1\cdots F_{r-1}=2^{2^r}-1$ with $1\le r\le5$ are the solutions $3$, $15$, $255$, $65535$ and $4294967295$ of \eqref{eq:second} in \eqref{eq:known}. Such products have $n/\varphi(n)$ just below $2$, and so do the deepest nodes of the search of Section~\ref{sec:sizesearch} (Section~\ref{sec:hard}). \end{remark} \subsection{Heavy solutions}\label{sec:heavy} For $0\le j\le k-1$ put \begin{equation}\label{eq:V} V_j=V_j(M)=\frac{MB_j(A_j+1)}{MB_j-A_j}=\frac{A_j+1}{1-P_j/M}. \end{equation} By Lemma~\ref{lem:sizefacts}(i) the denominator is positive, and $V_j(M)$ decreases as $M$ increases. \begin{proposition}\label{prop:sizebounds} For $0\le j\le k-1$, \[ n<(A_j+1)^{2^{k-j}}\qquad\text{and}\qquad n1$, and $n19000$ and $p_i>4^i$ for $i\ge10$, so that \[ \sum_{8\le i\le k-1}\frac1{p_i-1}<\frac1{256}+\frac1{19000} +\sum_{i\ge10}\frac1{4^i-1}<0.004 . \] Put $f(x)=x/(x-1)$, which decreases for $x>1$ and satisfies $f(x)\le e^{1/(x-1)}$. Then $P_k=\prod_{i\le k}f(p_i)$ and $f(p_k)j$ let $\lambda_i$ be the least positive integer $\lambda$ with $A_j\lambda^{i-j}\ge\theta_i$, and put $y_i=(\theta_i/A_j)^{1/(i-j)}$. Then $\lambda_i=\max\{1,\lceil y_i\rceil\}$, so $\lambda_i\ge y_i$, and $\lambda_i1$. \begin{lemma}\label{lem:growth} Let $i>j$. \begin{enumerate}[label=\textup{(\roman*)}] \item If $i\ge j+2$ and $y_i>1$, then $y_{i+1}\ge y_i^{4/3}$. \item If $n$ is an $s$-heavy solution, $A_j$ is the product of its $j$ smallest prime factors and $i\le k-1$, then $p_i\ge\lambda_i$. \end{enumerate} \end{lemma} \begin{proof} (i) If $y_i>1$, then $\theta_i>A_j\ge1$, so $i\ge s$ and $\theta_{i+1}=\theta_i^2$. Hence \[ (i+1-j)\log y_{i+1}=2\log\theta_i-\log A_j \ge2(\log\theta_i-\log A_j)=2(i-j)\log y_i , \] so $\log y_{i+1}\ge\frac{2(i-j)}{i+1-j}\log y_i\ge\frac43\log y_i$, since $i-j\ge2$ and $\log y_i>0$. (ii) By (H1) at $i$, $\theta_i\le A_i\le A_jp_i^{\,i-j}$, so $p_i\ge\lambda_i$. \end{proof} The search needs an upper bound for $P_k/P_j$ that uses only $p_1,\dots,p_j$ and a lower bound for $p_{j+1}$. For an integer $q\ge3$ and $i>j$ let $\pi_i(q)$ be the $(i-j)$-th smallest prime that is at least~$q$, if this prime is less than $2\cdot10^7$, and $\pi_i(q)=q+2(i-j-1)$ otherwise. Put $b_i=\max\{\pi_i(q),\lambda_i\}$, let $i_0$ be the least index $i\ge j+3$ with $\lambda_i>10^{30}$, and define \begin{equation}\label{eq:Gamma} \Gamma_j(q)=\max\Bigl\{\frac{q}{q-1},\ \ \max_{j+1\le ii_0$. The primes $p_{j+1},\dots,p_{i_0-1}$ contribute at most $\prod_{l=j+1}^{i_0-1}b_l/(b_l-1)$, as before. Put $Y=y_{i_0}$. Since $\lambda_{i_0}>10^{30}$, we have $Y>\lambda_{i_0}-1\ge10^{30}$, and Lemma~\ref{lem:growth} gives $p_i\ge\lambda_i\ge y_i\ge Y^{(4/3)^{i-i_0}}$ for $i_0\le i\le k-1$. As $p_k>p_{k-1}$, the factor of $p_k$ is at most that of $p_{k-1}$, so \[ \prod_{i=i_0}^{k}\frac{p_i}{p_i-1} \le\prod_{i=i_0}^{k-1}\Bigl(1+\frac1{p_i-1}\Bigr)^{2} \le\exp\Bigl(2\sum_{u\ge0}\frac1{Y^{(4/3)^u}-1}\Bigr). \] Because $(4/3)^u\ge1+u/3$ and $Y\ge10^{30}$, the terms with $u\ge1$ add up to less than $1/(Y-1)$, so the exponent is less than $4/(Y-1)\le1$. With $e^x\le1+2x$ for $0\le x\le1$ the product is at most $1+8/(Y-1)<1+8/(\lambda_{i_0}-2)$, which is smaller than the factor $1+16/(\lambda_{i_0}-2)$ of the third term of \eqref{eq:Gamma}. \end{proof} \subsection{The search}\label{sec:sizesearch} Fix $s$. Let $S=(p_1,\dots,p_j)$, $j\ge0$, be an increasing sequence of odd primes in which no $p_i$ divides any $p_l-1$, and write $A_j$, $B_j$ and $P_j$ as before. Let $\mu(S)$ be the least integer $M>P_j$ with $M\ge2$ and, if $p_1=3$, $M\equiv1\pmod3$, and let $\mu'(S)$ be the next such integer. We say that a solution $n$ \emph{extends} $S$ if $j\le k-1$ and $S$ consists of the $j$ smallest prime factors of~$n$. By Lemmas~\ref{lem:basic}, \ref{lem:three} and~\ref{lem:sizefacts}(i), the quotient $M$ of such an $n$ satisfies $M\ge\mu(S)$. For $M>P_j$ we use $V_j(M)$ as in \eqref{eq:V}, computed from $S$. The tree $\mathcal T_s$ is built from the empty sequence by the following rules, applied to each sequence $S$ of length $j$ that is generated; Figure~\ref{fig:rules} summarises them. \begin{enumerate}[label=\textup{(R\arabic*)},leftmargin=*] \item\label{r:ratio} \emph{Ratio test.} Let $q_1$ be the least prime greater than $p_j$ ($q_1=3$ if $j=0$). If $P_j\Gamma_j(q_1)\le\mu(S)$, the sequence $S$ is discarded. \item\label{r:deficit} \emph{Deficit test.} If $V_j(\mu(S))<\theta_{j+1}$, the sequence $S$ is discarded. \end{enumerate} A sequence that survives both tests is a \emph{node} of $\mathcal T_s$. At a node: \begin{enumerate}[label=\textup{(R\arabic*)},leftmargin=*,resume] \item\label{r:last} \emph{Last prime.} If $j\ge1$, then for each integer $M$ with $\mu(S)\le Mp_j$ with $q\not\equiv1\pmod{p_i}$ for $i\le j$ and with $A_jq\ge\theta_{j+1}$, taking $q$ in increasing order and omitting~$q$ in the following cases. \begin{enumerate}[label=(\roman*)] \item If $P_j\Gamma_j(q)\le\mu$, omit $q$ and every larger prime. \item If $q\le q_c$ and $P_j\Gamma_j(q)\le\mu'(S)$, omit every prime in $[q,q_c]$. \item If $q>q_c$ and $V_{j+1}(\mu)$, computed for the sequence $(p_1,\dots,p_j,q)$, is less than $\theta_{j+2}$, omit $q$. \end{enumerate} \end{enumerate} A prime $q$ satisfies $q\le q_c$ exactly when $P_jq/(q-1)\ge\mu$, so in (ii) a solution extending $(p_1,\dots,p_j,q)$ has $P_{j+1}\ge\mu$ and hence $M\ge\mu'(S)$. For $q>q_c$ we have $P_{j+1}<\mu$, so $V_{j+1}(\mu)$ is defined, and after multiplication by its positive denominator the inequality in (iii) becomes a quadratic inequality in $q$ with positive leading coefficient;\footnote{With $D=\mu B_j-A_j$ and $\theta=\theta_{j+2}$ one has $V_{j+1}(\mu)=\mu B_j(q-1)(A_jq+1)/(Dq-\mu B_j)$, and $V_{j+1}(\mu)<\theta$ reads $\mu A_jB_jq^2+\bigl(\mu B_j-\mu A_jB_j-\theta D\bigr)q+(\theta-1)\mu B_j<0$.} the primes omitted by (iii) therefore form an interval, which is computed once per node. \begin{figure}[t] \centering \includegraphics[width=0.96\textwidth]{figures/fig_rules.png} \caption{The treatment of a sequence $S=(p_1,\dots,p_j)$ in the tree $\mathcal T_s$. A sequence that fails the ratio test or the deficit test cannot be extended by an $s$-heavy solution. A node is tested for a last prime factor and passes to its children every prime that the three omission rules allow.} \label{fig:rules} \end{figure} \begin{proposition}\label{prop:sizecomplete} Let $n$ be an $s$-heavy solution. Then $(p_1,\dots,p_{k-1})$ is a node of $\mathcal T_s$, and rule~\ref{r:last} at that node finds $p_k$. \end{proposition} \begin{proof} Write $S_j=(p_1,\dots,p_j)$. We show by induction on $j$ that $S_j$ is generated and is a node, for $0\le j\le k-1$. The empty sequence $S_0$ is generated by definition. Suppose that $S_j$ is generated. As $n$ extends $S_j$, we have $M\ge\mu(S_j)$. Lemma~\ref{lem:ext} with $q=q_1\le p_{j+1}$ gives $P_j\Gamma_j(q_1)\ge P_k>M\ge\mu(S_j)$, so \ref{r:ratio} does not discard $S_j$, and $V_j(\mu(S_j))\ge V_j(M)\ge\theta_{j+1}$ by (H2), so \ref{r:deficit} does not either. Thus $S_j$ is a node. Now let $j\le k-2$. The prime $p_{j+1}$ is a candidate of \ref{r:children} at $S_j$, by Lemma~\ref{lem:basic}(ii) and (H1) at $j+1$. Lemma~\ref{lem:ext} gives $P_j\Gamma_j(q)\ge P_k>M\ge\mu(S_j)$ for every integer $q$ with $3\le q\le p_{j+1}$, so rule (i) applies at no prime $q\le p_{j+1}$. If $p_{j+1}\le q_c$, then $P_{j+1}\ge\mu(S_j)$, and $M>P_{j+1}$ forces $M\ge\mu'(S_j)$; hence $P_j\Gamma_j(q)>\mu'(S_j)$ for $q\le p_{j+1}$, rule (ii) applies at no prime $q\le p_{j+1}$, and an application at a larger prime does not reach $p_{j+1}$. If $p_{j+1}>q_c$, rule (ii) omits only primes up to $q_c$, and $V_{j+1}(\mu(S_j))\ge V_{j+1}(M)\ge\theta_{j+2}$ by (H2) at $j+1$, so rule (iii) does not omit $p_{j+1}$. Hence $S_{j+1}$ is generated. At the node $S_{k-1}$ we have $\mu(S_{k-1})\le M10^{30}$. The three terms cover $k\le J$, then $Ji_0$. The tail estimate is that of Lemma~\ref{lem:ext}, applied to $y_i=\theta_i^{1/i}$, for which $p_i\ge\rho_i\ge y_i>\rho_i-1$ when $\rho_i>1$, and $\log y_{i+1}=\frac{2i}{i+1}\log y_i\ge\frac43\log y_i$ when $i\ge\max\{s,2\}$. We evaluate $R_s$ in exact rational arithmetic, with integer lower bounds in place of the $\rho_i$, which can only enlarge it. \begin{proof}[Proof of Theorem~\textup{\ref{thm:size}(ii)} and \textup{(iii)}] Suppose $3\mid n$. Then $M\ge4$, every prime factor other than $3$ is congruent to $2$ modulo $3$, by Lemma~\ref{lem:three}, and $k\ge10^8+2$ by Corollary~\ref{cor:indep}(ii). Take $J=10^8+1$, $\ell_i=2i+1$, which is at most the $i$-th odd prime, and $V^*=4(1-10^{-6})$. The $J$ smallest prime factors are $3$ and an independent set of $10^8$ primes $p\equiv2\pmod3$, so $P_J<\frac32\cdot\frac83(1-10^{-6})=V^*$ by Proposition~\ref{prop:indep}(ii). The computation gives $R_{10^8}=3.9999966\ldots<4$. If (H1) held for all $j\le k-1$ with $s=10^8$, then \eqref{eq:R} would give $P_k<4\le M$, contrary to Lemma~\ref{lem:sizefacts}(i). So $n$ is not $10^8$-heavy, and Corollary~\ref{cor:light} gives (iii). Suppose $M\ge3$ and $3\nmid n$. Then $k\ge16001$ by Corollary~\ref{cor:indep}(i). Take $J=16000$, $\ell_i=r_i$, the primes from $5$ on, and $V^*=2.999999$; the $J$ smallest prime factors form an independent set, so $P_J7\cdot10^9$, so that the remaining prime factors raise $P_{16000}<2.999999$ by a factor less than $1+10^{-9}$. For $s=15982$ the corresponding bound $\rho_{16000}<10^5$ lies below $r_{16000}=176089$, and the next prime factor alone may raise the product by the factor $1+1/176122$. \subsection{Where the search is hard}\label{sec:hard} The nodes that survive longest are prefixes with $P_j$ just below $2$, the same kind of prefix that makes the next cases expensive (Section~\ref{sec:open}). Every node at depth $13$ has $2-P_{13}<10^{-10}$: there $A_{13}$ has between $27$ and $29$ digits, while $C_{13}=2B_{13}-A_{13}$ has between $14$ and $18$. In this respect the deep nodes behave like the products of Fermat primes of Remark~\ref{rem:fermat}, for which $2\varphi(n)-n=1$. For such a prefix $1-P_j/2$ is tiny, so $V_j$ is large and the deficit test cannot discard it. Its children are few for the same reason: a prime $q\le q_c=\lfloor1/(1-P_j/2)\rfloor$, which exceeds $3\cdot10^{10}$ at depth $13$, would raise $P_{j+1}$ to $2$ or more and force $M\ge3$, and rule (ii) removes these primes. Figure~\ref{fig:margins} shows how close to the threshold of (H2) the deepest nodes come. The tree grows quickly with $s$ (Figure~\ref{fig:trees}), and for $s=7$ more than nine tenths of its nodes lie at depths $12$ and $13$. Each further unit of $s$ halves the number of binary digits allowed by Theorem~\ref{thm:size}(i). The method proves $n<2^{2^{k-s}}$ for every $s$ for which the tree $\mathcal T_s$ can be searched, and the cost of the search is dominated by the deep prefixes with $P_j$ close to $2$. We have not completed the search for $s=8$: at the node $5,7,13,17,19,23,37,59,67,73,317,5483$ of depth $12$, where $2/P_{12}-1=7.0\cdot10^{-8}$, rule~\ref{r:children} already generates more than $10^6$ sequences. \begin{figure}[t] \centering \includegraphics[width=0.86\textwidth]{figures/fig_trees.png} \caption{The number of nodes of $\mathcal T_s$ at each depth, for $s=4,5,6,7$, on a logarithmic scale.} \label{fig:trees} \end{figure} \subsection{Comparison with other bounds} Stone \cite[(52), (53)]{Sto24} treated tuples of primes with $\prod(1-1/p_i)\le\frac12<\prod_{i3$ satisfy \eqref{eq:second} with $3\nmid n$ and $\omega(n)\le15$. Then $n=p_1\cdots p_k$ with $5\le p_1$, and $n+1=2\varphi(n)$ by Lemma~\ref{lem:Mtwo}. For $k\le6$ the product $\prod p_i/(p_i-1)$ is at most $1.9490\ldots$, whereas \eqref{eq:excess} requires it to be $2-1/\varphi(n)$. For $k\ge2$ this is at least $2-\frac1{24}>1.95$, as $\varphi(n)\ge4\cdot6$, and for $k=1$ it is at least $\frac74$, whereas $p_1/(p_1-1)\le\frac54$. For $7\le k\le14$ we ran both implementations with $\varepsilon=+1$ and $p_{\min}=5$. Neither found a solution, and the node counts, the numbers of terminal nodes and the largest widths coincide with those of Table~\ref{tab:first} for every $k$. For $k=15$ the nodes at depth $12$ and their intervals are again those of Section~\ref{sec:fifteen}, and the method of Section~\ref{sec:three}, run with $\varepsilon=+1$ by both implementations and by the route of Section~\ref{sec:sum} over the same $33865004$ pairs, finds no completion in integers. This proves Theorem~\ref{thm:coprime}. The coincidence with Table~\ref{tab:first} has a simple cause. The two sets of bounds in \eqref{eq:bounds} differ only by the terms $1/(A_jW)$, which in this range are far smaller than the gaps between consecutive admissible values of $p/(p-1)$ near the endpoints, and the computation confirms that no endpoint moves. The tests \eqref{eq:last} at the last level do differ, but by then the tree is fixed. For $3\nmid n$ and $k\le15$ the two equations therefore lead to the same search. \subsection{Extensions of Fermat-type solutions} \begin{proof}[Proof of Theorem~\ref{thm:ext}] Let $2\varphi(n_0)=n_0+1$ and let $Q>1$ be squarefree and coprime to $n_0$. Then $n=n_0Q$ satisfies $2\varphi(n)=n+1$ if and only if $2\varphi(n_0)\varphi(Q)=n_0Q+1$, that is, $(n_0+1)\varphi(Q)=n_0Q+1$, or \begin{equation}\label{eq:ext} n_0\bigl(Q-\varphi(Q)\bigr)=\varphi(Q)-1 . \end{equation} (i) For $Q=q$ prime, \eqref{eq:ext} reads $n_0=q-2$. (ii) For $Q=pq$ with primes $pn_0$. The divisor $d=1$ gives $p=n_0+2$ and $q=(n_0+1)^2+1=n_0(n_0+2)+2$, which is the composition of two one-prime extensions. (iii) Factoring $n_0^2+n_0+1$ and testing $n_0+2$ for each of the eight numbers gives Table~\ref{tab:ext}. The one-prime extensions are $1\to3\to15\to255\to65535\to4294967295$ and $83623935\to6992962672132095$. The two-prime extensions are those listed in the table, and the only one that is not a composition of one-prime extensions is $255\to83623935$. Every extension of each of the eight numbers is therefore again one of the eight, and each of them is reached from $1$, so the eight numbers are exactly the closure of $\{1\}$. The rows for $65535$, $83623935$, $4294967295$ and $6992962672132095$ show where the chains stop. Every factor in Table~\ref{tab:ext} is below $2^{64}$, where the primality tests we use are proofs, and a test that declares a candidate $p$ or $q$ composite is never wrong. \end{proof} \begin{table}[ht] \centering \caption{One- and two-prime extensions of the Fermat-type solutions.} \label{tab:ext} \smallskip \footnotesize \begin{tabular}{@{}rcl@{}} \toprule $n_0$ & $n_0+2$ prime & factorisation of $n_0^2+n_0+1$; two-prime extensions $(p,q)$ \\ \midrule $1$ & yes & $3$;\ \ $(3,5)$ \\ $3$ & yes & $13$;\ \ $(5,17)$ \\ $15$ & yes & $241$;\ \ $(17,257)$ \\ $255$ & yes & $97\cdot673$;\ \ $(257,65537)$ and $(353,929)$ \\ $65535$ & yes & $193\cdot22253377$;\ \ none \\ $83623935$ & yes & $67\cdot180097\cdot579535339$;\ \ none \\ $4294967295$ & no & $2^{64}-2^{32}+1$, prime;\ \ none \\ $6992962672132095$ & no & $13\cdot37\cdot109\cdot30802180789\cdot30280941915943441$;\ \ none \\ \bottomrule \end{tabular} \end{table} The chains stop for the following reasons. For $n_0=65535$ the trivial divisor gives $p=65537$ and $q=2^{32}+1=641\cdot6700417$, which is Euler's factorisation of $F_5$, and the divisor $193$ gives $p=65729$, a prime, but $q=22318913=3037\cdot7349$. For $n_0=4294967295$ the one-prime extension fails because $n_0+2=2^{32}+1$ is composite once more. Figure~\ref{fig:hyperbola} shows the hyperbolas for $n_0=255$ and $n_0=65535$ with their lattice points. \begin{figure}[t] \centering \includegraphics[width=0.84\textwidth]{figures/fig_tree.png} \caption{The Fermat-type solutions of $n+1=2\varphi(n)$ as the closure of $1$ under extensions. Horizontal arrows are one-prime extensions $n_0\mapsto n_0(n_0+2)$, labelled by the prime $n_0+2$. The bent arrow is the two-prime extension of $255$ by $(353,929)$, coming from the factorisation $65281=97\cdot673$. Dashed arrows end the two chains: $4294967297$ and $6992962672132097$ are composite, and neither $n_0^2+n_0+1$ has a factorisation that yields two primes.} \label{fig:tree} \end{figure} \begin{figure}[t] \centering \includegraphics[width=0.82\textwidth]{figures/fig_hyperbola.png} \caption{The two-prime extensions of $n_0$ are the lattice points $(d,e)=(p-n_0-1,\,q-n_0-1)$ on $de=n_0^2+n_0+1$ with both $p$ and $q$ prime, shown on logarithmic axes. For $n_0=255$ both lattice points with $d\le e$ give primes (filled). For $n_0=65535$ both lattice points give a prime $p$ and a composite $q$ (open).} \label{fig:hyperbola} \end{figure} \begin{remark}\label{rem:three} For three new primes, $Q=spq$ with $s1/n_0-4/x^2$ and $1/x<1/n_0$, that is, $n_03$, and $n$ is odd and squarefree by Lemma~\ref{lem:basic}. If $3\nmid n$, then $\omega(n)\ge16$ by Theorem~\ref{thm:coprime}; hence $3\mid n$. By Lemma~\ref{lem:three} the quotient $M$ is either $2$ or at least $5$, and in the second case $\omega(n)\ge1540$. Hence $n+1=2\varphi(n)$ and $p_1=3$, and it suffices to run the search with $\varepsilon=+1$ and $k=8$ over the prefixes that begin with $3$. The traversal down to depth $5$ takes a few seconds. It yields $10459$ prefixes $(p_1,\dots,p_5)$ with a non-empty interval for $p_6$, and $10458$ of them begin with $3$. Their intervals have total length $1.3045\cdot10^{10}$, and most of it belongs to a few prefixes (Figure~\ref{fig:eight}, left): $8.59\cdot10^9$ to $3,5,17,257,65537$, that is, to the solution $4294967295$ itself, where $C_5=1$; $1.23\cdot10^9$ to $3,5,17,257,65543$; and $1.67\cdot10^8$ to $3,5,17,353,929$, the solution $83623935$, where again $C_5=1$. Thirty-four prefixes have an interval longer than $10^7$, and $326$ one longer than $10^6$. The intervals contain $228260561$ primes $s$ that pass the congruence prune, $131788942$ of them for the prefix $3,5,17,257,65537$. Each pair of a prefix and such a prime $s=p_6$ leaves the two-prime problem of Proposition~\ref{prop:class}, in which $N$ has between $15$ and $40$ digits. These problems lie far to the left of those of Figure~\ref{fig:k15}. For the prefix $3,5,17,257,65537$ and $p_6=s$ one has $A'=(2^{32}-1)s$ and $B'=2^{31}(s-1)$, so that the modulus is $c=s-2^{32}$, and $N=2A'B'+c$ is close to $2^{64}s^2$. As $s$ runs over $[2^{32}+1,\,3\cdot2^{32}-1]$, the ratio $c^3/N$ stays below $2.1\cdot10^{-10}$, and the number $(N/c^3)^{1/2}$ that governs the methods of Section~\ref{sec:three} grows from $7\cdot10^4$ at the upper end to $4\cdot10^{16}$ at the first admissible prime, $s=4294967357$, where $c=61$. We therefore combine the sum route with trial division and with a complete factorisation, as follows. Fix a prefix and an admissible prime $s$, define $A'$, $B'$, $c$, $N$ as in Section~\ref{sec:three}, and let $t=cp-2B'$ be the divisor of Proposition~\ref{prop:class}. Since $p\ge s+2$, it satisfies $t\ge t_0=c(s+2)-2B'$, and we choose a split point $t_d$ with $t_0\le t_d$. \begin{enumerate}[label=\textup{(\roman*)}, leftmargin=*] \item The divisors with $t2^{33}$, the condition $p>p_6$ leaves only a short range of divisors.} \label{fig:eight} \end{figure} %%================================================================== \section{Checks on the computations}\label{sec:checks} %%================================================================== A search that finds nothing proves something only if it would have found what it looks for. Every search of this paper was therefore carried out by at least two programs written independently, and every count reported here is the same for all of them. For Theorems~\ref{thm:first} and~\ref{thm:coprime} one of the two programs never factors an integer, so that its negative answers depend on no primality proof. The programs were also run on equations that do have solutions: on the equation $2^k(n-1)=(2^k+h)\varphi(n)$, whose $56$ solutions with $k=4$ and $k=5$ in the ranges of Appendix~\ref{app:tests} they all return, and on \eqref{eq:second}, where they return every known solution with at most six prime factors at the right depth and nothing else. The divisor routines of Section~\ref{sec:three} were compared with complete factorisations and tested on planted divisors, and the program of Section~\ref{sec:eight} was tested in the same ways and partly run twice. The programs, their recorded output and the details of these tests are in the archive \cite{Data}. %%================================================================== %%================================================================== \section{The assertion that remains open}\label{sec:open} %%================================================================== The methods of Section~\ref{sec:three} settle the case $k=15$ of Lehmer's equation in a quarter of an hour on a single processor and the case of eight primes of the companion equation in $6.9$ hours. They do not reach the next cases: for \eqref{eq:first} with sixteen prime factors the number of two-prime problems grows from $3.4\cdot10^7$ to about $9\cdot10^{13}$, and for \eqref{eq:second} with nine prime factors and $3\mid n$ the Fermat primes alone leave some $10^{17}$ of them. In both cases most of the cost comes from a few prefixes whose product $\prod p/(p-1)$ differs from $2$ by less than $10^{-7}$, the prefixes that Section~\ref{sec:hard} describes. We end with the statement, equivalent to Lehmer's conjecture, that a proof for all $k$ would have to establish. \begin{proposition}\label{prop:equiv} Equation~\eqref{eq:first} has no composite solution if and only if there are no finite set $S$ of odd primes and no integer $M\ge2$ such that, with $A=\prod_{p\in S}p$ and $B=\prod_{p\in S}(p-1)$, the number $D=MB-A$ is positive, divides $A-1$, and makes $(MB-1)/D$ a prime larger than every element of $S$. \end{proposition} \begin{proof} Let $n$ be a composite solution of \eqref{eq:first}, let $q$ be its largest prime factor, $S$ the set of its other prime factors and $M=(n-1)/\varphi(n)$; by Lemma~\ref{lem:basic} the elements of $S$ are odd. Then $n=Aq$, $\varphi(n)=B(q-1)$, and $n-1=M\varphi(n)$ reads $qD=MB-1$; so $D\ge1$, $D$ divides $MB-1=D+(A-1)$ and hence $A-1$, and $q=(MB-1)/D$ is a prime larger than every element of $S$. Conversely, for $S$ and $M$ as in the statement the number $n=Aq$ with $q=(MB-1)/D$ is composite and satisfies $n-1=M\varphi(n)$, since $qD=MB-1$ is the same equation. \end{proof} By Theorem~\ref{thm:first} a set $S$ with these properties has at least $15$ elements, at least $16000$ if $M\ge3$, and at least $10^8$ if $3\in S$. The assertion asks that one number attached to each set $S$ never be a prime above the elements of $S$. For the companion equation the same construction with $D=1$ gives the Fermat numbers: the Fermat primes $S=\{3,5,17,257,65537\}$ give $2^{32}+1$. For Lehmer's equation $D=1$ would give $(MB-1)/D=A$, which is not a prime larger than the elements of $S$; so $D>1$, and the assertion is not a question about Fermat numbers. Two further constraints on $D$ follow from the proof. Since $qD=D+A-1$, the divisor is $D=(A-1)/(q-1)$, so $q-1$ divides $A-1$ as well and the assertion asks that $1+(A-1)/(MB-A)$ never be a prime larger than the elements of $S$; and since $2^{|S|}$ divides $B$ while $A$ is odd, $D$ is odd and $D\equiv-A\pmod{2^{|S|}}$, so $D\ge3$. %%================================================================== \appendix \section{Solutions of the test equation}\label{app:tests} %%================================================================== The following $56$ integers $n=p_1\cdots p_k$ satisfy $2^k(n-1)=(2^k+h)\varphi(n)$ for the indicated $h$. They are the complete output of both implementations for $k=4$, $1\le h\le40$, and $k=5$, $1\le h\le85$, with $p_1\ge3$, listed in increasing order of $n$ down the columns. Each was verified by direct arithmetic. \begin{table}[ht] \centering \caption{Solutions with $k=4$, $1\le h\le40$.} \label{tab:S4} \smallskip \footnotesize \begin{tabular}{@{}lr@{\qquad}lr@{}} \toprule $p_1,\dots,p_4$ & $h$ & $p_1,\dots,p_4$ & $h$ \\ \midrule $3,\,5,\,47,\,89$ & 15 & $13,\,29,\,433,\,2969$ & 2 \\ $5,\,19,\,29,\,163$ & 6 & $7,\,97,\,139,\,8581$ & 3 \\ $7,\,17,\,229,\,251$ & 4 & $13,\,29,\,383,\,28879$ & 2 \\ $3,\,29,\,263,\,521$ & 9 & $11,\,47,\,1109,\,15497$ & 2 \\ $13,\,37,\,151,\,271$ & 2 & $29,\,41,\,1291,\,15199$ & 1 \\ $3,\,29,\,197,\,1559$ & 9 & $11,\,47,\,1049,\,77477$ & 2 \\ $17,\,23,\,83,\,1709$ & 2 & $7,\,61,\,859,\,183397$ & 3 \\ $29,\,71,\,163,\,193$ & 1 & $31,\,37,\,2377,\,66499$ & 1 \\ $41,\,43,\,97,\,491$ & 1 & $19,\,157,\,9697,\,15511$ & 1 \\ $37,\,41,\,137,\,829$ & 1 & $19,\,157,\,8353,\,20887$ & 1 \\ \bottomrule \end{tabular} \end{table} \begin{table}[ht] \centering \caption{Solutions with $k=5$, $1\le h\le85$.} \label{tab:S5} \smallskip \footnotesize \begin{tabular}{@{}lr@{\qquad}lr@{}} \toprule $p_1,\dots,p_5$ & $h$ & $p_1,\dots,p_5$ & $h$ \\ \midrule $5,\,7,\,13,\,139,\,653$ & 19 & $5,\,47,\,317,\,40253,\,499027$ & 9 \\ $11,\,13,\,17,\,109,\,379$ & 9 & $19,\,269,\,443,\,1747,\,1852699$ & 2 \\ $3,\,17,\,29,\,317,\,4643$ & 21 & $23,\,71,\,983,\,1031,\,103437589$ & 2 \\ $11,\,17,\,107,\,173,\,1373$ & 6 & $19,\,199,\,757,\,5059,\,23698783$ & 2 \\ $5,\,19,\,37,\,73,\,19739$ & 12 & $31,\,43,\,233,\,318629,\,12310321$ & 2 \\ $19,\,73,\,97,\,103,\,613$ & 3 & $19,\,313,\,389,\,1277,\,590838019$ & 2 \\ $11,\,17,\,127,\,131,\,2879$ & 6 & $11,\,47,\,1051,\,67967,\,102302009$ & 4 \\ $5,\,7,\,269,\,317,\,4283$ & 15 & $7,\,59,\,1721,\,41813,\,958695209$ & 6 \\ $5,\,53,\,233,\,857,\,5689$ & 9 & $41,\,167,\,14411,\,322633,\,1891541$ & 1 \\ $31,\,53,\,149,\,569,\,3407$ & 2 & $31,\,37,\,2411,\,47681,\,5732949913$ & 2 \\ $13,\,17,\,271,\,1567,\,5573$ & 5 & $31,\,37,\,2297,\,2639701,\,1379629439$ & 2 \\ $7,\,13,\,17,\,1553,\,480499$ & 11 & $37,\,463,\,827,\,1667389,\,4325665973$ & 1 \\ $17,\,23,\,131,\,199,\,167099$ & 4 & $37,\,353,\,1867,\,25109743,\,844718249$ & 1 \\ $11,\,83,\,163,\,239,\,210461$ & 4 & $43,\,139,\,61729,\,212167,\,32068788511$ & 1 \\ $13,\,167,\,349,\,1747,\,8237$ & 3 & $37,\,367,\,1553,\,21098893,\,41563512479$ & 1 \\ $19,\,181,\,1439,\,3767,\,17683$ & 2 & $43,\,139,\,47857,\,57253657,\,72147837793$ & 1 \\ $3,\,11,\,269,\,17837,\,3861929$ & 21 & $37,\,353,\,1867,\,24384917,\,20504256743083$ & 1 \\ $43,\,317,\,331,\,953,\,166357$ & 1 & $43,\,139,\,47819,\,1145259251,\,653813324977$ & 1 \\ \bottomrule \end{tabular} \end{table} \section*{Declarations} \subsection*{Data and code availability} The programs that carry out the searches, the threshold computations and the checks of Section~\ref{sec:checks}, their recorded output, the factorisations of the fifteen integers of Table~\ref{tab:hard}, the logs of the three-prime searches of Section~\ref{sec:fifteen}, the program and the journal of the eight-prime search of Section~\ref{sec:eight}, the programs of Sections~\ref{sec:indep} and~\ref{sec:sizesearch} and their output, the programs that check the numbers of Table~\ref{tab:greedy} and of the proof of Proposition~\ref{prop:hand}, Lean~4 proofs \cite{dMU21}, checked with Mathlib \cite{Mathlib}, of many statements that do not depend on a search (among them Theorem~\ref{thm:deficit} and Proposition~\ref{prop:sizebounds}), and the sources of this paper are available at \url{https://github.com/creelie/eLhmr}\releaseline. \subsection*{Funding} No funding was received for conducting this study. \subsection*{Declaration of competing interest} The author has no competing interests to declare that are relevant to the content of this article. \subsection*{Declaration of generative AI and AI-assisted technologies in the manuscript preparation process} During the preparation of this work the author used Claude (Anthropic) to write and run the programs, to write the Lean proofs and to draft text. After using this tool, the author reviewed and edited the content as needed and takes full responsibility for the content of the publication. \begin{thebibliography}{99} \bibitem{APR83} L.~M. Adleman, C.~Pomerance, and R.~S. Rumely, \emph{On distinguishing prime numbers from composite numbers}, Ann. of Math. (2) \textbf{117} (1983), no.~1, 173--206. \href{https://doi.org/10.2307/2006975}{doi:10.2307/2006975} \bibitem{BW80} R.~Baillie and S.~S. Wagstaff, Jr., \emph{Lucas pseudoprimes}, Math. Comp. \textbf{35} (1980), no.~152, 1391--1417. \href{https://doi.org/10.1090/S0025-5718-1980-0583518-6}{doi:10.1090/S0025-5718-1980-0583518-6} \bibitem{BNP09} W.~D. Banks, C.~W. Nevans, and C.~Pomerance, \emph{A remark on Giuga's conjecture and Lehmer's totient problem}, Albanian J. Math. \textbf{3} (2009), no.~2, 81--85. \href{https://doi.org/10.51286/albjm/1245207560}{doi:10.51286/albjm/1245207560} \bibitem{Data} D.~Bhattacharjee, \emph{Lehmer's totient problem with fewer than sixteen prime factors: programs, data and Lean proofs}, version 1.4.0, 2026. \url{https://github.com/creelie/eLhmr/releases/tag/v1.4.0} \bibitem{BLS75} J.~Brillhart, D.~H. Lehmer, and J.~L. Selfridge, \emph{New primality criteria and factorizations of $2^m\pm1$}, Math. Comp. \textbf{29} (1975), no.~130, 620--647. \href{https://doi.org/10.1090/S0025-5718-1975-0384673-1}{doi:10.1090/S0025-5718-1975-0384673-1} \bibitem{BCF11} P.~Burcsi, S.~Czirbusz, and G.~Farkas, \emph{Computational investigation of Lehmer's totient problem}, Ann. Univ. Sci. Budapest. Sect. Comput. \textbf{35} (2011), 43--49. \href{https://doi.org/10.71352/ac.35.043}{doi:10.71352/ac.35.043} \bibitem{BZ19} D.~Burek and B.~\.Zmija, \emph{A new upper bound for numbers with the Lehmer property and its application to repunit numbers}, Int. J. Number Theory \textbf{15} (2019), no.~7, 1463--1468. \href{https://doi.org/10.1142/S1793042119500830}{doi:10.1142/S1793042119500830} \bibitem{CH80} G.~L. Cohen and P.~Hagis, Jr., \emph{On the number of prime factors of $n$ if $\varphi(n)\mid(n-1)$}, Nieuw Arch. Wisk. (3) \textbf{28} (1980), 177--185. \bibitem{CL84} H.~Cohen and H.~W. Lenstra, Jr., \emph{Primality testing and Jacobi sums}, Math. Comp. \textbf{42} (1984), no.~165, 297--330. \href{https://doi.org/10.1090/S0025-5718-1984-0726006-X}{doi:10.1090/S0025-5718-1984-0726006-X} \bibitem{Coo99} R.~J. Cook, \emph{Bounds for odd perfect numbers}, in: Number Theory (Ottawa, 1996), CRM Proc. Lecture Notes \textbf{19}, Amer. Math. Soc., Providence, RI, 1999, 67--71. \bibitem{CHN08} D.~Coppersmith, N.~Howgrave-Graham, and S.~V. Nagaraj, \emph{Divisors in residue classes, constructively}, Math. Comp. \textbf{77} (2008), no.~261, 531--545. \href{https://doi.org/10.1090/S0025-5718-07-02007-8}{doi:10.1090/S0025-5718-07-02007-8} \bibitem{FG} J.~Feitsma and W.~Galway, \emph{Tables of pseudoprimes and related data}, \url{https://www.cecm.sfu.ca/Pseudoprimes/index-2-to-64.html}. \bibitem{FLINT} The FLINT team, \emph{FLINT: Fast Library for Number Theory}, version~3.6.0, \url{https://flintlib.org}. \bibitem{Gol55} S.~W. Golomb, \emph{Sets of primes with intermediate density}, Math. Scand. \textbf{3} (1955), 264--274. \href{https://doi.org/10.7146/math.scand.a-10445}{doi:10.7146/math.scand.a-10445} \bibitem{GW03} A.~Grytczuk and M.~W\'ojtowicz, \emph{On a Lehmer problem concerning Euler's totient function}, Proc. Japan Acad. Ser. A Math. Sci. \textbf{79} (2003), no.~8, 136--138. \href{https://doi.org/10.3792/pjaa.79.136}{doi:10.3792/pjaa.79.136} \bibitem{Guy04} R.~K. Guy, \emph{Unsolved Problems in Number Theory}, 3rd ed., Problem Books in Mathematics, Springer, New York, 2004. \href{https://doi.org/10.1007/978-0-387-26677-0}{doi:10.1007/978-0-387-26677-0} \bibitem{Hag88} P.~Hagis, Jr., \emph{On the equation $M\cdot\varphi(n)=n-1$}, Nieuw Arch. Wisk. (4) \textbf{6} (1988), no.~3, 255--261. \bibitem{HB94} D.~R. Heath-Brown, \emph{Odd perfect numbers}, Math. Proc. Cambridge Philos. Soc. \textbf{115} (1994), no.~2, 191--196. \href{https://doi.org/10.1017/S0305004100072030}{doi:10.1017/S0305004100072030} \bibitem{Leh32} D.~H. Lehmer, \emph{On Euler's totient function}, Bull. Amer. Math. Soc. \textbf{38} (1932), no.~10, 745--751. \href{https://doi.org/10.1090/S0002-9904-1932-05521-5}{doi:10.1090/S0002-9904-1932-05521-5} \bibitem{Len84} H.~W. Lenstra, Jr., \emph{Divisors in residue classes}, Math. Comp. \textbf{42} (1984), no.~165, 331--340. \href{https://doi.org/10.1090/S0025-5718-1984-0726007-1}{doi:10.1090/S0025-5718-1984-0726007-1} \bibitem{Mathlib} The mathlib Community, \emph{The Lean mathematical library}, in: Proceedings of the 9th ACM SIGPLAN International Conference on Certified Programs and Proofs (CPP 2020), ACM, New York, 2020, 367--381. \href{https://doi.org/10.1145/3372885.3373824}{doi:10.1145/3372885.3373824} \bibitem{Mei74} H.~G. Meijer, \emph{Sets of primes with intermediate density}, Math. Scand. \textbf{34} (1974), 37--43. \href{https://doi.org/10.7146/math.scand.a-11502}{doi:10.7146/math.scand.a-11502} \bibitem{Mon68} H.~L. Montgomery, \emph{A note on the large sieve}, J. London Math. Soc. \textbf{43} (1968), 93--98. \href{https://doi.org/10.1112/jlms/s1-43.1.93}{doi:10.1112/jlms/s1-43.1.93} \bibitem{MV73} H.~L. Montgomery and R.~C. Vaughan, \emph{The large sieve}, Mathematika \textbf{20} (1973), no.~2, 119--134. \href{https://doi.org/10.1112/S0025579300004708}{doi:10.1112/S0025579300004708} \bibitem{dMU21} L.~de Moura and S.~Ullrich, \emph{The Lean~4 theorem prover and programming language}, in: Automated Deduction -- CADE 28, Lecture Notes in Comput. Sci., Springer, Cham, 2021, 625--635. \href{https://doi.org/10.1007/978-3-030-79876-5_37}{doi:10.1007/978-3-030-79876-5\_37} \bibitem{Nie03} P.~P. Nielsen, \emph{An upper bound for odd perfect numbers}, Integers \textbf{3} (2003), \#A14. \bibitem{Nor21} M.~Norman, \emph{A group-theoretical approach to Lehmer's totient problem}, preprint, 2021. \href{https://arxiv.org/abs/2106.11781}{arXiv:2106.11781} \bibitem{OEIS} OEIS Foundation Inc., \emph{The On-Line Encyclopedia of Integer Sequences}, sequences A050474 and A203966, \url{https://oeis.org}, accessed September 2026. \bibitem{PARI} The PARI~Group, \emph{PARI/GP}, version~2.15.4, Univ. Bordeaux, \url{https://pari.math.u-bordeaux.fr}. \bibitem{Pin06} R.~G.~E. Pinch, \emph{A note on Lehmer's totient problem}, poster, Seventh Algorithmic Number Theory Symposium (ANTS~VII), Berlin, 2006. \url{https://antsmath.org/ANTSVII/Poster/Pinch_Poster3.pdf} \bibitem{Pom77} C.~Pomerance, \emph{On composite $n$ for which $\varphi(n)\mid n-1$, II}, Pacific J. Math. \textbf{69} (1977), no.~1, 177--186. \href{https://doi.org/10.2140/pjm.1977.69.177}{doi:10.2140/pjm.1977.69.177} \bibitem{PSW80} C.~Pomerance, J.~L. Selfridge, and S.~S. Wagstaff, Jr., \emph{The pseudoprimes to $25\cdot10^9$}, Math. Comp. \textbf{35} (1980), no.~151, 1003--1026. \href{https://doi.org/10.1090/S0025-5718-1980-0572872-7}{doi:10.1090/S0025-5718-1980-0572872-7} \bibitem{Ren04} J.~Renze, \emph{Computational evidence for Lehmer's totient conjecture}, Mathematica notebook, Wolfram Library Archive, MathSource item 5483, 2004. \url{https://library.wolfram.com/infocenter/MathSource/5483/} \bibitem{SW17} J.~Sorenson and J.~Webster, \emph{Strong pseudoprimes to twelve prime bases}, Math. Comp. \textbf{86} (2017), no.~304, 985--1003. \href{https://doi.org/10.1090/mcom/3134}{doi:10.1090/mcom/3134} \bibitem{Sto24} A.~Stone, \emph{Improved upper bounds for odd perfect numbers -- Part I}, Integers \textbf{24} (2024), \#A114. \href{https://doi.org/10.5281/zenodo.14547960}{doi:10.5281/zenodo.14547960} \bibitem{Won97} E.~Wong, \emph{Computations on normal families of primes}, M.Sc. thesis, Simon Fraser University, 1997. \url{https://summit.sfu.ca/_flysystem/fedora/sfu_migrate/7394/b18771816.pdf} \bibitem{Yam23} T.~Yamada, \emph{On Lehmer's problem and related problems}, preprint, 2023; also RIMS K\^oky\^uroku No.~2285. \href{https://arxiv.org/abs/2303.16853}{arXiv:2303.16853} \end{thebibliography} \end{document}