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 Lisanne‭ · 2024-05-07T13:38:29Z (8 months ago)
First I plug in $k = 1,...,4$ and only find $k=1$ as a solution. Hence I conjecture that there are not solutions apart from $k = 1$

Before we prove this we should recall the geometric series formula
$$\sum_{i = 0}^k 9^i = \frac{9^k - 1}{9 - 1}.$$ (prove this via induction or using polynomials)

This means we are solving the equation $$(9^k - 1) = 8n^2,$$ for positive integers $n$ and $k$.

Notice that $9^k = (3^k)^2$, so we can factor the left hand side to get
$$(3^k + 1)(3^k - 1) = 8n^2.$$

We compute $$\gcd(3^k + 1, 3^k - 1) = \gcd(2, 3^k - 1) = 2.$$
This means that one of the two factors is $2a^2$ and the other factor is $4b^2$, where $a$ is odd.

Looking mod $3$ we see that $3^k + 1 \neq 2a^2$, so we need to solve
$$3^k - 1 = 2a^2,$$
$$3^k + 1 = 4b^2.$$

We can rearrange the second equation to get
$$3^k = (2b + 1)(2b - 1).$$
Since $3$ is prime, we see that both factors are powers of $3$. Since they differ by $2$ we must have $2b + 1 = 3$ and $2b - 1 = 1$. This corresponds to the solution $a = b = n = k = 1$ and this is therefore the only solution.