Proving the integer that p is even and its square is even as well

In summary, to show that an integer p is even iff p^2 is even, we must show that if p is even, then p^2 is even, and if p^2 is even, then p is even. By squaring p, we can see that p^2 will always have a factor of 2, making it even. Similarly, if p^2 is even, we can derive that p must also be even. Therefore, p is even iff p^2 is even.
  • #1
cbarker1
Gold Member
MHB
349
23
Dear Everyone,I would like some help to get start with a proof. A problem states, "if p is an integer, show that p is even iff p^2 is even."I know that p is the an integer.

Let p be an integer.

$p=2m$, where m is an integer.Thank you for your help

CBarker
 
Mathematics news on Phys.org
  • #2
To show that the integer $p$ is even iff $p^2$ is even, we have to show the following two implications:
  1. Let $p \in \mathbb{Z}$. If $p$ is even, then $p^2$ is even.
  2. Let $p \in \mathbb{Z}$. If $p^2$ is even, then $p$ is even.

To show the first one we do the following:

$p$ is an even integer, so $p=2m$, for some $m \in \mathbb{Z}$.
Squaring both sides we get $p^2=(2m)^2=4m^2=2(2m^2)$.
Since $m$ is an integer, we have that $2m^2$ is also an integer.
So, $p^2=2n$, with $n=2m^2 \in \mathbb{Z}$.
So, $p^2$ is even. Can you continue and show the second implication?
 
  • #3
P is not even. If p is not even, then it is odd; therefore there exists an integer n such that
$p=2n+1$
${p}^{2}={\left(2n+1\right)}^{2}\implies p^2=4n^2+4n+1$
$p^2=2\left(2n^2+2n\right)+1$
$p^2=2k+1$, where $k=2n^2+2n$ is some integer.
${p}^{2}$ is odd, contrary to the hypothesis. Since p is not even, it leads to a contradiction. p is even. QED

Is it correct?
 
Last edited:
  • #4
It is correct! (Yes)
 

FAQ: Proving the integer that p is even and its square is even as well

How do you prove that an integer p is even?

To prove that an integer p is even, we can show that it is divisible by 2 without leaving a remainder. This can be done by using the division algorithm or by direct calculation.

Can you provide an example of an even integer p?

Yes, for example, the integer 4 is even because it is divisible by 2 without remainder.

What is the definition of an even integer?

An even integer is any integer that is divisible by 2 without leaving a remainder. In other words, it is a multiple of 2.

How can you prove that the square of an even integer is also even?

To prove that the square of an even integer is also even, we can use the property that the product of two even numbers is always even. Therefore, if p is even, then p squared can be expressed as p x p, and since both p and p are even, their product will also be even.

What is the significance of proving that an integer and its square are both even?

Proving that an integer p is even and its square is even as well is significant because it helps to establish a basic understanding of divisibility and the properties of even numbers. This knowledge can be applied in various mathematical and scientific fields, such as number theory, algebra, and computer science.

Back
Top