Solving (p-1)(p^n+1)=4m(m+1) for odd primes p and positive integers m and n

  • Context: Graduate 
  • Thread starter Thread starter Gib Z
  • Start date Start date
  • Tags Tags
    Number theory Theory
Click For Summary
SUMMARY

The equation (p-1)(p^n+1)=4m(m+1) for odd primes p and positive integers m and n has been analyzed, revealing that m can be both odd and even. A specific solution exists for p=5, m=2, and n=1, which contradicts the initial claim that m must be odd. The quadratic form m=\frac{-1\pm \sqrt{1+(p-1)(p^n+1)}}{2} indicates that for m to be an integer, 1+(p-1)(p^n+1) must be a perfect square. The discussion concludes that for every odd prime p, a solution exists where n=1 and m=(p-1)/2.

PREREQUISITES
  • Understanding of quadratic equations and their solutions
  • Familiarity with properties of odd primes
  • Knowledge of perfect squares and divisibility rules
  • Basic experience with mathematical proofs and problem-solving techniques
NEXT STEPS
  • Study the properties of quadratic equations in number theory
  • Explore the implications of odd primes in algebraic equations
  • Research perfect squares and their applications in integer solutions
  • Investigate divisibility rules and their role in solving equations
USEFUL FOR

Mathematicians, number theorists, and students interested in algebraic equations involving primes and integer solutions.

Gib Z
Homework Helper
Messages
3,341
Reaction score
7
This isn't homework, but an interest question I found on the web. I can't solve it though...

Let p be an odd prime. Determine all pairs (m,n) where m and n are positive integers and satisfy the below:

(p-1)(p^n+1)=4m(m+1).

I have done by some simple inspection that m must be odd, but I'm not sure that helps. Does anyone know any theorems that may help?
 
Physics news on Phys.org
I have made a tiny bit of progress I think.

I Make it a quadratic and solved:
m=\frac{-1\pm \sqrt{1-(p-1)(p^n+1)}}{2}.

Since m must be odd, 2m must be even. So the numerator must be even. So the square root must be odd. But for m to be an integer, the square root must also be an integer. So I get 1-(p-1)(p^n+1) must be a perfect square. How Do i continue?EDIT: Looking again...that can't be right because (p-1)(p^n+1) must be less than one, or exactly 1. It can't be less than one for obvious reasons, and it can't be exactly 1 either.

EDIT2 : Solved quadratic wrong..Ill try again
 
Last edited:
Ok so the actual solution to the quadratic is
m=\frac{-1\pm \sqrt{1+(p-1)(p^n+1)}}{2}, sign error...

Well the numerator must be even, so the square root must be odd. So to be an integer, 1+(p-1)(p^n+1) must be the square of an odd number, so of the form (2k+1)^2 where k is some integer. So (p-1)(p^n+1)=4k^2+4k, so (p-1)(p^n+1) must be divisible by 4.

Can anyone help me from here?
 
I Just realized now that I did Nothing. Nothing at all. The result I achieved can be done by dividing the original questions equation by 4...
 
Alternatively, p-1 is even, p^n + 1 is even, so it must be divisible by four. So the equation doesn't even force the issue, just the way that (p-1)(p^n + 1) works
 
where did u find it?
 
It was on some other forums but no solution was found there either, and the thread was closed for some reason..
 
Well, solutions do exist (if p=5, m=2 n=1). Interestingly, this disproves your m is odd claim (which seemed, well... odd to me, considering m+1 would always be even then).
 
how is m always odd?

(p-1)(p^n+1)=4m(m+1)

if p is odd, then p - 1 is even. since p^n is always odd (i checked it using a C++ program :) ), then the expression p^n - 1 is even. even times even is even. so, in order for the whole thing to be equal, the right side must be even. if you put m as even, then you get (even)*(odd) which equals even.If you put m as odd, then you still get an even right side.
 
  • #10
Office_Shredder said:
Well, solutions do exist (if p=5, m=2 n=1). Interestingly, this disproves your m is odd claim (which seemed, well... odd to me, considering m+1 would always be even then).
I sometimes wonder whether the poster is playing games with his posts. Anyway, a solution for every odd prime is n = 1 and m = (p-1)/2 so m can be both odd or even. In fact this solution works for every odd composite p as well, but that is precluded in the statement of the problem.
 
  • #11
Jesus Christ..sorry I haven't replied guys But I worked out the full solution in case anyones interested :)

(p-1)(p^n+1)=4m(m+1)
p^{n+1}-p^n+p = 4m(m+1) + 1 = (2m+1)^2

Let k be some odd number, since of the form 2m+1

]p^{n+1}-p^n+p=k^2

For n=1, solving for m gives the solution given by ramsey. For n > 1, assume it has solutions. Then P divides K. Then divide both sides by p^2. That gives p^(n-1) - p^(n-3) + 1/(p) = k^2/(p^2) = (k/p)^2

Since it is implied P divides k, the RHS should be an integer, but the LHS is not. Done.
 

Similar threads

  • · Replies 12 ·
Replies
12
Views
764
Replies
9
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 17 ·
Replies
17
Views
7K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
Replies
15
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 26 ·
Replies
26
Views
1K
  • · Replies 13 ·
Replies
13
Views
4K