How can we show that one of these congruences hold?

  • Context: MHB 
  • Thread starter Thread starter mathmari
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around the properties of the set of perfect squares modulo 8. Participants explore how to demonstrate that for any integer squared, the result will yield specific congruences: 0, 1, or 4 modulo 8. The scope includes mathematical reasoning and exploration of patterns in modular arithmetic.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • Some participants define the set \( M = \{x^2 \mid x \in \mathbb{Z}\} \) and provide examples of perfect squares.
  • There is a suggestion that the remainders when perfect squares are divided by 8 follow a periodic pattern, specifically a period of 4.
  • Participants propose analyzing \( y = 4k + r \) for integers \( k \) and \( r \in \{0, 1, 2, 3\} \) to determine the possible values of \( y^2 \mod 8 \).
  • Some participants express that the possible values of \( r^2 \) modulo 8 are 0, 1, and 4, with 9 being equivalent to 1 modulo 8.
  • One participant outlines a case analysis based on whether \( n \) (the integer being squared) is even or odd, detailing the congruences that arise in each case.

Areas of Agreement / Disagreement

Participants generally agree on the periodic nature of the remainders but explore different approaches to demonstrate the congruences. There is no consensus on a single method or resolution to the problem, as various perspectives and methods are presented.

Contextual Notes

Participants discuss the implications of periodicity and case analysis without resolving all assumptions or mathematical steps. The discussion remains open-ended regarding the completeness of the proofs offered.

mathmari
Gold Member
MHB
Messages
4,984
Reaction score
7
Hey! :o

We define the set $M:=\{x^2\mid x\in\mathbb{Z}\}$.

  1. Give 8 different elements of M.
  2. Give for each element of question 1, m, two numbers $q\in \mathbb{Z}, r\in \{0,1,\ldots , 7\}$ such that $m=8q+r$.
  3. Show that for all $x\in M$ one of the following holds:
    $x\overset{(8)}{\equiv}0$, $x\overset{(8)}{\equiv}1$, $x\overset{(8)}{\equiv}4$
I have done the following:
  1. We have $1^2=1, 2^2=4, 3^2=9, 4^2=16, 5^2=25, 6^2=36, 7^2=49, 8^2=64$.
  2. $1=8\cdot 0+1, 4=8\cdot 0+4, 9=8\cdot 1+1, 16=8\cdot 2+0, 25=8\cdot 3+1, 36=8\cdot 4+4, 49=8\cdot 6+1, 64=8\cdot 8+0$
  3. How can we show that? (Wondering)
 
Physics news on Phys.org
mathmari said:
We define the set $M:=\{x^2\mid x\in\mathbb{Z}\}$.

3. Show that for all $x\in M$ one of the following holds: $x\overset{(8)}{\equiv}0$, $x\overset{(8)}{\equiv}1$, $x\overset{(8)}{\equiv}4$

Hey mathmari!

If $x\in M$, then there must be a $y\in\mathbb Z$ such that $x=y^2$ yes? (Thinking)

In question 2 we can see there seems to be a repeating pattern, don't we?
The remainers modulo 8 for consecutive values of $y$ are 1,4,1,0,1,4,1,0 after all.
That seem to be periodic with period 4, doesn't it?

Suppose we write $y=4k+r$ for some integer $k$ and $r\in\{0,1,2,3\}$.
What will be the possibilities for $y^2\pmod 8$? (Wondering)
 
Klaas van Aarsen said:
Suppose we write $y=4k+r$ for some integer $k$ and $r\in\{0,1,2,3\}$.
What will be the possibilities for $y^2\pmod 8$? (Wondering)

Why do we take the y in this form? Because it is periodic of period 4? (Wondering)

The square is as follows:
$$y^2\mod 8\equiv 16k^2+8kr+r^2\mod 8\equiv r^2$$

The possible values of $r^2$ are $0,1,4,9=1$.
 
Last edited by a moderator:
mathmari said:
Why do we take the y in this form? Because it is periodic of period 4?

Yep. (Nod)
It seems to be periodic with period 4, so we try to prove that it is indeed the case. And additionally what the possible remainders are.

mathmari said:
The square is as follows:
$$y^2\mod 8\equiv 16k^2+8kr+r^2\mod 8\equiv r^2$$

The possible values of $r^2$ are $0,1,4,9=1$.

So? (Wondering)
 
mathmari said:
Hey! :o

We define the set $M:=\{x^2\mid x\in\mathbb{Z}\}$.

  1. Give 8 different elements of M.
  2. Give for each element of question 1, m, two numbers $q\in \mathbb{Z}, r\in \{0,1,\ldots , 7\}$ such that $m=8q+r$.
  3. Show that for all $x\in M$ one of the following holds:
    $x\overset{(8)}{\equiv}0$, $x\overset{(8)}{\equiv}1$, $x\overset{(8)}{\equiv}4$
I have done the following:
  1. We have $1^2=1, 2^2=4, 3^2=9, 4^2=16, 5^2=25, 6^2=36, 7^2=49, 8^2=64$.
  2. $1=8\cdot 0+1, 4=8\cdot 0+4, 9=8\cdot 1+1, 16=8\cdot 2+0, 25=8\cdot 3+1, 36=8\cdot 4+4, 49=8\cdot 6+1, 64=8\cdot 8+0$
  3. How can we show that? (Wondering)
Look at your answers to (2)! Each has 8 times some number plus 1, 4, 1, 0, 1, 4, 1, 0.
 
Tedious- we need to look at four "cases".

Every number in Z is either even or odd.
1) Suppose n is even. Then n= 2m for some integer m so n^2= 4m^2.
m is either even or odd
1a)Suppose m is even. Then m= 2k and n^2= 4(4k^2)= 8(2k^2) and n^2 is congruent to 0 mod 8.
1b)Suppose m is odd. Then m= 2k+ 1 and n^2= 4(2k+1)^2= 4(4k^2+ 4k+ 1)= 8(2k^2+ 2k)+ 4 and n^2 is congruent to 4 mod 8.

2) Suppose n is odd. Then n= 2m+ 1 for some integer m so n^2= 4m^2+ 4m+ 1= 4(m^2+ m)+ 1.
2a) Suppose m is even. Then m= 2k so n^2= 4(4k^2+ 2k)+ 1= 8(2k^2+ k)+ 1 and n^2 is congruent to 1 mod 8.
2b) Suppose m is odd. Then m= 2k+ 1 so n^2= 4(4k^2+ 4k+ 1+2k+ 1)+ 1= 4(4k^2+ 6k+ 2)+ 1= 8(2k^2+ 3k+ 1)+ 1 and n^2 is congruent to 1 mod 8.
 
Last edited by a moderator:

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 18 ·
Replies
18
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K