Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

#1: Initial revision by user avatar Servaes‭ · 2023-06-17T21:18:11Z (11 months ago)
Not an answer, but too long for a comment:

Suppose $n$ is a positive integer such that $\tau(n)=3$ and $\tau(n+1)=6$ and $\tau(n+2)=4$. You already note that then $n=p^2$ for some prime number $p$, and $n+1=2q^2$ for some prime number $q$. It follows that
$$p^2-2q^2=-1,$$
which has the form of a Pell equation. It follows that there is an integer $k$ such that
$$p+q\sqrt{2}=(1+\sqrt{2})(3+2\sqrt{2})^k=(1+\sqrt{2})^{2k+1}.$$
Explicitly the coefficients of the right hand side are given by

\begin{array}{ccc}
x_k &=& \frac{(1+\sqrt{2})^{1-2k}-(1+\sqrt{2})^{2k-1}}{2},\\
y_k &=& \frac{(1+\sqrt{2})^{1-2k}+(1+\sqrt{2})^{2k-1}}{2\sqrt{2}}.
\end{array}

In particular we see that if $2k-1$ is not prime, say $2k-1=ab$ with $a,b>1$, then $x_k$ has two factors
$$(1+\sqrt{2})^a-(1+\sqrt{2})^a
\qquad\text{ and }\qquad
(1+\sqrt{2})^b-(1+\sqrt{2})^b,$$
which are both greater than $2$, and so $x_k$ is not prime, and similarly $y_k$ is not prime. This means there exists a prime number $r$ such that

\begin{array}{ccc}
p &=& \frac{(1+\sqrt{2})^r-(1+\sqrt{2})^{-r}}{2},\\
q &=& \frac{(1+\sqrt{2})^r+(1+\sqrt{2})^{-r}}{2\sqrt{2}}.
\end{array}

A brute force check shows that there is no other solution $n$ with $n\leq10^{200}$.