Proving that every positive integer is of the form or .
Step 1: Determine to prove that any positive integer is in the form of if
We know that from Euclid’s division lemma for
Let us assume that any positive integer be of the form or, or .
If ,
On squaring we get,
Here, , where is some integer .
Step 2: Determine to prove that any positive integer is in the form of if .
If ,
On squaring we get,
[Solved using the identity ]
Here, , where is some integer .
Step 3: Determine to prove that any positive integer is in the form of if .
If ,
On squaring we get,
[Solved using the identity ]
Here, , where is some integer .
Therefore, the square of any positive integer is of the form or but not of the form .
Hence, it is proved.