mathbase
Course/Week 4/Session 4D

Session 4D

Classic modular proofs

45-75 min - work through lesson notes, practice, and the MCQ check.

In progress

Account sync

Sign in to keep this session synced across devices.

Account sync disabled

Add Supabase environment variables to enable account sync. Progress is saved locally in this browser for now.

Session tips

  • Finish the MCQ before marking complete.
  • Check the answer outlines after trying on paper.
  • Mark complete to update your certificate progress.

Lesson notes

  • Many "impossibility" number theory proofs come from restricting what values are possible modulo a small number. A famous example: for any integer n, n^2 == 0 or 1 (mod 4). The proof is by cases on parity. If n is even, n = 2k, so n^2 = 4k^2 == 0 (mod 4). If n is odd, n = 2k + 1, so n^2 = 4k(k+1) + 1 == 1 (mod 4). This is extremely useful because it means n^2 can never be congruent to 2 or 3 mod 4.
  • Once you know the possible residues, you can prove impossibility statements cleanly. For instance, there is no integer n with n^2 == 2 (mod 4) because squares mod 4 are only 0 or 1. This style generalizes: learn what values an expression can take mod m, then use that to rule out equations or divisibility claims. It's a controlled version of proof by cases, and it becomes a major technique in contest math and in early number theory.

Practice

  • 1Prove: n divisible by 3 iff sum of digits divisible by 3 (outline ok).
  • 2Prove: For any integer n, n^2 == 0 or 1 (mod 4).
  • 3Prove: There is no integer n such that n^2 == 2 (mod 4).
Show answers / outlines

Answers

  • 1Case n even or odd.
  • 2From (2), only 0 or 1 are possible.

Week quiz

  • 1Prove: If a == b (mod m) then a^2 == b^2 (mod m).
  • 2Evaluate: 2^10 mod 7.
Show quiz answers

Quiz answers

  • 1Use a^2 - b^2 = (a - b)(a + b).
  • 22^3 = 8 == 1, so 2^9 == 1 and 2^10 == 2.

MCQ

For any integer n, n^2 mod 4 can be:

Back to course overview
Week 4 - Session 4D