100% FREE Updated: Apr 2026 Number Theory Number-theoretic reasoning

Parity and structure

Comprehensive study notes on Parity and structure for CMI BS Hons preparation. This chapter covers key concepts, formulas, and examples needed for your exam.

Parity and structure

This chapter rigorously explores the fundamental concepts of parity and structural properties within number theory. Mastery of these techniques is crucial for constructing elegant proofs and solving complex problems frequently encountered in CMI examinations, particularly those involving divisibility and integer properties.

---

Chapter Contents

|

| Topic |

|---|-------| | 1 | Even-odd arguments | | 2 | Mixed modular-parity problems | | 3 | Prime-power structure | | 4 | Contradiction via divisibility |

---

We begin with Even-odd arguments.

Part 1: Even-odd arguments

Even-Odd Arguments

Overview

Parity arguments use the distinction between even and odd integers to prove divisibility, impossibility, and structural properties. They are among the simplest tools in number theory, but at exam level they become powerful because they often give a contradiction immediately when other methods look complicated. ---

Learning Objectives

❗ By the End of This Topic

After studying this topic, you will be able to:

  • Use parity to simplify equations and expressions.

  • Track the parity of sums, products, and powers.

  • Detect contradictions by comparing both sides modulo 22 or 44.

  • Recognise when an argument needs only parity and not heavier modular arithmetic.

  • Solve structural number theory problems using even-odd reasoning.

---

Core Facts

πŸ“ Parity Rules

For integers:

    • even Β±\pm even = even

    • even Β±\pm odd = odd

    • odd Β±\pm odd = even

    • even Γ—\times anything = even

    • odd Γ—\times odd = odd

πŸ“ Squares and Parity
    • square of an even integer is even
    • square of an odd integer is odd
In fact,
    • even square ≑0(mod4)\equiv 0 \pmod 4
    • odd square ≑1(mod4)\equiv 1 \pmod 4
---

Minimal Worked Examples

Example 1 Can x+y\qquad x+y be odd if both xx and yy are odd? Yes, because odd+odd=even\qquad \text{odd}+\text{odd}=\text{even} So it cannot be odd. --- Example 2 Show that if n2\qquad n^2 is even, then nn is even. If nn were odd, then n2n^2 would also be odd, contradiction. So nn must be even. --- Example 3 Show that there are no integers satisfying x2+y2=4k+3\qquad x^2+y^2=4k+3 Squares modulo 44 are only 0\qquad 0 or 11 So x2+y2\qquad x^2+y^2 can only be 0,1,2(mod4)\qquad 0,1,2 \pmod 4 It can never be 3(mod4)\qquad 3 \pmod 4 Hence such an equation has no integer solution. ---

Standard Uses of Parity

πŸ“ Common Parity Applications

  • proving existence or nonexistence of integer solutions

  • showing an expression is divisible by 22

  • checking whether a square/root can exist

  • distinguishing cases by even/odd structure

  • proving one variable must have a certain parity

---

Common Patterns

❗ Typical Moves
    • write an integer as 2k\qquad 2k if even
    • write an integer as 2k+1\qquad 2k+1 if odd
    • compare parity of both sides of an equation
    • reduce modulo 22 or 44 when squares are involved
---

Common Mistakes

⚠️ Avoid These Errors
    • ❌ Thinking odd + odd is odd
βœ… It is even
    • ❌ Using only modulo 22 for square problems when modulo 44 is sharper
βœ… Odd squares are 11 modulo 44
    • ❌ Forgetting that product parity is easier than sum parity
βœ… One even factor makes the whole product even
---

CMI Strategy

πŸ’‘ How to Use Even-Odd Arguments

  • First ask whether only parity is enough.

  • If squares appear, think modulo 44 quickly.

  • If a product appears, inspect whether any factor must be even.

  • Try contradiction by assuming the β€œwrong” parity.

---

Practice Questions

:::question type="MCQ" question="If nn is odd, then n2n^2 is" options=["even","odd","a multiple of 44","always prime"] answer="B" hint="Use the parity of odd products." solution="If nn is odd, then nβ‹…nn\cdot n is odd times odd, which is odd. Hence the correct option is B\boxed{B}." ::: :::question type="NAT" question="What is the remainder when the square of an odd integer is divided by 44?" answer="1" hint="Write the odd integer as 2k+12k+1." solution="Let the odd integer be 2k+1\qquad 2k+1 Then its square is (2k+1)2=4k2+4k+1=4(k2+k)+1\qquad (2k+1)^2 = 4k^2+4k+1 = 4(k^2+k)+1 So the remainder upon division by 44 is 1\boxed{1}." ::: :::question type="MSQ" question="Which of the following statements are true?" options=["Even + odd = odd","Odd + odd = even","Odd Γ— odd = odd","If n2n^2 is even, then nn is odd"] answer="A,B,C" hint="Use the standard parity rules." solution="1. True.
  • True.
  • True.
  • False. If n2n^2 is even, then nn must be even.
  • Hence the correct answer is A,B,C\boxed{A,B,C}." ::: :::question type="SUB" question="Show that there are no integers x,yx,y such that x2+y2=4k+3x^2+y^2=4k+3 for some integer kk." answer="Squares modulo 44 are only 00 or 11, so the sum cannot be 33 modulo 44." hint="Reduce both squares modulo 44." solution="For any integer, its square is congruent to either 0\qquad 0 or 1(mod4)1 \pmod 4 So x2+y2\qquad x^2+y^2 can only be 0+0,Β 0+1,Β 1+0,Β 1+1(mod4)\qquad 0+0,\ 0+1,\ 1+0,\ 1+1 \pmod 4 That is, the possible residues are 0,1,2(mod4)\qquad 0,1,2 \pmod 4 It can never be 3(mod4)\qquad 3 \pmod 4 Hence there do not exist integers x,yx,y such that x2+y2=4k+3\qquad x^2+y^2=4k+3 So the statement is proved." ::: ---

    Summary

    ❗ Key Takeaways for CMI

    • Parity is often the quickest number-theoretic tool.

    • Sums and products behave differently under parity.

    • Squares are especially well-controlled modulo 44.

    • Many impossibility proofs begin with an even-odd contradiction.

    • Always try parity before using heavier machinery.

    ---

    πŸ’‘ Next Up

    Proceeding to Mixed modular-parity problems.

    ---

    Part 2: Mixed modular-parity problems

    Mixed Modular-Parity Problems

    Overview

    Mixed modular-parity problems combine two of the strongest elementary tools in number theory:
  • parity β€” whether numbers are even or odd,
  • modular arithmetic β€” what remainders numbers leave upon division by a fixed modulus.
  • These problems are common in proof-based exams because they often let you prove strong impossibility statements without long computations. The PYQ for this topic is a good example: the real heart of the problem is to track when something can be a perfect square, and that usually means checking parity of exponents and modular restrictions on squares. ---

    Learning Objectives

    ❗ By the End of This Topic

    After studying this topic, you will be able to:

    • combine parity reasoning with modular arithmetic,

    • identify the possible residues of squares modulo 44 and 88,

    • prove that certain numbers cannot be perfect squares,

    • use parity of prime exponents to test square-ness,

    • handle proof-style number theory questions using contradiction and casework.

    ---

    Core Idea

    πŸ“– Parity

    An integer is:

      • even if it is of the form 2k2k,

      • odd if it is of the form 2k+12k+1,


    for some integer kk.

    πŸ“– Congruence

    For integers a,b,ma,b,m with mβ‰₯1m\ge 1, we write

    a≑b(modm)\qquad a \equiv b \pmod m

    if mm divides aβˆ’ba-b.

    This means aa and bb leave the same remainder on division by mm. ---

    Why These Two Tools Work Well Together

    ❗ Main Strategy

    Parity gives coarse structure:

      • even or odd,

      • divisible by 22 or not.


    Modular arithmetic refines that:
      • modulo 44,

      • modulo 88,

      • modulo other useful bases.


    In many exam problems, parity alone gives the first idea, and modular arithmetic finishes the contradiction.

    ---

    Squares and Their Residues

    πŸ“ Possible Squares Modulo 44

    Every integer square is congruent to either

    0or1(mod4)\qquad 0 \quad \text{or} \quad 1 \pmod 4

    Reason: If nn is even, write n=2kn=2k. Then n2=4k2≑0(mod4)\qquad n^2=4k^2 \equiv 0 \pmod 4 If nn is odd, write n=2k+1n=2k+1. Then n2=(2k+1)2=4k(k+1)+1≑1(mod4)\qquad n^2=(2k+1)^2=4k(k+1)+1 \equiv 1 \pmod 4 So a square can never be congruent to 22 or 33 modulo 44. ---
    πŸ“ Possible Squares Modulo 88

    Every integer square is congruent to one of

    0,Β 1,Β 4(mod8)\qquad 0,\ 1,\ 4 \pmod 8

    In particular, every odd square satisfies n2≑1(mod8)\qquad n^2 \equiv 1 \pmod 8 ::: Reason: If nn is odd, write n=2k+1n=2k+1. Then n2=4k(k+1)+1\qquad n^2 = 4k(k+1)+1 Since one of kk and k+1k+1 is even, k(k+1)k(k+1) is even, so 4k(k+1)4k(k+1) is divisible by 88. Hence n2≑1(mod8)\qquad n^2 \equiv 1 \pmod 8 ::: ---

    Standard Consequences

    πŸ“ Immediate Consequences

    • No integer of the form 4k+24k+2 or 4k+34k+3 can be a perfect square.

    • The square of an odd integer is always 11 modulo 88.

    • If aa and bb are odd, then

    a2+b2≑1+1≑2(mod8)\qquad a^2+b^2 \equiv 1+1 \equiv 2 \pmod 8
    • Since a square cannot be 22 modulo 88, the sum of two odd squares is never a square.

    ---

    Perfect Squares and Parity of Prime Exponents

    πŸ“ Perfect Square Criterion

    A positive integer

    N=p1e1p2e2β‹―prer\qquad N = p_1^{e_1}p_2^{e_2}\cdots p_r^{e_r}

    is a perfect square if and only if every exponent eie_i is even.

    ❗ Valuation Language

    If vp(N)v_p(N) denotes the exponent of the prime pp in the factorization of NN, then

    NΒ isΒ aΒ perfectΒ squareΒ β€…β€ŠβŸΊβ€…β€Švp(N)Β isΒ evenΒ forΒ everyΒ primeΒ p\qquad N \text{ is a perfect square } \iff v_p(N)\text{ is even for every prime }p

    This is one of the most important bridges between parity and factorization. ---

    Why This Matters in Harder Problems

    The PYQ attached to this topic is not a routine remainder question. It is really about deciding when a large factorial expression becomes a square. In such problems, modular arithmetic may guide the idea, but the decisive step is often:
    • track the exponent of a prime,
    • check whether that exponent is even or odd.
    So mixed modular-parity reasoning often means:
  • use modular thinking to guess the right structure,
  • use parity of exponents to complete the proof.
  • ::: ---

    Minimal Worked Examples

    Example 1 Show that no integer of the form 4k+34k+3 is a square. Every square is congruent to 00 or 11 modulo 44. But 4k+3≑3(mod4)\qquad 4k+3 \equiv 3 \pmod 4 So it cannot be a square. --- Example 2 Show that if aa and bb are odd, then a2+b2a^2+b^2 is not a square. Since a,ba,b are odd, a2≑1(mod8),b2≑1(mod8)\qquad a^2 \equiv 1 \pmod 8,\qquad b^2 \equiv 1 \pmod 8 Hence a2+b2≑2(mod8)\qquad a^2+b^2 \equiv 2 \pmod 8 But a square can only be 0,1,0,1, or 44 modulo 88. So a2+b2a^2+b^2 is not a square. ---

    Standard Methods

    πŸ’‘ Method 1: Even-Odd Case Split

    When the expression depends strongly on parity:

    • assume the variable is even or odd,

    • compute the expression in each case,

    • derive the required conclusion.

    πŸ’‘ Method 2: Modulo Contradiction

    To show a number cannot have a property:

    • assume it does,

    • compute its residue modulo 44 or 88,

    • compare with the allowed residues.

    πŸ’‘ Method 3: Exponent-Parity Test

    When perfect squares or perfect powers are involved:

    • factor the number,

    • inspect the parity of prime exponents,

    • conclude whether the number can be a square.

    ---

    Common Patterns

    πŸ“ Patterns to Recognize

    • prove a number is not a square using modulo 44 or 88,

    • show some expression is always even or always odd,

    • determine whether a sum of squares can be a square,

    • use prime-exponent parity to test square-ness,

    • combine congruence with contradiction in proof questions.

    ---

    Common Mistakes

    ⚠️ Avoid These Errors
      • ❌ using parity alone when modulus 44 or 88 is needed,
    βœ… refine the argument with stronger congruences
      • ❌ forgetting that not every non-square is detected by modulo 44,
    βœ… try modulo 88 or prime exponents if needed
      • ❌ saying "odd square is odd" and stopping there,
    βœ… often the stronger fact n2≑1(mod8)n^2\equiv 1 \pmod 8 is needed
      • ❌ checking only the exponent of 22 when proving square-ness,
    βœ… every prime exponent must be even
    ---

    CMI Strategy

    πŸ’‘ How to Attack Mixed Modular-Parity Questions

    • First ask what the expression looks like modulo 22, 44, or 88.

    • If perfect squares are involved, remember the allowed square residues.

    • If modular checks are not decisive, switch to prime-exponent parity.

    • In proof problems, write the contradiction clearly.

    • Keep the reasoning short and structural; these problems reward clean ideas more than computation.

    ---

    Practice Questions

    :::question type="MCQ" question="Which of the following cannot be the remainder of a perfect square upon division by 88?" options=["00","11","44","55"] answer="D" hint="List all possible square residues modulo 88." solution="Every integer square is congruent to 00, 11, or 44 modulo 88. Therefore 55 cannot be the remainder of a perfect square modulo 88. Hence the correct option is D\boxed{D}." ::: :::question type="NAT" question="If nn is an odd integer, find the remainder when n2n^2 is divided by 88." answer="1" hint="Write n=2k+1n=2k+1." solution="Let n=2k+1n=2k+1. Then n2=(2k+1)2=4k(k+1)+1\qquad n^2=(2k+1)^2=4k(k+1)+1 Since one of kk and k+1k+1 is even, k(k+1)k(k+1) is even. So 4k(k+1)4k(k+1) is divisible by 88. Therefore n2≑1(mod8)\qquad n^2 \equiv 1 \pmod 8 Hence the answer is 1\boxed{1}." ::: :::question type="MSQ" question="Which of the following statements are true?" options=["If nn is odd, then n2≑1(mod8)n^2 \equiv 1 \pmod 8","If n2n^2 is even, then nn is even","There exists an integer nn such that n2≑3(mod4)n^2 \equiv 3 \pmod 4","Consecutive integers always have opposite parity"] answer="A,B,D" hint="Recall the possible square residues modulo 44 and 88." solution="1. True. Every odd square is congruent to 11 modulo 88.
  • True. If nn were odd, then n2n^2 would be odd, so n2n^2 even forces nn even.
  • False. Squares modulo 44 can only be 00 or 11.
  • True. Consecutive integers always have opposite parity.
  • Hence the correct answer is A,B,D\boxed{A,B,D}." ::: :::question type="SUB" question="Prove that no integer of the form 4k+34k+3 can be a perfect square." answer="A square is congruent only to 00 or 11 modulo 44, never to 33 modulo 44" hint="Check the two parity cases for an integer." solution="Let nn be any integer. There are two cases. If nn is even, then n=2mn=2m for some integer mm, so n2=4m2≑0(mod4)\qquad n^2=4m^2 \equiv 0 \pmod 4 If nn is odd, then n=2m+1n=2m+1, so n2=(2m+1)2=4m(m+1)+1≑1(mod4)\qquad n^2=(2m+1)^2=4m(m+1)+1 \equiv 1 \pmod 4 Thus every square is congruent to either 00 or 11 modulo 44. But any integer of the form 4k+34k+3 satisfies 4k+3≑3(mod4)\qquad 4k+3 \equiv 3 \pmod 4 Therefore no integer of the form 4k+34k+3 can be a perfect square." ::: ---

    Summary

    ❗ Key Takeaways for CMI

    • Squares modulo 44 are only 00 or 11.

    • Squares modulo 88 are only 00, 11, or 44.

    • Every odd square is 11 modulo 88.

    • A positive integer is a perfect square exactly when all prime exponents are even.

    • Mixed modular-parity problems often combine remainder checks with exponent parity.

    ---

    πŸ’‘ Next Up

    Proceeding to Prime-power structure.

    ---

    Part 3: Prime-power structure

    Prime-Power Structure

    Overview

    Prime-power structure means studying an integer through the exponents in its prime factorisation. This is one of the deepest structural ideas in elementary number theory. At exam level, it is used in divisibility, gcd/lcm problems, perfect powers, and counting divisors. Instead of treating a number as a single object, we study the power of each prime separately. ---

    Learning Objectives

    ❗ By the End of This Topic

    After studying this topic, you will be able to:

    • Write integers in prime-power factorised form.

    • Use prime exponents to study divisibility.

    • Compute gcd, lcm, and number of divisors from factorisation.

    • Recognise perfect squares and perfect cubes from exponent conditions.

    • Solve structural problems by comparing prime powers.

    ---

    Prime Factorisation

    πŸ“– Prime-Power Form

    Every integer n>1n>1 can be written uniquely as

    n=p1e1p2e2β‹―pkek\qquad n = p_1^{e_1}p_2^{e_2}\cdots p_k^{e_k}

    where the pip_i are distinct primes and the eie_i are positive integers.

    This is the fundamental theorem of arithmetic. ---

    Divisibility by Comparing Exponents

    πŸ“ Divisibility Criterion

    If

    n=∏piei,m=∏pifi\qquad n=\prod p_i^{e_i},\qquad m=\prod p_i^{f_i}

    then

    m∣n\qquad m\mid n

    if and only if

    fi≀ei\qquad f_i \le e_i

    for every prime involved.

    So divisibility is exponent-wise comparison. ---

    gcd and lcm

    πŸ“ Prime-Power Rules

    If
    n=∏piei\qquad n=\prod p_i^{e_i} and m=∏pifi\qquad m=\prod p_i^{f_i}, then

      • gcd⁑(m,n)=∏pimin⁑(ei,fi)\gcd(m,n)=\prod p_i^{\min(e_i,f_i)}

      • lcm⁑(m,n)=∏pimax⁑(ei,fi)\operatorname{lcm}(m,n)=\prod p_i^{\max(e_i,f_i)}

    These formulas are among the most useful in number theory. ---

    Number of Divisors

    πŸ“ Divisor Count Formula

    If
    n=p1e1p2e2β‹―pkek\qquad n=p_1^{e_1}p_2^{e_2}\cdots p_k^{e_k}

    then the number of positive divisors of nn is

    d(n)=(e1+1)(e2+1)β‹―(ek+1)\qquad d(n)=(e_1+1)(e_2+1)\cdots(e_k+1)

    Each exponent in a divisor can range independently from 00 up to the exponent in nn. ---

    Perfect Powers

    πŸ“ When Is a Number a Square or Cube?
      • nn is a perfect square iff every prime exponent in its factorisation is even
      • nn is a perfect cube iff every prime exponent is divisible by 33
    More generally:
    • nn is a perfect kkth power iff every prime exponent is divisible by kk
    ::: ---

    Minimal Worked Examples

    Example 1 Factorise 360\qquad 360 We have 360=36β‹…10=23β‹…32β‹…5\qquad 360=36\cdot 10=2^3\cdot 3^2\cdot 5 So:
    • prime factorisation is 23β‹…32β‹…51\qquad 2^3\cdot 3^2\cdot 5^1
    • number of divisors is (3+1)(2+1)(1+1)=24\qquad (3+1)(2+1)(1+1)=24
    --- Example 2 Find gcd⁑(72,120)\qquad \gcd(72,120) Factor: 72=23β‹…32\qquad 72=2^3\cdot 3^2 120=23β‹…3β‹…5\qquad 120=2^3\cdot 3\cdot 5 Take minimum exponents: gcd⁑(72,120)=23β‹…3=24\qquad \gcd(72,120)=2^3\cdot 3=24 --- Example 3 Determine whether 540\qquad 540 is a perfect square. Factor: 540=22β‹…33β‹…5\qquad 540=2^2\cdot 3^3\cdot 5 The exponents are 2,3,1\qquad 2,3,1 Not all are even, so 540540 is not a perfect square. ---

    Common Patterns

    πŸ“ Patterns to Recognise

    • count divisors

    • test divisibility

    • compute gcd or lcm

    • test for square/cube/perfect power

    • find the smallest multiplier to make a square or cube

    ---

    Smallest Multiplier Idea

    πŸ’‘ Make a Number a Square or Cube

    To make a number a perfect square, multiply by whatever primes are needed to make every exponent even.

    To make a number a perfect cube, multiply by whatever primes are needed to make every exponent a multiple of 33.

    Example: 23β‹…32β‹…51\qquad 2^3\cdot 3^2\cdot 5^1 needs one more factor of 3β‹…5\qquad 3\cdot 5 to become a square. ---

    Common Mistakes

    ⚠️ Avoid These Errors
      • ❌ Forgetting primes with exponent 00 when comparing gcd/lcm
    βœ… Missing primes matter too
      • ❌ Using addition of exponents in gcd
    βœ… gcd uses minimum, lcm uses maximum
      • ❌ Thinking a number is a square because β€œmost” exponents are even
    βœ… Every exponent must satisfy the condition
    ---

    CMI Strategy

    πŸ’‘ How to Use Prime-Power Structure

    • Factor early and factor cleanly.

    • Translate the question into exponent language.

    • Work prime by prime.

    • Reassemble the answer only at the end.

    • In divisor problems, think of independent exponent choices.

    ---

    Practice Questions

    :::question type="MCQ" question="The number of positive divisors of 23β‹…322^3\cdot 3^2 is" options=["66","88","1212","1616"] answer="C" hint="Use the divisor count formula." solution="The number of positive divisors is (3+1)(2+1)=4β‹…3=12\qquad (3+1)(2+1)=4\cdot 3=12 Hence the correct option is C\boxed{C}." ::: :::question type="NAT" question="Find gcd⁑(12,18)\gcd(12,18)." answer="6" hint="Factor both numbers or use common divisors directly." solution="We have 12=22β‹…3\qquad 12=2^2\cdot 3 and 18=2β‹…32\qquad 18=2\cdot 3^2 So gcd⁑(12,18)=21β‹…31=6\qquad \gcd(12,18)=2^1\cdot 3^1=6 Hence the answer is 6\boxed{6}." ::: :::question type="MSQ" question="Which of the following statements are true?" options=["A perfect square has all prime exponents even","The gcd uses minimum exponents","The lcm uses maximum exponents","Every number of the form 2a3b2^a3^b is a perfect cube"] answer="A,B,C" hint="Use the exponent interpretation of factorisation." solution="1. True.
  • True.
  • True.
  • False. A number is a perfect cube only if each exponent is divisible by 33.
  • Hence the correct answer is A,B,C\boxed{A,B,C}." ::: :::question type="SUB" question="Find the smallest positive integer by which 23β‹…32β‹…52^3\cdot 3^2\cdot 5 must be multiplied to become a perfect square." answer="1515" hint="Make each exponent even." solution="The exponents in 23β‹…32β‹…51\qquad 2^3\cdot 3^2\cdot 5^1 are 3,2,1\qquad 3,2,1 To make a perfect square, all exponents must be even.
    • exponent of 22 needs one more factor of 22
    • exponent of 33 is already even
    • exponent of 55 needs one more factor of 55
    So the smallest multiplier is 2β‹…5=10\qquad 2\cdot 5=10 Therefore the answer is 10\boxed{10}." ::: ---

    Summary

    ❗ Key Takeaways for CMI

    • Prime-power form reveals the structure of an integer.

    • Divisibility, gcd, and lcm are all exponent comparisons.

    • Divisor counting comes from exponent choices.

    • Perfect powers are determined by divisibility of exponents.

    • Working prime by prime often turns a hard problem into a routine one.

    ---

    πŸ’‘ Next Up

    Proceeding to Contradiction via divisibility.

    ---

    Part 4: Contradiction via divisibility

    Contradiction via Divisibility

    Overview

    This topic is about proving that an integer equation has no nontrivial solution by showing that any supposed solution must become smaller in a controlled way, or must satisfy impossible divisibility conditions. In CMI-style number theory, this often appears through modular arithmetic, parity, divisibility by primes, and infinite descent. The central pattern is:
  • assume a nonzero integer solution exists
  • choose one with smallest possible size
  • prove that all variables must be divisible by some integer
  • divide through and obtain a smaller solution
  • contradiction
  • This is one of the cleanest forms of proof by contradiction in number theory. ---

    Learning Objectives

    ❗ By the End of This Topic

    After studying this topic, you will be able to:

    • Use modular arithmetic to restrict square values.

    • Force divisibility of variables from an equation.

    • Apply contradiction using a minimal counterexample.

    • Recognize infinite descent structure in Diophantine equations.

    • Use parity and modular residues together in a proof.

    ---

    Core Idea

    πŸ“– Proof by Contradiction

    To prove a statement is true, assume it is false and derive an impossibility.

    In this topic, the contradiction usually comes from showing that if a nonzero integer solution exists, then a smaller nonzero integer solution also exists. That cannot happen if we began with the smallest one.
    πŸ“– Infinite Descent

    Infinite descent is a method where a supposed positive or nonzero integer solution gives rise to another strictly smaller solution of the same type, and then another smaller one, and so on. This is impossible in the integers.

    ---

    Minimal-Value Setup

    ❗ Standard Starting Point

    When proving that an equation has only the trivial integer solution, a common setup is:

    Assume there exists a nonzero integer solution. Among all such solutions, choose one for which

    ∣x∣+∣y∣+∣z∣\qquad |x|+|y|+|z|

    is as small as possible.

    This lets you use contradiction later by constructing a new solution with smaller total size. ---

    Square Residues Modulo Small Integers

    πŸ“ Squares Modulo 2

    A perfect square modulo 22 can only be

    0Β orΒ 1\qquad 0 \text{ or } 1

    πŸ“ Squares Modulo 3

    A perfect square modulo 33 can only be

    0Β orΒ 1\qquad 0 \text{ or } 1

    Reason:
    • 02≑0(mod3)0^2 \equiv 0 \pmod 3
    • 12≑1(mod3)1^2 \equiv 1 \pmod 3
    • 22≑1(mod3)2^2 \equiv 1 \pmod 3
    πŸ“ Squares Modulo 4

    A perfect square modulo 44 can only be

    0Β orΒ 1\qquad 0 \text{ or } 1

    πŸ“ Squares Modulo 8

    A perfect square modulo 88 can only be

    0,1,4\qquad 0,1,4

    πŸ“ Squares Modulo 5

    A perfect square modulo 55 can only be

    0,1,4\qquad 0,1,4

    πŸ“ Squares Modulo 7

    A perfect square modulo 77 can only be

    0,1,2,4\qquad 0,1,2,4

    These small residue sets are the backbone of divisibility contradictions. ---

    Standard Forcing Pattern

    πŸ’‘ How Divisibility Gets Forced

    Suppose an equation implies

    x2+y2≑0(mod3)\qquad x^2+y^2 \equiv 0 \pmod 3

    Since squares mod 33 are only 00 or 11, the only way for a sum of two squares to be divisible by 33 is

    0+0≑0(mod3)\qquad 0+0 \equiv 0 \pmod 3

    So both x2x^2 and y2y^2 are divisible by 33, which implies

    3∣xand3∣y\qquad 3\mid x \quad \text{and} \quad 3\mid y

    Once two variables are divisible by 33, substitute back into the original equation and often the third variable also becomes divisible by 33. That is the key mechanism behind many descent proofs. ---

    Example Structure: Equation of the Form x2+y2=nz2x^2+y^2=nz^2

    ❗ Typical Strategy

    For an equation like

    x2+y2=nz2\qquad x^2+y^2=nz^2

    the standard path is:

    • choose a nonzero solution with smallest possible size

    • reduce modulo a prime dividing nn or otherwise useful

    • force divisibility of xx and yy

    • substitute back to force divisibility of zz

    • divide all variables by that prime

    • obtain a smaller solution

    • contradiction

    This is especially effective when the coefficient nn has a prime factor whose square residues are restrictive. ---

    Why Divisibility of a Square Implies Divisibility of the Number

    πŸ“ Basic Fact

    If a prime pp divides x2x^2, then pp divides xx.

    For small-prime problems, this is used constantly. Examples:
    • if 3∣x23\mid x^2, then 3∣x3\mid x
    • if 5∣x25\mid x^2, then 5∣x5\mid x
    ---

    Minimal Worked Example

    Example 1 Show that the only integer solution to x2+y2=3z2\qquad x^2+y^2=3z^2 is x=y=z=0\qquad x=y=z=0 Assume a nonzero integer solution exists and choose one with smallest value of ∣x∣+∣y∣+∣z∣\qquad |x|+|y|+|z|. Now reduce modulo 33. Squares mod 33 are only 00 or 11. Since x2+y2=3z2\qquad x^2+y^2=3z^2, the left side must be divisible by 33. The only possible sum of two square residues giving 00 mod 33 is 0+0\qquad 0+0. So 3∣xand3∣y\qquad 3\mid x \quad \text{and} \quad 3\mid y. Write x=3a,y=3b\qquad x=3a,\quad y=3b. Then 9a2+9b2=3z2\qquad 9a^2+9b^2=3z^2 so 3a2+3b2=z2\qquad 3a^2+3b^2=z^2. Hence 3∣z2\qquad 3\mid z^2, so 3∣z\qquad 3\mid z. Thus all of x,y,zx,y,z are divisible by 33. Dividing by 33 gives a smaller nonzero integer solution, contradicting minimality. Therefore the only integer solution is x=y=z=0\qquad \boxed{x=y=z=0}. ---

    Modulo Choice Matters

    ⚠️ Not Every Modulus Helps

    In contradiction-via-divisibility proofs, the modulus must be chosen intelligently.

    A useful modulus is one where the set of square residues is restrictive enough to force a variable or variables to be divisible by that modulus.

    Sometimes:

      • modulo 33 works

      • modulo 55 does not

      • modulo 77 gives weaker information


    So the best modulus is not always the largest divisor.

    ---

    Common Patterns

    πŸ’‘ Recognize These Problem Types

    • Show a Diophantine equation has only the trivial solution.

    • Show an equation has no integer solution.

    • Prove a number cannot be represented in a certain form.

    • Use parity first, then a modulus such as 33 or 44.

    • Use a prime divisor of a coefficient to start infinite descent.

    ---

    Common Mistakes

    ⚠️ Avoid These Errors
      • ❌ assuming a modulus works without listing square residues
    βœ… compute the square residues first
      • ❌ proving only one variable is divisible by a prime when actually both are forced
    βœ… check all residue combinations carefully
      • ❌ dividing by a number without first proving divisibility
    βœ… every division step must be justified
      • ❌ forgetting to explain why the new solution is smaller
    βœ… minimal-counterexample proofs need this explicitly
      • ❌ confusing β€œdivisible by pp” with β€œcongruent to 00 mod pp” without context
    βœ… connect the two carefully
    ---

    CMI Strategy

    πŸ’‘ How to Attack These Problems

    • Assume a nontrivial integer solution exists.

    • Choose one of minimal size.

    • Compute square residues modulo a useful prime.

    • Force divisibility of variables.

    • Substitute back into the equation.

    • Show all variables share the divisor.

    • Divide to get a smaller solution.

    • Contradict minimality.

    ---

    Practice Questions

    :::question type="MCQ" question="A perfect square modulo 33 can have which of the following remainders?" options=["0,10,1","0,20,2","1,21,2","0,1,20,1,2"] answer="A" hint="Check the residues of 02,12,220^2,1^2,2^2 modulo 33." solution="Modulo 33: 02≑0,12≑1,22≑1\qquad 0^2\equiv 0,\quad 1^2\equiv 1,\quad 2^2\equiv 1 So the only possible square residues mod 33 are 0,1\boxed{0,1}. Hence the correct option is A\boxed{A}." ::: :::question type="NAT" question="How many possible square residues are there modulo 44?" answer="2" hint="Check 02,12,22,320^2,1^2,2^2,3^2 modulo 44." solution="Modulo 44: 02≑0,12≑1,22≑0,32≑1\qquad 0^2\equiv 0,\quad 1^2\equiv 1,\quad 2^2\equiv 0,\quad 3^2\equiv 1 So the possible square residues mod 44 are {0,1}\{0,1\}, which has 2\boxed{2} elements." ::: :::question type="MSQ" question="Which of the following statements are true?" options=["If 3∣x23\mid x^2, then 3∣x3\mid x","A proof by infinite descent starts from a smallest positive or nonzero solution","Squares modulo 55 can only be 0,1,40,1,4","If x2+y2≑0(mod3)x^2+y^2\equiv 0\pmod 3, then automatically x≑y≑0(mod3)x\equiv y\equiv 0\pmod 3"] answer="A,B,C,D" hint="Use square residues modulo 33 and 55." solution="1. True.
  • True.
  • True, since the square residues mod 55 are 0,1,40,1,4.
  • True, because mod 33 squares are only 00 or 11, and the only way to get sum 00 mod 33 is 0+00+0.
  • Hence the correct answer is A,B,C,D\boxed{A,B,C,D}." ::: :::question type="SUB" question="Show that there is no nonzero integer solution to x2+y2=3z2x^2+y^2=3z^2." answer="All variables become divisible by 33, giving infinite descent." hint="Use a minimal nonzero solution and reduce modulo 33." solution="Assume there exists a nonzero integer solution and choose one with smallest value of ∣x∣+∣y∣+∣z∣\qquad |x|+|y|+|z|. Squares modulo 33 are only 00 and 11. Since x2+y2=3z2\qquad x^2+y^2=3z^2, the left side is divisible by 33. The only way for a sum of two square residues modulo 33 to be 00 is 0+0\qquad 0+0. Hence 3∣xand3∣y\qquad 3\mid x \quad \text{and} \quad 3\mid y. Write x=3a,y=3b\qquad x=3a,\quad y=3b. Then 9a2+9b2=3z2\qquad 9a^2+9b^2=3z^2 so 3a2+3b2=z2\qquad 3a^2+3b^2=z^2 Thus 3∣z2\qquad 3\mid z^2 and therefore 3∣z\qquad 3\mid z. So all of x,y,zx,y,z are divisible by 33, and dividing by 33 gives a smaller nonzero integer solution, contradicting minimality. Hence no nonzero integer solution exists." ::: ---

    Summary

    ❗ Key Takeaways for CMI

    • Contradiction via divisibility often works through infinite descent.

    • Square residues modulo small integers are essential tools.

    • Minimal-counterexample arguments must end with a smaller valid solution.

    • The choice of modulus is strategic, not automatic.

    • Many Diophantine impossibility results come from repeated forced divisibility.

    Chapter Summary

    ❗ Parity and structure β€” Key Points

    Parity arguments (even/odd analysis, modulo 2) are fundamental for proving existence, non-existence, or properties of integer solutions.
    Many problems involving sums, products, or differences of integers can be significantly simplified by examining their parity or congruence modulo 2.
    The prime-power structure of integers, particularly factorials and binomial coefficients, is precisely determined by Legendre's formula, vp(n!)=βˆ‘k=1∞⌊n/pkβŒ‹v_p(n!) = \sum_{k=1}^{\infty} \lfloor n/p^k \rfloor.
    Understanding vp(n)v_p(n) (the exponent of the highest power of prime pp dividing nn) is crucial for divisibility proofs and finding the largest power of an integer dividing a product.
    Problems combining parity with other modular arithmetic concepts often require careful analysis of congruences modulo small primes or powers of 2.
    Proof by contradiction, especially when applied through divisibility or parity arguments, is a powerful technique to establish the impossibility of certain conditions.

    Chapter Review Questions

    :::question type="MCQ" question="Can the equation x2+y2=2023x^2 + y^2 = 2023 have integer solutions for xx and yy?" options=["Yes, for specific integers x,yx,y.","Yes, for any integers x,yx,y.","No, because 20232023 is an odd number.","No, because 2023≑3(mod4)2023 \equiv 3 \pmod 4."] answer="No, because 2023≑3(mod4)2023 \equiv 3 \pmod 4." hint="Consider the possible values of squares modulo 4." solution="The square of any integer nn satisfies n2≑0(mod4)n^2 \equiv 0 \pmod 4 if nn is even, and n2≑1(mod4)n^2 \equiv 1 \pmod 4 if nn is odd. Therefore, x2+y2(mod4)x^2+y^2 \pmod 4 can only be 0+0=00+0=0, 0+1=10+1=1, or 1+1=21+1=2. The number 2023=4Γ—505+32023 = 4 \times 505 + 3, so 2023≑3(mod4)2023 \equiv 3 \pmod 4. Since x2+y2x^2+y^2 can never be congruent to 3(mod4)3 \pmod 4, there are no integer solutions for x2+y2=2023x^2+y^2=2023."
    :::

    :::question type="NAT" question="Find the largest integer kk such that 3k3^k divides 100!100!." answer="48" hint="Apply Legendre's formula for vp(n!)v_p(n!)." solution="Using Legendre's formula, k=v3(100!)=⌊100/3βŒ‹+⌊100/32βŒ‹+⌊100/33βŒ‹+⌊100/34βŒ‹+…k = v_3(100!) = \lfloor 100/3 \rfloor + \lfloor 100/3^2 \rfloor + \lfloor 100/3^3 \rfloor + \lfloor 100/3^4 \rfloor + \dots
    k=⌊33.33βŒ‹+⌊11.11βŒ‹+⌊3.70βŒ‹+⌊1.23βŒ‹+…k = \lfloor 33.33 \rfloor + \lfloor 11.11 \rfloor + \lfloor 3.70 \rfloor + \lfloor 1.23 \rfloor + \dots
    k=33+11+3+1=48k = 33 + 11 + 3 + 1 = 48.
    Thus, the largest integer kk is 48."
    :::

    :::question type="MCQ" question="Which statement correctly proves that there are no integers x,yx, y such that x2βˆ’y2=2022x^2 - y^2 = 2022?" options=["This statement is false; such integers exist.","The equation implies xβˆ’yx-y and x+yx+y have different parities, which is impossible.","The equation implies xβˆ’yx-y and x+yx+y are both even, leading to a contradiction modulo 4.","The equation implies xβˆ’yx-y and x+yx+y are both odd, which is impossible."] answer="The equation implies xβˆ’yx-y and x+yx+y are both even, leading to a contradiction modulo 4." hint="Factor the left-hand side and analyze the parities of the factors." solution="We have x2βˆ’y2=(xβˆ’y)(x+y)=2022x^2 - y^2 = (x-y)(x+y) = 2022.
    Since 20222022 is an even number, its factors (xβˆ’y)(x-y) and (x+y)(x+y) must either both be even or one is even and one is odd.
    Consider the sum and difference of the factors: (xβˆ’y)+(x+y)=2x(x-y) + (x+y) = 2x and (x+y)βˆ’(xβˆ’y)=2y(x+y) - (x-y) = 2y.
    If one factor were even and the other odd, then 2x2x and 2y2y would be odd, which is impossible for integers x,yx,y.
    Therefore, both (xβˆ’y)(x-y) and (x+y)(x+y) must be even.
    Let xβˆ’y=2ax-y = 2a and x+y=2bx+y = 2b for some integers a,ba,b.
    Substituting these into the equation: (2a)(2b)=2022β€…β€ŠβŸΉβ€…β€Š4ab=2022(2a)(2b) = 2022 \implies 4ab = 2022.
    Dividing by 2, we get 2ab=10112ab = 1011.
    However, 10111011 is an odd number, while 2ab2ab must always be an even number. This is a contradiction.
    Thus, no such integers x,yx,y exist."
    :::

    :::question type="NAT" question="What is the largest integer nn such that 5n5^n divides the product of the first 100 positive even integers?" answer="24" hint="Rewrite the product in terms of a factorial and then apply Legendre's formula." solution="The product of the first 100 positive even integers is P=2β‹…4β‹…6β‹―200P = 2 \cdot 4 \cdot 6 \cdots 200.
    This can be written as P=(2β‹…1)β‹…(2β‹…2)β‹…(2β‹…3)β‹―(2β‹…100)=2100β‹…(1β‹…2β‹…3β‹―100)=2100β‹…100!P = (2 \cdot 1) \cdot (2 \cdot 2) \cdot (2 \cdot 3) \cdots (2 \cdot 100) = 2^{100} \cdot (1 \cdot 2 \cdot 3 \cdots 100) = 2^{100} \cdot 100!.
    We need to find the largest nn such that 5n5^n divides PP. This is equivalent to finding v5(P)=v5(2100β‹…100!)v_5(P) = v_5(2^{100} \cdot 100!).
    Using the property vp(ab)=vp(a)+vp(b)v_p(ab) = v_p(a) + v_p(b), we have v5(P)=v5(2100)+v5(100!)v_5(P) = v_5(2^{100}) + v_5(100!).
    Since 55 is not a factor of 21002^{100}, v5(2100)=0v_5(2^{100}) = 0.
    So we need to calculate v5(100!)v_5(100!) using Legendre's formula:
    v5(100!)=⌊100/5βŒ‹+⌊100/52βŒ‹+⌊100/53βŒ‹+…v_5(100!) = \lfloor 100/5 \rfloor + \lfloor 100/5^2 \rfloor + \lfloor 100/5^3 \rfloor + \dots
    v5(100!)=⌊20βŒ‹+⌊4βŒ‹+⌊0.8βŒ‹+…v_5(100!) = \lfloor 20 \rfloor + \lfloor 4 \rfloor + \lfloor 0.8 \rfloor + \dots
    v5(100!)=20+4+0=24v_5(100!) = 20 + 4 + 0 = 24.
    Thus, the largest integer nn is 24."
    :::

    What's Next?

    πŸ’‘ Continue Your CMI Journey

    Having mastered parity and prime-power structures, you are well-equipped to tackle more advanced topics. The concepts learned here are foundational for Diophantine Equations, where integer solutions are sought, often leveraging modular arithmetic and divisibility. Furthermore, the understanding of vp(n)v_p(n) is directly applicable to Number Theoretic Functions (e.g., Ο„(n),Οƒ(n)\tau(n), \sigma(n)) and advanced Modular Arithmetic involving higher powers and orders. Continue your exploration by applying these tools to complex problems in these interconnected domains.

    🎯 Key Points to Remember

    • βœ“ Master the core concepts in Parity and structure before moving to advanced topics
    • βœ“ Practice with previous year questions to understand exam patterns
    • βœ“ Review short notes regularly for quick revision before exams

    Related Topics in Number Theory

    More Resources

    Why Choose MastersUp?

    🎯

    AI-Powered Plans

    Personalized study schedules based on your exam date and learning pace

    πŸ“š

    15,000+ Questions

    Verified questions with detailed solutions from past papers

    πŸ“Š

    Smart Analytics

    Track your progress with subject-wise performance insights

    πŸ”–

    Bookmark & Revise

    Save important questions for quick revision before exams

    Start Your Free Preparation β†’

    No credit card required β€’ Free forever for basic features