Find all odd n such that n|3^{n}+1

  • Thread starter Thread starter LCSphysicist
  • Start date Start date
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
9 replies · 5K views
LCSphysicist
Messages
644
Reaction score
163
Homework Statement
Find all odd n such n|3^{n}+1
Relevant Equations
.
Find all odd n such ##n|(3^{n}+1)##

I don't know exactly what to do, the same problem can be stated as to seek solutions of this equation:
##3^{n} = 2 + n \mu##

But if so, we are outing from Number theory and going to Calculus, so i don't like this way to solve.

Do you know another method?

Now the only prime number i can find is 2 using Fermat theorem, so i think the solutions aren't primes, this may help.
 
Physics news on Phys.org
LCSphysicist said:
Homework Statement:: Find all odd n such n|3^{n}+1
Relevant Equations:: .

Find all odd n such ##n|(3^{n}+1)##

I don't know exactly what to do, the same problem can be stated as to seek solutions of this equation:
##3^{n} = 2 + n \mu##
I don't have any advice on this problem, but I don't think the above is right. If n is odd, and n divides ##3^n + 1##, then ##3^n + 1## has to be an integer multiple of n.
IOW, ##3^n + 1 = kn = k(2m + 1)##, where m is an integer.
So the equation is ##3^{2m + 1} + 1 = 2km + k##
LCSphysicist said:
But if so, we are outing from Number theory and going to Calculus, so i don't like this way to solve.
I don't see that the equation has anything to do with calculus.
LCSphysicist said:
Do you know another method?

Now the only prime number i can find is 2 using Fermat theorem, so i think the solutions aren't primes, this may help.
But 2 isn't odd, so doesn't satisfy the requirement of an odd number n that divides ##3^n + 1##.
 
  • Like
Likes   Reactions: Delta2 and LCSphysicist
I often attack these problems by trying some numbers and seeing what insight I get.

n = 1 works.
n from 3 to 27 do not.
Conjecture: only 1 works.

I would then set about trying to prove that.
 
  • Like
Likes   Reactions: jim mcnamara and LCSphysicist
Mark44 said:
I don't have any advice on this problem, but I don't think the above is right. If n is odd, and n divides ##3^n + 1##, then ##3^n + 1## has to be an integer multiple of n.
IOW, ##3^n + 1 = kn = k(2m + 1)##, where m is an integer.
So the equation is ##3^{2m + 1} + 1 = 2km + k##
I don't see that the equation has anything to do with calculus.
But 2 isn't odd, so doesn't satisfy the requirement of an odd number n that divides ##3^n + 1##.
Oh yes the equation i wrote above was wrong, i appreciate your correction.

"I don't see that the equation has anything to do with calculus."

We could changing values and see how the graph of y = 3^{2m + 1} + 1 - (2km + k) behave with it, but you have more knowledge than me, so probably it has no sense indeed.

" But 2 isn't odd, so doesn't satisfy the requirement of an odd number n that divides 3n+1. "
As i said, 2 is the only prime, it was just a way to say that there is no odd prime that satisfy this :)

@fresh_42 and @Vanadium 50 has a good point, i will try to find a contradiction by absurd that may arise if n is different from 1, and post here what i found.
 
Since 1 is in fact the smallest n that satisfies this, it seems like you need to try something different?

Also I don't think ##3^2+1=3+1## (n=2) so I don't understand why nm equals the thing you say it does. Maybe I'm reading it wrong.

The only marginally clever thing I've figured out so far is that along with not being divisible by 2, n is not divisible by 3 either.
 
  • Like
Likes   Reactions: Delta2
Office_Shredder said:
Since 1 is in fact the smallest n that satisfies this, it seems like you need to try something different?

Also I don't think ##3^2+1=3+1## (n=2) so I don't understand why nm equals the thing you say it does. Maybe I'm reading it wrong.

The only marginally clever thing I've figured out so far is that along with not being divisible by 2, n is not divisible by 3 either.
Yes, I confused ##3^n+1## with ##3^n-1## in my scribblings and divided what shouldn't have been divided, sorry. The solution ##n=1## can easily be excluded by concentrating on a minimal prime factor of ##n##, so that would be less a problem.

Edit (to be taken with caution since it is quite late at night here):
Maybe the idea can be saved. Let's write
\begin{align*}
n\cdot m' &=3^n+1=(3^{n-1}-3^{n-2}+3^{n-3}\mp \ldots -3+1)\cdot (3+1)\\
n\cdot \dfrac{m'}{4}&=n\cdot m = 3^{n-1}-3^{n-2}+3^{n-3}\mp \ldots -3+1 \equiv 1 \mod 3 \,,\quad \equiv 1 \mod 2\\
(2r+1)\cdot (2s+1)&=4rs+2s+2r+1=3^{n-1}-3^{n-2}+3^{n-3}\mp \ldots -3+1\\
2(2rs+r+s)&=3\cdot (3^{n-2}-3^{n-3}+3^{n-4}\mp \ldots +3-1)
\end{align*}
That's where I thought we could possibly reach a smaller solution in case ##n>1## by cancelling ##2## and ##3## from
$$
\dfrac{2rs+r+s}{3}=\dfrac{3^{n-2}-3^{n-3}+3^{n-4}\mp \ldots +3-1}{2}
$$
 
Last edited: