\documentclass[12pt]{amsart} \usepackage{amsmath,amssymb,amsthm} \newtheorem{theorem}{Theorem}[section] \newtheorem{proposition}[theorem]{Proposition} \newtheorem{lemma}[theorem]{Lemma} \newcommand{\Z}{\mathbb{Z}} \newcommand{\e}{\mathrm{e}} \newcommand{\C}{\mathrm{C}} \begin{document} \section{Definition and Notation} We fix some notation for studying an obtuse regime away from the boundary. \subsection*{Truncated obtuse region} Fix $\eta\in(0,1/6)$. For $n\ge 1$, define the set of integer pairs \begin{equation}\label{eq:Hn} \mathcal H_n(\eta):=\{(p,q)\in\mathbb Z^2:\ \eta n\le p,q,\ \ p+q<\tfrac{n}{2},\ \gcd(p,q,n)=1\}. \end{equation} The \emph{hard window} corresponds to the subregion where additionally $p+q\ge \tfrac{n}{3}$. \subsection*{Largest prime divisor} Fix notation as follows. Let $P:=P^+(n)$ be the largest prime divisor of $n$, and write \[ n=P^{\alpha}m,\qquad \alpha:=v_P(n)\ge 1,\qquad \gcd(P,m)=1. \] \subsection*{Least nonnegative residue} Write $[x]_n$ for the least nonnegative residue of $x$ modulo $n$. We also let \begin{equation} U_n:=\{a\in\{1,2,\dots,n\}:\ \gcd(a,n)=1\} \end{equation} be the reduced residue system modulo $n$. Furthermore, a unit $a\in U_n$ is called \emph{usable} if \[ 2a\not\equiv 2\pmod n. \] \subsection*{A counting function} We define a counting function $S(p,q)$ that tracks the number of units $a$ for which $[ap]_n$ and $[aq]_n$ are simultaneously small. We define the indicator of the interval $I_m:=\{1,2,\dots,m\}\subset\Z/n\Z$ by \[ 1_{I_m}(x):= \begin{cases} 1,& 1\le [x]_n\le m,\\ 0,& \text{otherwise.} \end{cases} \] For $(p,q)\in\mathcal{H}_n(\eta)$, we define \[ m_p:=2p-1\qquad and \qquad m_q:=2q-1, \] and the counting function (using indicator functions) \begin{equation} \label{eq:Sdef} S(p,q):=\sum_{a\in U_n} 1_{I_{m_p}}(ap)\,1_{I_{m_q}}(aq). \end{equation} In the hard window, we have $m_p,m_qn/2$. \smallskip \noindent\emph{First range ($\ell\le n/2$).} If $b=0$, then the term $\ell=0$ contributes $m/n$. The remaining terms in this range are $\ell=jd$ with $1\le j\le J$, hence we have \[ \sum_{\substack{\ell\equiv 0\ (d)\\ 1\le \ell\le n/2}}|\widehat f(\ell)| \le \sum_{j=1}^J \frac{1}{2jd} =\frac{H_J}{2d}. \] If $1\le b\le d-1$, then the term $j=0$ (i.e.\ $\ell=b$) contributes at most $1/(2b)$, and for $j\ge 1$ we have $b+jd\ge jd$, so we have \[ \sum_{\substack{\ell\equiv b\ (d)\\ 1\le \ell\le n/2}}|\widehat f(\ell)| \le \frac{1}{2b}+\sum_{j=1}^J \frac{1}{2(b+jd)} \le \frac{1}{2b}+\sum_{j=1}^J \frac{1}{2jd} =\frac{1}{2b}+\frac{H_J}{2d}. \] \smallskip \noindent\emph{Second range ($\ell>n/2$).} Write $\ell=n-t$ with $1\le t\frac{6R(1+\log n)^2}{d}\right\}. \] By \eqref{eq:avgS}, we have $|\mathfrak{B}_q(R)|\le |U_d|/R=\varphi(d)/R$. Since $\gcd(q,d)=1$, multiplication by $-q$ is a bijection of $U_d$, so define the corresponding exceptional set of residue classes for $p$ by \[ \mathcal{B}_q(R)\ :=\ \{-qu \bmod d:\ u\in \mathfrak{B}_q(R)\}\ \subseteq\ (\mathbb{Z}/d\mathbb{Z})^\times. \] Then $|\mathcal{B}_q(R)|=|\mathfrak{B}_q(R)|\le \varphi(d)/R$, and for any $p$ with $\gcd(p,P)=1$, the element $u\equiv -pq^{-1}\pmod d$ satisfies $u\notin \mathfrak{B}_q(R)$ if and only if $p\bmod d\notin \mathcal{B}_q(R)$. If $p\bmod d\notin \mathcal{B}_q(R)$, then $u\notin \mathfrak{B}_q(R)$, and using $|\widehat f_p(0)|\le 1$ we obtain \begin{displaymath} \begin{split} &|E_{P^\alpha}(p,q)|\\ &\ \ \ \ \ \ \ \ \ \ \le \varphi(n)\left(\frac{1+\log(n/d)}{d}+\frac{6R(1+\log n)^2}{d}\right) \le 7R\,\varphi(n)\frac{(1+\log n)^2}{d} \le 7R\,\varphi(n)\frac{(1+\log n)^2}{P}. \end{split} \end{displaymath} Finally, combining this with \eqref{eq:EP0crude} and using $\frac{1}{P-1}\le \frac{2}{P}$ (for $P\ge 2$) gives \[ |E(p,q)|\le |E_{P_0}(p,q)|+|E_{P^\alpha}(p,q)| \le \left(2+7R\right)\varphi(n)\frac{(1+\log n)^2}{P} \le 9R\,\varphi(n)\frac{(1+\log n)^2}{P}, \] since $R\ge 2$. \end{proof} \section{Main theorem}\label{Section6} \begin{theorem}\label{thm:main} Fix $\eta\in(0,1/6)$ and $\theta\in(0,1)$. There exists $N_0(\eta,\theta)$ such that for all $n\ge N_0(\eta,\theta)$ with largest prime factor $P:=P^+(n)\ge n^\theta$, the following holds. \smallskip\noindent For all but $o(1)$ proportion of pairs $(p,q)\in\mathcal{H}_n(\eta)$ with $\gcd(q,P)=1$ (and hence for all but $o(1)$ proportion of all pairs in $\mathcal{H}_n(\eta)$), we have \[ S(p,q)\ge 5. \] \end{theorem} \begin{proof} Write $n=P^{\alpha}m$ with $\alpha:=v_P(n)\ge 1$ and $\gcd(P,m)=1$, and set $d:=P^{\alpha}$. Let $R:=\lceil \log n\rceil\ge 2$. \smallskip\noindent \emph{Discarding a negligible exceptional set of pairs.} Fix $q$ with $\gcd(q,P)=1$. By Proposition~\ref{prop:errorBound}, there is a set $\mathcal B_q(R)\subseteq (\mathbb Z/d\mathbb Z)^\times$ with $|\mathcal B_q(R)|\le \varphi(d)/R$ such that the error bound in Proposition~\ref{prop:errorBound} holds whenever $\gcd(p,P)=1$ and $p\bmod d\notin \mathcal B_q(R)$. Let $\mathcal E_n$ be the set of pairs $(p,q)\in\mathcal H_n(\eta)$ with $\gcd(q,P)=1$ for which either $P\mid p$ or $p\bmod d\in \mathcal B_q(R)$. For each fixed $q$, the constraint $p+q<\tfrac{n}{2}$ restricts $p$ to an interval of length $