Show that a^2~0 or a^2~1 in Mod 4

  • Thread starter Thread starter PsychonautQQ
  • Start date Start date
  • Tags Tags
    Integers module
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 replies · 2K views
PsychonautQQ
Messages
781
Reaction score
10

Homework Statement


If a I san integer, show that a^2~0 or a^2~1 in mod 4 (~ represent equivalence)


Homework Equations





The Attempt at a Solution


my ATTEMPT:
I started with the division algorithm..
a = 2q + 1 for all odd numbers
a = 2q + 0 for all even numbers
then I squared the formula for even numbers...
a^2 = 4q^2 + 0... but q is arbitrary so
a^2 ~ 0 mod 4 for even numbers

then I did the same for odd numbers
a^2 = 4q^2 + 4q + 1
and then I said since q was arbitrary again I could say
a^2 = 4q + 1
a^2~1 mod 4 for odd numbers


is this the correct approach?
 
on Phys.org
Yep, clean work.