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

Discussion Overview

The discussion revolves around the equation (p-1)(p^n+1)=4m(m+1) for odd primes p and positive integers m and n. Participants explore potential solutions, mathematical reasoning, and the implications of their findings, focusing on the relationships between m, n, and p.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant suggests that m must be odd, but expresses uncertainty about its implications and seeks relevant theorems.
  • Another participant attempts to solve the equation as a quadratic, concluding that certain conditions must be met for m to be an integer.
  • A correction is made regarding the quadratic solution, leading to the conclusion that 1+(p-1)(p^n+1) must be a perfect square.
  • Further discussion reveals that (p-1)(p^n+1) must be divisible by 4, although some participants question the necessity of this condition.
  • One participant presents a specific solution for p=5, m=2, and n=1, challenging the earlier claim that m must be odd.
  • Another participant argues that m can be both odd or even, providing a general solution for n=1 and m=(p-1)/2 for all odd primes.
  • A later contribution claims to have worked out a full solution, discussing the implications of the equation and the conditions under which it holds.

Areas of Agreement / Disagreement

Participants express differing views on whether m must be odd, with some providing counterexamples and others maintaining their original claims. The discussion remains unresolved regarding the generality of solutions and the conditions under which they hold.

Contextual Notes

Some participants note limitations in their reasoning, such as potential errors in solving the quadratic or assumptions about the divisibility of terms. The discussion reflects ongoing exploration rather than definitive conclusions.

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
820
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