Mathematical-Reasoning · Unit 8 · Video 3 · Interactive Practice

Proving Nonexistence by Contradiction: Even Equals Odd

IKey Formulas

FormulaNameWhat it gives the proof
¬(P→Q)≡P∧¬Q\neg(P \to Q) \equiv P \wedge \neg QNegation of a conditionalA proof by contradiction assumes PP and also ¬Q\neg Q: one more assumption than a direct proof
¬(¬(∃z) R(z))≡(∃z) R(z)\neg\big(\neg (\exists z)\, R(z)\big) \equiv (\exists z)\, R(z)Negation of a nonexistence claimAssume the object exists, then calculate with it
4k+2=2(2k+1)4k + 2 = 2(2k + 1) and 6m+3=2(3m+1)+16m + 3 = 2(3m + 1) + 1Even and odd formsEvery n≡2(mod4)n \equiv 2 \pmod 4 is even; every n≡3(mod6)n \equiv 3 \pmod 6 is odd
(2m+1)2+(2n+1)2=4(m2+m+n2+n)+2(2m + 1)^2 + (2n + 1)^2 = 4(m^2 + m + n^2 + n) + 2 and (2k)2=4k2(2k)^2 = 4k^2Two odd squares vs an even squareThe sum is 22 more than a multiple of 44; an even square is a multiple of 44

Key Insight: When a conclusion says "not" or "does not exist", its negation hands you an object to calculate with. Both proofs here end with an even integer equal to an odd one, and no integer is both.

IIVisualization 1 — Can One Integer Be in Both Lists?

No integer satisfies n≡2(mod4)n \equiv 2 \pmod 4 and n≡3(mod6)n \equiv 3 \pmod 6 at once, because of parity.

IIIVisualization 2 — The Nonexistence Proof, Step by Step

Each step adds a fact about z2z^2, until z2z^2 cannot equal any sum x2+y2x^2 + y^2 of two odd squares.

Step 1 — Assume the negation. There are odd integers xx and yy and an integer zz with x2+y2=z2x^2 + y^2 = z^2.
Step 2 — Name the odd integers. There are integers mm and nn with x=2m+1x = 2m + 1 and y=2n+1y = 2n + 1; the letters differ because xx and yy need not be equal.
Step 3 — Stage 1: z2z^2 is even. x2+y2=4m2+4m+1+4n2+4n+1=2(2m2+2m+2n2+2n+1),x^2 + y^2 = 4m^2 + 4m + 1 + 4n^2 + 4n + 1 = 2(2m^2 + 2m + 2n^2 + 2n + 1), so z2=x2+y2z^2 = x^2 + y^2 is even.
Step 4 — Stage 2: zz is even. For each integer aa, if a2a^2 is even then aa is even (proved in Unit 7 by contrapositive). So zz is even, and z=2kz = 2k for some integer kk.
Step 5 — Substitute for xx, yy and zz. (2m+1)2+(2n+1)2=(2k)2⟹4m2+4m+4n2+4n+2=4k2.(2m + 1)^2 + (2n + 1)^2 = (2k)^2 \quad\Longrightarrow\quad 4m^2 + 4m + 4n^2 + 4n + 2 = 4k^2.
Step 6 — Divide by 22: odd equals even. 2(m2+m+n2+n)+1=2k2.2(m^2 + m + n^2 + n) + 1 = 2k^2. The left side is odd and the right side is even, and no integer is both. This contradiction shows that no such zz exists. ■\blacksquare

💡 The strip stops at 5050, but Steps 5 and 6 settle every integer at once: 4(m2+m+n2+n)+24(m^2 + m + n^2 + n) + 2 is never a multiple of 44.

IVVisualization 3 — Where the Hypothesis "Both Odd" Matters

Two squares can add to a square, as 32+42=523^2 + 4^2 = 5^2, but never when both are odd.

VQuiz Questions

Problem 1 · What Does the Proof Assume?

Given: For each integer nn, if n≡2(mod4)n \equiv 2 \pmod 4, then n≢3(mod6)n \not\equiv 3 \pmod 6. Which assumption starts a proof by contradiction?

✅ Correct! ¬(P→Q)≡P∧¬Q\neg(P \to Q) \equiv P \wedge \neg Q: keep the hypothesis n≡2(mod4)n \equiv 2 \pmod 4 and add the opposite of the conclusion, n≡3(mod6)n \equiv 3 \pmod 6.
❌ That assumes the conclusion. n≢3(mod6)n \not\equiv 3 \pmod 6 is what the proposition claims; a proof by contradiction assumes its negation, n≡3(mod6)n \equiv 3 \pmod 6.
❌ The hypothesis stays. Only the conclusion is negated: ¬(P→Q)≡P∧¬Q\neg(P \to Q) \equiv P \wedge \neg Q, so n≡2(mod4)n \equiv 2 \pmod 4 is kept, not denied.
❌ That is the contrapositive. ¬Q→¬P\neg Q \to \neg P is equivalent to the proposition itself, so it is something to prove, not an assumption, and it is a conditional, not a pair of facts about nn.
Show solution

Let PP be "n≡2(mod4)n \equiv 2 \pmod 4" and QQ be "n≢3(mod6)n \not\equiv 3 \pmod 6". The negation of P→QP \to Q is

¬(P→Q)≡P∧¬Q,\neg(P \to Q) \equiv P \wedge \neg Q,

so the proof assumes n≡2(mod4)n \equiv 2 \pmod 4 and n≡3(mod6)n \equiv 3 \pmod 6. Then n−2=4kn - 2 = 4k and n−3=6mn - 3 = 6m for integers kk and mm, so 4k+2=6m+34k + 2 = 6m + 3, that is, 2(2k+1)=2(3m+1)+12(2k + 1) = 2(3m + 1) + 1: an even integer equals an odd one, a contradiction.

Problem 2 · Negating a Nonexistence Claim

Given: For all odd integers xx and yy, there is no integer zz with x2+y2=z2x^2 + y^2 = z^2. Which statement does a proof by contradiction assume?

✅ Correct! The negation of "for all odd x,yx, y, no zz" is "for some odd x,yx, y, some zz": the object exists, so there is a specific zz to calculate with.
❌ That agrees with the proposition. It says some odd pair has no matching zz, which is a special case of the claim, not its negation.
❌ The outer quantifier must flip too. Negating "for all x,yx, y" gives "there exist x,yx, y"; this option negated only the inner part and asks for far more than the negation says.
❌ The hypothesis stays. The negation still has xx and yy odd; a pair with an even entry, such as 32+42=523^2 + 4^2 = 5^2, says nothing about the proposition.
Show solution

Write the proposition with quantifiers:

(∀x,y∈Z)[(x,y odd)→¬(∃z∈Z)(x2+y2=z2)].(\forall x, y \in \mathbb{Z})\big[(x, y \text{ odd}) \to \neg (\exists z \in \mathbb{Z})(x^2 + y^2 = z^2)\big].

Negate: the ∀\forall becomes ∃\exists, and ¬(P→Q)≡P∧¬Q\neg(P \to Q) \equiv P \wedge \neg Q keeps "x,yx, y odd" and removes the inner negation:

(∃x,y∈Z)[(x,y odd)∧(∃z∈Z)(x2+y2=z2)].(\exists x, y \in \mathbb{Z})\big[(x, y \text{ odd}) \wedge (\exists z \in \mathbb{Z})(x^2 + y^2 = z^2)\big].

So the proof assumes there are odd integers x,yx, y and an integer zz with x2+y2=z2x^2 + y^2 = z^2, then derives 2(m2+m+n2+n)+1=2k22(m^2 + m + n^2 + n) + 1 = 2k^2, an odd integer equal to an even one.

Problem 3 · A New Pair of Congruences

Given: Prove by contradiction: for each integer nn, if n≡3(mod4)n \equiv 3 \pmod 4, then n≢2(mod8)n \not\equiv 2 \pmod 8. Assume n≡3(mod4)n \equiv 3 \pmod 4 and n≡2(mod8)n \equiv 2 \pmod 8.

Using the definition of congruence and solving each equation for nn, which equation follows?

Factoring out 22 turns that equation into which odd = even statement?

✅ Correct! 4k+3=8m+24k + 3 = 8m + 2 becomes 2(2k+1)+1=2(4m+1)2(2k + 1) + 1 = 2(4m + 1): an odd integer equals an even one, so n≢2(mod8)n \not\equiv 2 \pmod 8.
❌ Check the equation. 4∣n−34 \mid n - 3 gives n=4k+3n = 4k + 3 and 8∣n−28 \mid n - 2 gives n=8m+2n = 8m + 2; set the two expressions for nn equal.
❌ Check the factoring. Expand each side of your choice and compare with 4k+34k + 3 and 8m+28m + 2.
❌ Different multipliers need different letters. Nothing says the integer with n−3=4kn - 3 = 4k equals the one with n−2=8mn - 2 = 8m; using kk twice adds an assumption the proof does not have.
❌ Check the signs. n−3=4kn - 3 = 4k solves to n=4k+3n = 4k + 3, not 4k−34k - 3, and n−2=8mn - 2 = 8m solves to n=8m+2n = 8m + 2.
❌ Check the second sign. n≡2(mod8)n \equiv 2 \pmod 8 means 8∣n−28 \mid n - 2, so n−2=8mn - 2 = 8m and n=8m+2n = 8m + 2.
❌ Expand it. 2(2k+1)=4k+22(2k + 1) = 4k + 2 and 2(4m+1)+1=8m+32(4m + 1) + 1 = 8m + 3, so this is a different equation; the left side 4k+34k + 3 is the odd one.
❌ Expand it. 2(2k+3)=4k+62(2k + 3) = 4k + 6 and 2(4m+2)=8m+42(4m + 2) = 8m + 4, so this is not the equation; and with both sides even there would be no contradiction.
❌ Expand the right side. 2(4m+1)+1=8m+32(4m + 1) + 1 = 8m + 3, not 8m+28m + 2; the right side 8m+2=2(4m+1)8m + 2 = 2(4m + 1) is even.
Show solution

We use a proof by contradiction. Let nn be an integer, and assume n≡3(mod4)n \equiv 3 \pmod 4 and n≡2(mod8)n \equiv 2 \pmod 8. By the definition of congruence, 4∣n−34 \mid n - 3 and 8∣n−28 \mid n - 2, so there are integers kk and mm with

n−3=4kandn−2=8m.n - 3 = 4k \qquad\text{and}\qquad n - 2 = 8m.

Solving each for nn and setting the expressions equal:

4k+3=8m+2.4k + 3 = 8m + 2.

Factor 22 out of each side:

2(2k+1)+1=2(4m+1).2(2k + 1) + 1 = 2(4m + 1).

Since 2k+12k + 1 and 4m+14m + 1 are integers, the left side is odd and the right side is even. No integer is both, so this is a contradiction. Hence if n≡3(mod4)n \equiv 3 \pmod 4, then n≢2(mod8)n \not\equiv 2 \pmod 8. ■\blacksquare

Problem 4 · Which Argument Is a Proof?

Given: There do not exist integers mm and zz with z2=4m+2z^2 = 4m + 2. Which argument proves this?

✅ Correct! It assumes the object exists, uses "z2z^2 even ⇒\Rightarrow zz even" exactly as Stage 2 of the video did, and reaches even == odd.
❌ Examples are evidence, not proof. Four values of mm say nothing about the infinitely many others.
❌ Only half the integers are ruled out. The argument assumed zz is odd, so an even zz is never addressed. The negation to assume is simply that some zz exists.
❌ That assumes the conclusion. A proof by contradiction assumes that such zz does exist; the "contradiction" here is just a restatement of the assumption.
Show solution

We use a proof by contradiction. Assume there are integers mm and zz with z2=4m+2z^2 = 4m + 2.

Then z2=2(2m+1)z^2 = 2(2m + 1), and 2m+12m + 1 is an integer, so z2z^2 is even. By the theorem from Unit 7, zz is even, so z=2kz = 2k for some integer kk. Substituting,

4k2=4m+2⟹2k2=2m+1.4k^2 = 4m + 2 \quad\Longrightarrow\quad 2k^2 = 2m + 1.

The left side is even and the right side is odd. No integer is both, so this is a contradiction, and no integers mm and zz satisfy z2=4m+2z^2 = 4m + 2. ■\blacksquare

This is the same structure as the video's second proof: there, z2=x2+y2=4(m2+m+n2+n)+2z^2 = x^2 + y^2 = 4(m^2 + m + n^2 + n) + 2 had exactly the form 4q+24q + 2.

Solved: 0 / 4