Proving something cant be written as a square

  • Context: Graduate 
  • Thread starter Thread starter S.Iyengar
  • Start date Start date
  • Tags Tags
    Square
Click For Summary

Discussion Overview

The discussion revolves around the proof that the expression (p^m+3)(p^a-1)+4 cannot be a perfect square, where p is an odd prime and m, a are non-negative integers. Participants explore various approaches to the proof, including induction and reductio ad absurdum, while addressing specific claims and questions about the proof's validity and structure.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant proposes an induction-based proof, suggesting that the expression cannot be a perfect square due to its structure when expanded.
  • Another participant challenges the proof by providing a counterexample when a=0, noting that it yields a perfect square.
  • Questions arise regarding the necessity of proving the expression fails for n+2, with some participants suggesting it is sufficient to show failure for even n.
  • Concerns are raised about the use of the expression A in the proof, with participants expressing doubts about the validity of the conclusions drawn from it.
  • Several participants engage in clarifying misunderstandings and correcting each other's interpretations of the proof steps.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the validity of the proof. Multiple competing views remain, with some arguing for the proof's correctness while others highlight potential errors and counterexamples.

Contextual Notes

There are unresolved questions regarding the assumptions made in the proof, particularly about the implications of p being an odd prime versus simply being odd. Additionally, the role of the expression A and its features in the proof remains unclear, leading to further debate.

Who May Find This Useful

Readers interested in mathematical proofs, particularly in number theory and the properties of prime numbers, may find the discussion relevant.

S.Iyengar
Messages
55
Reaction score
0
Prove that (p^m+3)(p^a-1)+4 is not a perfect square. Here the p is an odd prime and all exponents are non-negative. Given m=2n+a, for some n>0 and for some a ( where a is an integer )
 
Last edited:
Mathematics news on Phys.org
Hi,
this is disproved if you take a=0 since 4 is a square
 
You go like this.

First, expand out as follows: [itex]p^{m+a}-p^m+3p^a-3+4=p^{m+a}-p^m+3p^a+1[/itex]

Note that since p is an odd prime, this is an even number, so the only way it can be a square is that it is the square of an even number. By induction, we will show this can't hold.

First step is to disprove that this is not the square of zero, but since p is positive and we have a plus one sign, this expression is not zero. So the first step of induction is complete.

Second step is to prove that if it fails for n, it also fails for n+2. To achieve this, we acknowledge that [itex](n+2)^2=n^2+4n+4[/itex]. We will derive a contradiction from this. Since two sides must be equal, we get [itex]n^2+4n=p^{m+a}-p^m+3p^a-3[/itex]. Now, define the right hand side to be A and solve the second-degree equation to get [itex]n=-2\pm\sqrt{4-A}=-2\pm\sqrt{7-p^{m+a}+p^m-3p^a}[/itex] so we get [itex]-(n+2)^2=p^{m+a}-p^m+3p^a-7[/itex]. From here, we see that [itex]-(n+2)^2=(n+2)^2-4[/itex], so it easily follows that [itex](n+2)^2=4[/itex] and n=0. But we assumed that the expression could not hold for n=0 in the first place! Contradiction. Hence it is impossible to express this as a perfect square.

In general, what you do is to use reductio ad absurdum in such questions. Just play with the expression for a while (like I did), and you will eventually hit a contradiction.
 
Last edited:
Millennial said:
You go like this.

First, expand out as follows: [itex]p^{m+a}-p^m+3p^a-3+4=p^{m+a}-p^m+3p^a+1[/itex]

Note that since p is an odd prime, this is an even number, so the only way it can be a square is that it is the square of an even number. By induction, we will show this can't hold.

First step is to disprove that this is not the square of zero, but since p is positive and we have a plus one sign, this expression is not zero. So the first step of induction is complete.

Second step is to prove that if it fails for n, it also fails for n+2. To achieve this, we acknowledge that [itex](n+2)^2=n^2+4n+4[/itex]. We will derive a contradiction from this. Since two sides must be equal, we get [itex]n^2+4n=p^{m+a}-p^m+3p^a-3[/itex]. Now, define the right hand side to be A and solve the second-degree equation to get [itex]n=-2\pm\sqrt{4-A}=-2\pm\sqrt{7-p^{m+a}+p^m-3p^a}[/itex] so we get [itex]-(n+2)^2=p^{m+a}-p^m+3p^a-7[/itex]. From here, we see that [itex]-(n+2)^2=(n+2)^2-4[/itex], so it easily follows that [itex](n+2)^2=4[/itex] and n=0. But we assumed that the expression could not hold for n=0 in the first place! Contradiction. Hence it is impossible to express this as a perfect square.

Simply awesome proof!, I enjoyed it. I thank you whole-heartedly for your help.. thank you very much.
But I didnt understand the answer clearly. I didn't understand the following things sir.

1) " Note that since p is an odd prime, this is an even number ". Is that already known sir? . How can one prove that statement ?
2) "Second step is to prove that if it fails for n, it also fails for n+2." why is that so sir?. Why we need to prove for [itex]n+2[/itex]?
3) " [itex]n=-2\pm\sqrt{4-A}[/itex] " . Solving that equation will yield you something different. [itex]n^2+4n-A=0.[/itex]. Will be the equation. Applying quadratic formula we get [itex]\frac{-4\pm \sqrt{16+4A}}{2}[/itex]. So we would end up with this. [itex]-2\pm \sqrt{4+A}[/itex]. So you can't end up getting [itex]-(n+2)^2=p^{m+a}-p^m+3p^a-7[/itex]. Thanks a lot sir, for patiently answering my questions.
 
Last edited:
S.Iyengar said:
Never mind

Please note that it's not good form to delete your original post. Deleting it after it's been replied to means that others don't know what you asked in the first place, and no one else can learn from the exchange.
 
Curious3141 said:
Please note that it's not good form to delete your original post. Deleting it after it's been replied to means that others don't know what you asked in the first place, and no one else can learn from the exchange.

Sorry sir, actually I didn't know how to edit. I suddenly edited the whole question and it lead to such situation. Please don't mind
 
I will be glad to answer your questions, though I strongly advise you work the proof out yourself.

1) Actually, it is sufficient that p is odd, being prime is not necessary. Just prove that the powers of an odd number are always odd, and then it will be straightforward to show.

2) You are right, I did make a mistake there, but it really does not change the course of the proof. I was testing if you would actually see my mistake. In the correct case you posted, you get an even graver contradiction. I won't post it here, you should be able to derive it from there.
 
Millennial said:
I will be glad to answer your questions, though I strongly advise you work the proof out yourself.

1) Actually, it is sufficient that p is odd, being prime is not necessary. Just prove that the powers of an odd number are always odd, and then it will be straightforward to show.

2) You are right, I did make a mistake there, but it really does not change the course of the proof. I was testing if you would actually see my mistake. In the correct case you posted, you get an even graver contradiction. I won't post it here, you should be able to derive it from there.

Sir thanks a lot for your reply. [STRIKE]But I didn't get any contradiction now sir [/STRIKE]. I have worked out the entire proof.. I did get a contradiction which is [itex](n+2)^4=(n-2)^4[/itex]. Thank you sir.
 
Last edited:
Millennial said:
I will be glad to answer your questions, though I strongly advise you work the proof out yourself.

1) Actually, it is sufficient that p is odd, being prime is not necessary. Just prove that the powers of an odd number are always odd, and then it will be straightforward to show.

2) You are right, I did make a mistake there, but it really does not change the course of the proof. I was testing if you would actually see my mistake. In the correct case you posted, you get an even graver contradiction. I won't post it here, you should be able to derive it from there.

Sir I wanted to hear something more about this sir . "Second step is to prove that if it fails for n, it also fails for n+2." Why should we take such construct there ?.
 
  • #10
Because we only need to prove it fails for even n, since it already fails for odd (your first question.) To do that, you start with n=0 and then use induction that covers only even numbers rather than all.
 
  • #11
Millennial said:
Because we only need to prove it fails for even n, since it already fails for odd (your first question.) To do that, you start with n=0 and then use induction that covers only even numbers rather than all.

Thanks a lot for your reply. I am in debt with your interaction sir.
 
  • #12
This is the strangest thread.
Millennial, did it not strike you as odd that you have not used any of the features of the expression A? You could substitute all sorts of expressions for A and apparently deduce the same contradiction. Clearly there was an error, which you found. But I harbour very strong doubts that you could have repaired it so easily.
S.Iyengar, I am concerned that you may have fallen into a similar error. Would you mind posting your solution?
 
  • #13
haruspex said:
This is the strangest thread.
Millennial, did it not strike you as odd that you have not used any of the features of the expression A? You could substitute all sorts of expressions for A and apparently deduce the same contradiction. Clearly there was an error, which you found. But I harbour very strong doubts that you could have repaired it so easily.
S.Iyengar, I am concerned that you may have fallen into a similar error. Would you mind posting your solution?

Yes sir, you are right. I ended up with a blunder at-last. I didn't look at the equation sign. Ashhhhhh
 
Last edited:
  • #14
Millennial said:
I will be glad to answer your questions, though I strongly advise you work the proof out yourself.

1) Actually, it is sufficient that p is odd, being prime is not necessary. Just prove that the powers of an odd number are always odd, and then it will be straightforward to show.

2) You are right, I did make a mistake there, but it really does not change the course of the proof. I was testing if you would actually see my mistake. In the correct case you posted, you get an even graver contradiction. I won't post it here, you should be able to derive it from there.

Sir, I am sure that we don't get any contradiction if we go through the same course of proof. Yesterday I thought that I got a contradiction. But I too really made a mistake in the case of sign.
 
  • #15
oli4 said:
Hi,
this is disproved if you take a=0 since 4 is a square

Sir, my proof has turned to be not correct. Can you give some hints in proving that ?
There "a" is non-zero sir
 
Last edited:
  • #16
Yes, I think I made a mistake there. I used another logic this time and came up with a contradiction. I won't post it here, I will tell you what kind of a contradiction it is. Try to obtain it yourself.

Contradiction: Let n be the number which gives the expression you gave when squared. Then, n can't be divided by p. However, either n-4 and n+1, or n-2 and n-1 are divisable by p. From here, it is easy to see that only the first case can be valid where p is 5. However, with some effort you can show that a perfect square can be written as 5x+1 if and only if the number to be squared is in the form 5y+1. Since this can't hold with your expression (because if it did, n+1 would not be divisable by 5), we achieve a contradiction.
 
Last edited:
  • #17
Millennial said:
Yes, I think I made a mistake there. I used another logic this time and came up with a contradiction. I won't post it here, I will tell you what kind of a contradiction it is. Try to obtain it yourself.

Contradiction: Let n be the number which gives the expression you gave when squared. Then, n can't be divided by p. However, either n-4 and n+1, or n-2 and n-1 are divisable by p. From here, with some calculations, it follows that p is either 2 or irrational.

Sir very nice answer, But my brain is small sir. I am not as intelligent as you. So can you elaborate that a bit.

I mean did you use the induction still ?.
 
  • #18
Millennial said:
Yes, I think I made a mistake there. I used another logic this time and came up with a contradiction. I won't post it here, I will tell you what kind of a contradiction it is. Try to obtain it yourself.

Contradiction: Let n be the number which gives the expression you gave when squared. Then, n can't be divided by p. However, either n-4 and n+1, or n-2 and n-1 are divisable by p. From here, it is easy to see that only the first case can be valid where p is 5. However, with some effort you can show that a perfect square can be written as 5x+1 if and only if the number to be squared is in the form 5y+1. Since this can't hold with your expression (because if it did, n+1 would not be divisable by 5), we achieve a contradiction.

Sir I tried it day and night sir. I would be extremely happy if you can post it here.
 
  • #19
I used modular arithmetic this time, along with reductio ad absurdum.

Here is the first thing I did. I used the properties of the expression you gave as follows:

[tex]n^2=p^{m+a}-p^m+3p^a+1[/tex]
[tex]n^2-1=(n-1)(n+1)=p^{m+a}-p^m+3p^a=p^a(p^m-p^{m-a}+3)[/tex]

From here, you see either n-1, n+1, or both are divisable by p (since a is nonzero.) If both were divisable, it would imply p=2, which you stated can't be true; since p is an odd prime. I hope you can carry the proof on.
 
  • #20
Millennial said:
I used modular arithmetic this time, along with reductio ad absurdum.

Yes sir, I do know that you might have used modular arithmetic when you deal with divisibility. I too tried a lot reducing it. But I found out that if n mod 4 = 2 or 3 then n is not a perfect square. But I am unable to prove further.

I would be happy if you can elaborate and send me the proof.
 
  • #21
Millennial said:
I used modular arithmetic this time, along with reductio ad absurdum.

Here is the first thing I did. I used the properties of the expression you gave as follows:

[tex]n^2=p^{m+a}-p^m+3p^a+1[/tex]
[tex]n^2-1=(n-1)(n+1)=p^{m+a}-p^m+3p^a=p^a(p^m-p^{m-a}+3)[/tex]

From here, you see either n-1, n+1, or both are divisable by p (since a is nonzero.) If both were divisable, it would imply p=2, which you stated can't be true; since p is an odd prime. I hope you can carry the proof on.

Yes sir, indeed a nice argument and nice proof this time. But how about proving for (n+2)^2 ? . Shall I need to use the same logic master ?
 
  • #22
You don't need to prove it for n+2.
 
  • #23
Millennial said:
I used modular arithmetic this time, along with reductio ad absurdum.

Here is the first thing I did. I used the properties of the expression you gave as follows:

[tex]n^2=p^{m+a}-p^m+3p^a+1[/tex]
[tex]n^2-1=(n-1)(n+1)=p^{m+a}-p^m+3p^a=p^a(p^m-p^{m-a}+3)[/tex]

From here, you see either n-1, n+1, or both are divisable by p (since a is nonzero.) If both were divisable, it would imply p=2, which you stated can't be true; since p is an odd prime. I hope you can carry the proof on.

Sorry sir, a small doubt again. you said "you see either n-1, n+1, or both are divisable by p, If both were divisable, it would imply p=2". But if both are not-divisible at the same time , I mean if either n-1 or n+1 is divisible then what is the case?
 
  • #24
That is the part which you should answer.
 
  • #25
Millennial said:
That is the part which you should answer.

Sir, I would be really happy if you can give some clue. I am not trained in modular arithmetic. I am not asking for complete proof . But only hints in that direction.
 
  • #26
S.Iyengar said:
Sir, my proof has turned to be not correct. Can you give some hints in proving that ?
There "a" is non-zero sir
Hi, is it me or the original statement has changed ?
I remember a and m to be non negative, and I don't remember this m=2n+a for some integer n
So anyway, when I said a=0 disproves it, I was not talking about the proof given later, it wasn't yet here anyway, I was just pointing at the fact that you were trying to prove something which is not true as stated
Do you have any context for this question ? are you being stuck in the middle of a 'bigger' proof that would rely on this to be validated ? or is this the real exercise ? can you state it exactly as it comes ?
If it is an exercise, in which context does it come ? you are often asked to apply some recently learned theorem or rule or lemma.. that would help everyone I think.
Meanwhile, I didn't look closely at the other proof you say turned out to be wrong or incomplete, but I saw among comments that there was something about odd/even numbers, so one thing is certain, for this expression to be a square of some integer, this integer has to be even.

Cheers...
 
  • #27
Millennial said:
I used modular arithmetic this time, along with reductio ad absurdum.

Here is the first thing I did. I used the properties of the expression you gave as follows:

[tex]n^2=p^{m+a}-p^m+3p^a+1[/tex]
[tex]n^2-1=(n-1)(n+1)=p^{m+a}-p^m+3p^a=p^a(p^m-p^{m-a}+3)[/tex]

From here, you see either n-1, n+1, or both are divisable by p (since a is nonzero.) If both were divisable, it would imply p=2, which you stated can't be true; since p is an odd prime. I hope you can carry the proof on.

There is another potential error here sir. p doesn't divide both the things simultaneously. It must divide the product. So assumed that n is even, as per your previous arguments ( even square would give rise to even square ) so n+1 and n-1 would be odd then. So p will be never 2 here .
 
  • #28
Hurray , I got it sir. Perfectly this time I have got it.. I know the complete proof for all the things now. I completed the whole proof. It does involves the even and odd manipulations. But its very easy and not complex.

I just used to show that $P^a$ doesn't divide an even number in both (n+1) and (n-1) case. It turned out to be right perfectly from some series of arguments.
 
  • #29
Millennial said:
That is the part which you should answer.

Sir, I have tried the following proof. Please verify whether it is right or wrong. I used t for m and [itex]\phi[/itex] for a for the sake of brevity. So let us show that this fails in the case of [itex]n^2[/itex]. Let us start with the equation [itex]p^{t+\phi}-p^{t}+3p^{\phi}+1[/itex]. If that is a square it would be equal to some n^2 for some even [itex]n[/itex]. [itex]p^{t+\phi}-p^{t}+3p^{\phi}+1=n^2[/itex]. We prove that it will not happen based upon two cases. Let us simplify it further. [itex]p^{\phi}(p^t-p^{t-\phi}+3)= n^2-1[/itex]
\begin{equation}
p^{\phi}(p^t-p^{t-\phi}+3) = (n+1)(n-1).
\end{equation}

From the above equation its evident that [itex]p^{\phi}[/itex] may divide either [itex](n+1)[/itex] or [itex](n-1)[/itex]. So there are two cases possible.
\subsubsection{ Dividing n-1 }

As we said that [itex]p^{\phi}|(n-1)[/itex] . From here the proof turns out to be interesting. We know that [itex]n[/itex] is even, hence [itex]n-1[/itex] would be odd. So if [itex]p^{\phi}[/itex] divides [itex](n-1)[/itex] in [itex](n-1)(n+1)[/itex] it must give rise to some new term of the form [itex]d.(n+1)[/itex] where [itex]d[/itex] is odd ( Since, odd number divided by odd number would give rise to odd number ). So that [itex]d.(n+1) = (p^t-p^{t-\phi}+3)[/itex] (since from (2)). So let us prove that its a contradiction.
[itex]d.(n+1) = (p^t-p^{t-\phi}+3)[/itex]
[itex]d.(n+1) = p^t(1-p^{-\phi})+3[/itex]
[itex]d.(n+1)-3= p^t(1-p^{-\phi})[/itex]---(3)

So here its evident that [itex]p^t | d.(n+1)-3[/itex] . So the equation (3) can be written as
[itex]M.(d.(n+1)-3)=(1-p^{-\phi})[/itex]. Where it divides [itex]M[/itex] times ( [itex]M[/itex] can be even [itex]1[/itex] in which the same equation is obtained ).
So its clearly evident that L.H.S is an integer. So the R.H.S is

[itex]\frac{p^{\phi}-1}{p^{\phi}}[/itex]---(4)

So its evident that a prime number minus one is an even number. Prime numbers are nothing but in some sense odd numbers. So odd number minus one would be an even number. So the numerator in the (4) is a even number and denominator is the odd number. So it would never turn to an integer. Which is a contradiction.
 
  • #30
S.Iyengar said:
Sir, I have tried the following proof. Please verify whether it is right or wrong. I used t for m and [itex]\phi[/itex] for a for the sake of brevity.


So let us show that this fails in the case of [itex]n^2[/itex]. Let us start with the equation [itex]p^{t+\phi}-p^{t}+3p^{\phi}+1[/itex]. If that is a square it would be equal to some n^2 for some even [itex]n[/itex]. [itex]p^{t+\phi}-p^{t}+3p^{\phi}+1=n^2[/itex]. We prove that it will not happen based upon two cases. Let us simplify it further. [itex]p^{\phi}(p^t-p^{t-\phi}+3)= n^2-1[/itex]
\begin{equation}
p^{\phi}(p^t-p^{t-\phi}+3) = (n+1)(n-1).
\end{equation}

From the above equation its evident that [itex]p^{\phi}[/itex] may divide either [itex](n+1)[/itex] or [itex](n-1)[/itex]. So there are two cases possible.
\subsubsection{ Dividing n-1 }

As we said that [itex]p^{\phi}|(n-1)[/itex] . From here the proof turns out to be interesting. We know that [itex]n[/itex] is even, hence [itex]n-1[/itex] would be odd. So if [itex]p^{\phi}[/itex] divides [itex](n-1)[/itex] in [itex](n-1)(n+1)[/itex] it must give rise to some new term of the form [itex]d.(n+1)[/itex] where [itex]d[/itex] is odd ( Since, odd number divided by odd number would give rise to odd number ). So that [itex]d.(n+1) = (p^t-p^{t-\phi}+3)[/itex] (since from (2)). So let us prove that its a contradiction.
[itex]d.(n+1) = (p^t-p^{t-\phi}+3)[/itex]
[itex]d.(n+1) = p^t(1-p^{-\phi})+3[/itex]
[itex]d.(n+1)-3= p^t(1-p^{-\phi})[/itex]---(3)

So here its evident that [itex]p^t | d.(n+1)-3[/itex] . So the equation (3) can be written as
[itex]M.(d.(n+1)-3)=(1-p^{-\phi})[/itex]. Where it divides [itex]M[/itex] times ( [itex]M[/itex] can be even [itex]1[/itex] in which the same equation is obtained ).
So its clearly evident that L.H.S is an integer. So the R.H.S is

[itex]\frac{p^{\phi}-1}{p^{\phi}}[/itex]---(4)

So its evident that a prime number minus one is an even number. Prime numbers are nothing but in some sense odd numbers. So odd number minus one would be an even number. So the numerator in the (4) is a even number and denominator is the odd number. So it would never turn to an integer. Which is a contradiction.

I have still proved many things, but I didn't end up with any contradiction sir.
 

Similar threads

  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 35 ·
2
Replies
35
Views
5K
  • · Replies 28 ·
Replies
28
Views
5K
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K