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

How to find perfect squares such that their base 9 representation is all 1s?

+5
−0

I am working on solving all of the problems in from the Macalester College Problems of the Week that are available in this archive, and am currently working on MacPOW 1114:

Squares of 1

Find all perfect squares whose base 9 representation consists of only 1s.

Here is my current progress on this:

  • First of all, we can see that 1 is the only trivial solution - there of course have to be other non-trivial solutions.

So really our problem here is finding square numbers of the form$$\sum_{n=0}^k9^n$$however I'm not really sure about how I should go about finding square numbers of that form. I guess that if I replace 9 with $x$, then the problem really is equivalent to finding polynomials $p(x)=x^n+a_1x^{n-1}+a_2x^{n-2}+\cdots+1$ such that$$p(x)^2=x^{2n}+x^{2n-1}+x^{2n-2}+\cdots+1$$although my question is: How do I solve this problem? I'm not sure what to do from here, so any help is appreciated.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

0 comment threads

1 answer

+4
−0

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.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

0 comment threads

Sign up to answer this question »