Show that n+2 is not a perfect square

  • Thread starter Thread starter opt!kal
  • Start date Start date
  • Tags Tags
    Square
Click For Summary

Homework Help Overview

The problem involves proving that if n is a perfect square, then n+2 cannot be a perfect square, specifically using a proof by contradiction approach.

Discussion Character

  • Exploratory, Assumption checking, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss rewriting the problem in terms of perfect squares and explore the implications of assuming both n and n+2 are perfect squares. There is consideration of cases based on whether k (the square root of n) is even or odd. Some participants suggest examining the factors of the difference of squares.

Discussion Status

Participants are actively engaging with the problem, providing insights and suggestions for further exploration. There is a back-and-forth regarding the implications of the factors of 2 and how to approach solving for k and p. No consensus has been reached, but there are productive lines of reasoning being developed.

Contextual Notes

Some participants express confusion about the assumptions and the setup of the proof, particularly regarding the integer nature of k and p and the implications of their values in the context of perfect squares.

opt!kal
Messages
18
Reaction score
0
Hi there,

I've been having a lot of trouble with this particular proof lately, and I just do not know how to finish it up:

Homework Statement



Show that if n is a perfect square, then n+2 is not a perfect square.(show by contradiction)

Homework Equations



none that I know of

The Attempt at a Solution



Since its a proof by contradiction, I know that I can rewrite it in the form: p ^ not q.

So I have: n is a perfect square, and n+2 is a perfect square.

Since I assume that then I have that n = k^2 and n+2 = p^2

So then I'll have (k^2) + 2 = p^2

At this point I basically get confused. I just have no idea on how to proceed from here, my only guess is that I should do two cases, one where k is even and one where k is odd, and show for each case that p^2 will end up like the case, while p will end up as the opposite (i.e. if I do the even case, then try to show that p will end up odd). But I have absolutely no idea on how to accomplish that. Any help would be greatly appreciated!
 
Physics news on Phys.org
-3^2 = 9
-2^2 = 4
-1^2 = 1
0^2 = 0
1^2 = 1
2^2 = 4
3^2 = 9
4^2 = 16
And so on.

Regardless of what integer you're squaring, no two perfect squares are a distance of 2 apart. It is 1, 3, 5, 7, etc.
 
Goldenwind said:
-3^2 = 9
-2^2 = 4
-1^2 = 1
0^2 = 0
1^2 = 1
2^2 = 4
3^2 = 9
4^2 = 16
And so on.

Regardless of what integer you're squaring, no two perfect squares are a distance of 2 apart. It is 1, 3, 5, 7, etc.
But how would you prove that statement?
 
opt!kal said:
Hi there,

I've been having a lot of trouble with this particular proof lately, and I just do not know how to finish it up:

Homework Statement



Show that if n is a perfect square, then n+2 is not a perfect square.(show by contradiction)


Homework Equations



none that I know of

The Attempt at a Solution



Since its a proof by contradiction, I know that I can rewrite it in the form: p ^ not q.

So I have: n is a perfect square, and n+2 is a perfect square.

Since I assume that then I have that n = k^2 and n+2 = p^2

So then I'll have (k^2) + 2 = p^2

At this point I basically get confused. I just have no idea on how to proceed from here, my only guess is that I should do two cases, one where k is even and one where k is odd, and show for each case that p^2 will end up like the case, while p will end up as the opposite (i.e. if I do the even case, then try to show that p will end up odd). But I have absolutely no idea on how to accomplish that. Any help would be greatly appreciated!

You almost have it. Saying that k2+ 2= p2 is the same as saying p2- k2= 2. Since the left side is the difference of two squares, that is the same as (p- k)(p+k)= 2. That is, p-k and p+k are integer factors of 2. But 2 only has 1, -1, 2, and -2 as integer factors. Can you finish it from there?
 
Yeah I think I see what you're saying. So basically for (k + p)(k - p) = 2 to hold, k and p can only be -2, 2, -1, 1. However, plugging each one in, you see that they will not equal to 2, so that means that the assumption that n + 2 is a perfect square does not hold? Does that seem right? Thanks in advance!
 
No, p and k do not need to be -2, 2, -1, or 1. Only p+k and p-k need to be -2, 2, -1, 1.
 
opt!kal said:
Yeah I think I see what you're saying. So basically for (k + p)(k - p) = 2 to hold, k and p can only be -2, 2, -1, 1. However, plugging each one in, you see that they will not equal to 2, so that means that the assumption that n + 2 is a perfect square does not hold? Does that seem right? Thanks in advance!

Tedjn said:
No, p and k do not need to be -2, 2, -1, or 1. Only p+k and p-k need to be -2, 2, -1, 1.
Exactly. And since k and p are positive integers, what can they be if p+ k and p- k are -2, 2, -1, or 1?
 
Hrmmm, I think I see what's you're trying to say... So I set p + k = 2 and p - k = 1 and solve right? then do p + k = 1 and p - k = 2...and do the same thing for the negative cases, and solve for p and k, which I don't think will end up as integers...and since an integer a is a perfect square if there is an integer b such that a = b^2, a contradiction occurs? (sorry for the late reply, just got bogged down by other work) Thanks in advance!
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 15 ·
Replies
15
Views
5K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 13 ·
Replies
13
Views
4K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
6
Views
4K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 24 ·
Replies
24
Views
4K