/
Lecture 3:  Modular Arithmetic Lecture 3:  Modular Arithmetic

Lecture 3: Modular Arithmetic - PowerPoint Presentation

phoebe-click
phoebe-click . @phoebe-click
Follow
398 views
Uploaded On 2018-02-16

Lecture 3: Modular Arithmetic - PPT Presentation

of a series of preparatory lectures for the Fall 2013 online course MATH7450 22M305 Topics in Topology Scientific and Engineering Applications of Algebraic Topology Target Audience Anyone interested in ID: 631962

http mod light multiple mod http multiple light www photostream flickr catmachine 2875559738 deed photos creativecommons org licenses odd

Share:

Link:

Embed:

Download Presentation from below link

Download Presentation The PPT/PDF document "Lecture 3: Modular Arithmetic" is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.


Presentation Transcript

Slide1

Lecture 3: Modular Arithmeticof a series of preparatory lectures for the Fall 2013 online course MATH:7450 (22M:305) Topics in Topology: Scientific and Engineering Applications of Algebraic TopologyTarget Audience: Anyone interested in topological data analysis including graduate students, faculty, industrial researchers in bioinformatics, biology, computer science, cosmology, engineering, imaging, mathematics, neurology, physics, statistics, etc.

Isabel

K. Darcy

Mathematics Department/Applied Mathematical & Computational Sciences

University

of

Iowa

http://

www.math.uiowa.edu

/~

idarcy

/

AppliedTopology.html

Slide2

Defn: x = y mod z if x – y is a multiple of zExamples mod 12:Slide3

Defn: x = y mod z if x – y is a multiple of zExamples mod 12:3 = 15 mod 12 since 15 –

3

=

12 is a multiple of 12

3

=

27 mod

12 since

27

3

=

24

is a multiple of

12

3

=

-9 mod

12 since

-9

3

=

-12

is a multiple of 12

12

=

0 mod

12 since

12

0

=

12 is a multiple of 12Slide4

http://www.flickr.com/photos/catmachine/2875559738/in/photostream/http://creativecommons.org/licenses/by/2.0/deed.en

Slide5

1212

12

3

3

3

9

9

9

http://www.flickr.com/photos/catmachine/2875559738/in/photostream

/

http://

creativecommons.org/licenses/by/2.0/deed.en

Slide6

1212

3

3

3

9

9

9

http://www.flickr.com/photos/catmachine/2875559738/in/photostream

/

http://

creativecommons.org/licenses/by/2.0/deed.en

Slide7

1212

12

3

3

3

9

9

9

http://www.flickr.com/photos/catmachine/2875559738/in/photostream

/

http://

creativecommons.org/licenses/by/2.0/deed.en

Slide8

3624

12

27

3

15

9

33

21

http://www.flickr.com/photos/catmachine/2875559738/in/photostream

/

http://

creativecommons.org/licenses/by/2.0/deed.en

Slide9

12 = 36

12

=

24

12

27

3

15

9

33

21

3

=

15

=

27 mod 12

9

=

21

=

33 mod 12

-

12

=

0

=

12

=

24

=

36 mod 12

mod 12

http://www.flickr.com/photos/catmachine/2875559738/in/photostream

/

http://

creativecommons.org/licenses/by/2.0/deed.en

Slide10

mod 12twelve = XII = 12 = 24 = 36 = 48 = -12 =

-

24

=

0

mod 12:

Z

12

=

{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}

Addition: 13 + 12 =

1 + 0 =

1 mod 12 15 +

72 = 3 +

0

=

3 mod 12

23

16

=

11

4

=

-1 +

8

=

-1 –

4

=

-

5

=

7 mod 12

Sidenote

: 3 ×

4

=

0 mod 12Slide11

Video insert:

mod

2

=

light switch

Mod 2 arithmetic can be illustrated via a light switch

0 = no light

1 = light

1 + 1 = 0 = no light

1 + 1 + 1 + 1 = 0 = no light

0 = 2 = 4 = 6 = no light

1 + 1 + 1 = 1 = light

1 = 3 = 5 = 7 = lightSlide12

mod 2two = II = 2 = 4 = 6 = 8 = -2

=

-4

=

0 mod 2

i.e., any even number mod 2

=

zero

one

=

I

= 1

= 3 = 5 = 7

= -1 = -3 =

-5 = -7 i.e., any

odd number mod 2

=

one

mod 2

:

Z

2

=

Z/2Z

=

{0,

1}Slide13

Defn: x = y mod z if x – y is a multiple of zExamples: 0 = 2 mod 2 since 2

0

=

2

is a multiple of

2

0

=

-8 mod

2 since -8 – 0 = -8 is a multiple of

2 1 = 3 mod 2 since

3 – 1 = 2 is a multiple of 2

1 = -1 mod 2 since 1

– (-1) = 2 is a multiple of 2Slide14

Addition modulo 2two = II = 2 = 4 = 6 = 8 =

-

2

=

-

4

=

0 mod 2

i.e., any even number mod

2

=

zero

one = 1 = 3 =

5 = 7 = -

1 = -3 = -5

= -7 i.e., any

odd

number mod

2

=

one

mod 2

:

Z

2

=

{0,

1}

Addition: even +

even

=

even

=

0

4 –

10

=

0 +

0

=

0

e

ven +

odd

=

odd

24 +

15

=

1 +

0

=

1

odd +

odd

=

even

=

0

1 +

1

=

0Slide15

e

2

e

1

e

4

e

5

(e

1

+ e

2

+ e

3

)

+

(

e

3

+ e

4

+ e

5

)

=

e

1

+ e

2

+

2e

3

+ e

4

+

e

5

=

e

1

+ e

2

+ e

4

+

e

5

mod 2

e

2

e

1

e

4

e

5

e

3

With

Z

2

=

{0,

1}

coefficients: