Library

Video Player is loading.
 
Current Time 0:00
Duration 16:51
Loaded: 0.00%
 

x1.00


Back

Games & Quizzes

Training Mode - Typing
Fill the gaps to the Lyric - Best method
Training Mode - Picking
Pick the correct word to fill in the gap
Fill In The Blank
Find the missing words in a sentence Requires 5 vocabulary annotations
Vocabulary Match
Match the words to the definitions Requires 10 vocabulary annotations

You may need to watch a part of the video to unlock quizzes

Don't forget to Sign In to save your points

Challenge Accomplished

PERFECT HITS +NaN
HITS +NaN
LONGEST STREAK +NaN
TOTAL +
- //

We couldn't find definitions for the word you were looking for.
Or maybe the current language is not supported

  • 00:00

    PROFESSOR: Another way to talk about congruence and remainder
    PROFESSOR: Another way to talk about congruence and remainder

  • 00:03

    arithmetic is to work strictly with remainders,
    arithmetic is to work strictly with remainders,

  • 00:05

    which makes things a little simpler because you don't have
    which makes things a little simpler because you don't have

  • 00:08

    to worry about the fact that the product of two remainders
    to worry about the fact that the product of two remainders

  • 00:10

    may, for example, be too big to be a remainder.
    may, for example, be too big to be a remainder.

  • 00:12

    To knock it back in range, you have
    To knock it back in range, you have

  • 00:14

    to take the remainder again.
    to take the remainder again.

  • 00:15

    And that's what this abstract idea
    And that's what this abstract idea

  • 00:18

    of the ring of integers modulo n, the ring Z sub n,
    of the ring of integers modulo n, the ring Z sub n,

  • 00:22

    captures in a quite elegant way.
    captures in a quite elegant way.

  • 00:25

    So it's going to allow us to talk strictly about equality
    So it's going to allow us to talk strictly about equality

  • 00:27

    instead of congruence.
    instead of congruence.

  • 00:28

    And let's remind ourselves that the basic idea behind working
    And let's remind ourselves that the basic idea behind working

  • 00:34

    with a remainder arithmetic was that every time we
    with a remainder arithmetic was that every time we

  • 00:38

    got a number that was too big to be a remainder,
    got a number that was too big to be a remainder,

  • 00:41

    we just hit it with the remainder operation
    we just hit it with the remainder operation

  • 00:43

    again to bring it back in range.
    again to bring it back in range.

  • 00:45

    And so the operations in Zn work exactly that way.
    And so the operations in Zn work exactly that way.

  • 00:50

    The elements of Zn are the remainders.
    The elements of Zn are the remainders.

  • 00:52

    That is, the numbers from 0, including 0, up to n,
    That is, the numbers from 0, including 0, up to n,

  • 00:56

    but not including n.
    but not including n.

  • 00:57

    So there are n of them from 0, 1, up through n minus 1.
    So there are n of them from 0, 1, up through n minus 1.

  • 01:01

    And the definitions of the operations in Zn
    And the definitions of the operations in Zn

  • 01:04

    are given right here.
    are given right here.

  • 01:05

    Addition just means take this sum
    Addition just means take this sum

  • 01:07

    but then take the remainder immediately,
    but then take the remainder immediately,

  • 01:09

    just in case it's too big.
    just in case it's too big.

  • 01:11

    And likewise, the product in Zn is simply multiply them
    And likewise, the product in Zn is simply multiply them

  • 01:15

    and take the remainder.
    and take the remainder.

  • 01:16

    This isn't really a very dramatic idea,
    This isn't really a very dramatic idea,

  • 01:20

    but it turns out to pay off in making some things just
    but it turns out to pay off in making some things just

  • 01:23

    a little bit easier to say, because we're
    a little bit easier to say, because we're

  • 01:25

    talking about equality instead of congruence.
    talking about equality instead of congruence.

  • 01:29

    So this package together, this mathematical structure
    So this package together, this mathematical structure

  • 01:32

    consisting of the integers in this interval--
    consisting of the integers in this interval--

  • 01:34

    remember this notation, square bracket
    remember this notation, square bracket

  • 01:36

    means inclusive and round parenthesis means exclusive.
    means inclusive and round parenthesis means exclusive.

  • 01:40

    So this includes zero, it doesn't include n.
    So this includes zero, it doesn't include n.

  • 01:42

    The integers in that interval, under the operations
    The integers in that interval, under the operations

  • 01:46

    of plus and times modulo Zn, as defined here,
    of plus and times modulo Zn, as defined here,

  • 01:51

    is called the ring of integers Zn.
    is called the ring of integers Zn.

  • 01:54

    So it's got two operations and a bunch
    So it's got two operations and a bunch

  • 01:56

    of things that are operated on.
    of things that are operated on.

  • 01:59

    Now I guess it's worth highlighting.
    Now I guess it's worth highlighting.

  • 02:02

    That's what Zn is, the ring of integers.
    That's what Zn is, the ring of integers.

  • 02:04

    Mod n, or modulo n.
    Mod n, or modulo n.

  • 02:06

    Now, arithmetic in Zn is really just arithmetic-- congruence
    Now, arithmetic in Zn is really just arithmetic-- congruence

  • 02:11

    arithmetic, except that it's equality now instead
    arithmetic, except that it's equality now instead

  • 02:15

    of congruence.
    of congruence.

  • 02:17

    So we can say, for example, in Z7 that 3 plus 6
    So we can say, for example, in Z7 that 3 plus 6

  • 02:20

    is literally equal to 2 because, well, 3 plus 6 is 9,
    is literally equal to 2 because, well, 3 plus 6 is 9,

  • 02:24

    the remainder on division by 7 is 2,
    the remainder on division by 7 is 2,

  • 02:27

    and we go directly to the two in Zn,
    and we go directly to the two in Zn,

  • 02:30

    suppressing the mention of taking remainders and not even
    suppressing the mention of taking remainders and not even

  • 02:33

    really having to think about it, which is what's
    really having to think about it, which is what's

  • 02:35

    helpful about working with Zn.
    helpful about working with Zn.

  • 02:37

    Likewise, 9 times 8 is literally equal to 6 in Z11.
    Likewise, 9 times 8 is literally equal to 6 in Z11.

  • 02:45

    So what's the connection between the set of all the integers
    So what's the connection between the set of all the integers

  • 02:48

    and the integers mod n?
    and the integers mod n?

  • 02:50

    And we can state this abstractly in the following way.
    And we can state this abstractly in the following way.

  • 02:54

    Let's just, for convenience, abbreviate the remainder of k
    Let's just, for convenience, abbreviate the remainder of k

  • 02:57

    on division by n as R of k.
    on division by n as R of k.

  • 03:00

    So n is fixed.
    So n is fixed.

  • 03:01

    And what's the connection between Z and Zn?
    And what's the connection between Z and Zn?

  • 03:03

    Well, it's fairly simple.
    Well, it's fairly simple.

  • 03:05

    If you take the remainder of i plus j,
    If you take the remainder of i plus j,

  • 03:08

    that's literally equal to taking the sum
    that's literally equal to taking the sum

  • 03:11

    of the remainders in Zn.
    of the remainders in Zn.

  • 03:14

    Once you've taken the remainders,
    Once you've taken the remainders,

  • 03:15

    you're in the range of numbers that Zn works with.
    you're in the range of numbers that Zn works with.

  • 03:19

    And this sum, then, keeps you in on the Zn side.
    And this sum, then, keeps you in on the Zn side.

  • 03:22

    Likewise, if you take the remainder
    Likewise, if you take the remainder

  • 03:24

    of a product of real integers, that's
    of a product of real integers, that's

  • 03:27

    literally equal to the product of the remainders in Zn.
    literally equal to the product of the remainders in Zn.

  • 03:31

    This operation, by the way, this connection
    This operation, by the way, this connection

  • 03:32

    between mathematical structures, the structure
    between mathematical structures, the structure

  • 03:35

    of the integers under plus and times
    of the integers under plus and times

  • 03:37

    and Zn under plus and times, is called a homomorphism.
    and Zn under plus and times, is called a homomorphism.

  • 03:40

    R, in this case, is defining a homomorphism from Z to Zn.
    R, in this case, is defining a homomorphism from Z to Zn.

  • 03:44

    That's a basic concept in algebra
    That's a basic concept in algebra

  • 03:46

    that you'll learn more about if you
    that you'll learn more about if you

  • 03:47

    take some courses in algebra, but I'm just mentioning it
    take some courses in algebra, but I'm just mentioning it

  • 03:50

    for cultural reasons.
    for cultural reasons.

  • 03:51

    We're not going to exploit it any further,
    We're not going to exploit it any further,

  • 03:53

    or look further into this idea.
    or look further into this idea.

  • 03:55

    OK.
    OK.

  • 03:57

    What's the connection between equivalence mod
    What's the connection between equivalence mod

  • 03:59

    n, or congruence mod n, and Zn?
    n, or congruence mod n, and Zn?

  • 04:01

    Well, it's fairly simple.
    Well, it's fairly simple.

  • 04:05

    In Zn, we convert congruences into equalities.
    In Zn, we convert congruences into equalities.

  • 04:08

    So i is congruent to j mod n if and only if r of i
    So i is congruent to j mod n if and only if r of i

  • 04:13

    is equal to r of j in Zn.
    is equal to r of j in Zn.

  • 04:16

    And this is just a rephrasing of the fact
    And this is just a rephrasing of the fact

  • 04:19

    that two numbers are congruent if
    that two numbers are congruent if

  • 04:20

    and only if they have the same remainder.
    and only if they have the same remainder.

  • 04:24

    Now once you've got this self-contained system Zn,
    Now once you've got this self-contained system Zn,

  • 04:27

    you can start talking about algebraic rules
    you can start talking about algebraic rules

  • 04:29

    that it satisfies.
    that it satisfies.

  • 04:30

    And now, they hold with equality and they're pretty familiar.
    And now, they hold with equality and they're pretty familiar.

  • 04:33

    So let's look at some of the rules for addition,
    So let's look at some of the rules for addition,

  • 04:36

    for example, that hold true in Zn.
    for example, that hold true in Zn.

  • 04:38

    First of all, addition is associative.
    First of all, addition is associative.

  • 04:40

    i plus j plus k is i plus j plus k.
    i plus j plus k is i plus j plus k.

  • 04:44

    We have an identity element, literally zero.
    We have an identity element, literally zero.

  • 04:46

    Zero plus any i is i.
    Zero plus any i is i.

  • 04:49

    We have a minus operation, an inverse operation, with respect
    We have a minus operation, an inverse operation, with respect

  • 04:53

    to addition, which is that-- how do I get back some slides?
    to addition, which is that-- how do I get back some slides?

  • 05:03

    Excuse me.
    Excuse me.

  • 05:03

    OK, let's keep going.
    OK, let's keep going.

  • 05:04

    I have an inverse operation, which is that for every i,
    I have an inverse operation, which is that for every i,

  • 05:08

    there's an element called minus i.
    there's an element called minus i.

  • 05:10

    It's additive inverse such that if you add i and minus i,
    It's additive inverse such that if you add i and minus i,

  • 05:14

    you get zero.
    you get zero.

  • 05:15

    And finally, commutativity, which
    And finally, commutativity, which

  • 05:17

    is that i plus j is the same as j plus i.
    is that i plus j is the same as j plus i.

  • 05:20

    You don't really need to memorize these names,
    You don't really need to memorize these names,

  • 05:22

    but you will probably hear them a lot
    but you will probably hear them a lot

  • 05:24

    in various other contexts, and especially in algebra courses,
    in various other contexts, and especially in algebra courses,

  • 05:28

    but even in terms of arithmetic.
    but even in terms of arithmetic.

  • 05:29

    These are some of the basic rules that addition satisfies.
    These are some of the basic rules that addition satisfies.

  • 05:32

    And in fact, multiplication satisfies
    And in fact, multiplication satisfies

  • 05:34

    pretty much the same rules.
    pretty much the same rules.

  • 05:35

    Multiplication is likewise associative.
    Multiplication is likewise associative.

  • 05:38

    There's an identity for multiplication called 1.
    There's an identity for multiplication called 1.

  • 05:40

    1 times i is i.
    1 times i is i.

  • 05:43

    Multiplication is also commutative.
    Multiplication is also commutative.

  • 05:44

    The one obvious omission here is inverses.
    The one obvious omission here is inverses.

  • 05:48

    You can't count on there being inverses in Zn.
    You can't count on there being inverses in Zn.

  • 05:52

    And finally, there's an operation
    And finally, there's an operation

  • 05:54

    that connects addition and multiplication called
    that connects addition and multiplication called

  • 05:57

    distributivity.
    distributivity.

  • 05:58

    Namely, i times j plus k is ij plus ik,
    Namely, i times j plus k is ij plus ik,

  • 06:02

    as you well know from ordinary arithmetic.
    as you well know from ordinary arithmetic.

  • 06:05

    And this rule works fine for remainders and working in Zn.
    And this rule works fine for remainders and working in Zn.

  • 06:11

    As I said, the one thing we have to watch out
    As I said, the one thing we have to watch out

  • 06:12

    for, it shouldn't be a surprise, is we
    for, it shouldn't be a surprise, is we

  • 06:14

    know that you can't cancel with respect to congruence mod n.
    know that you can't cancel with respect to congruence mod n.

  • 06:17

    And that's reflected in the fact that you can't cancel in Zn.
    And that's reflected in the fact that you can't cancel in Zn.

  • 06:20

    Namely, in Z12, for example, 3 times 2 is equal to 2 times 8.
    Namely, in Z12, for example, 3 times 2 is equal to 2 times 8.

  • 06:26

    Again, 3 times 2 is 6, 2 times 8 is 16,
    Again, 3 times 2 is 6, 2 times 8 is 16,

  • 06:28

    you immediately take the remainder to get back to 6.
    you immediately take the remainder to get back to 6.

  • 06:31

    In Z12, these two things are equal.
    In Z12, these two things are equal.

  • 06:34

    But if you tried to cancel the 2, you'd conclude that 3 was 8,
    But if you tried to cancel the 2, you'd conclude that 3 was 8,

  • 06:37

    and neither 3-- 3 and 8 are different numbers
    and neither 3-- 3 and 8 are different numbers

  • 06:40

    in the range from 0 to 12, and they're different in Z12.
    in the range from 0 to 12, and they're different in Z12.

  • 06:45

    So you can't cancel 2.
    So you can't cancel 2.

  • 06:47

    OK.
    OK.

  • 06:48

    Now the rules that we already figured out
    Now the rules that we already figured out

  • 06:50

    for when you can cancel in congruence
    for when you can cancel in congruence

  • 06:52

    translate directly over to when you can cancel in Zn.
    translate directly over to when you can cancel in Zn.

  • 06:56

    And now there's a standard abbreviation
    And now there's a standard abbreviation

  • 06:58

    that's useful to use here.
    that's useful to use here.

  • 07:00

    If I write Zn*, what I mean is the elements in Zn that are
    If I write Zn*, what I mean is the elements in Zn that are

  • 07:04

    relatively prime to n.
    relatively prime to n.

  • 07:06

    The elements whose GCD with n is 1.
    The elements whose GCD with n is 1.

  • 07:09

    So what we have is the following equivalent formulations of Zn*,
    So what we have is the following equivalent formulations of Zn*,

  • 07:16

    which correspond to the facts we've already figured out about
    which correspond to the facts we've already figured out about

  • 07:19

    congruence.
    congruence.

  • 07:19

    Namely, an integer i in the range from 0 to n is in Zn*
    Namely, an integer i in the range from 0 to n is in Zn*

  • 07:25

    if and only if the GCD of i and n is 1,
    if and only if the GCD of i and n is 1,

  • 07:28

    or i is cancelable in Zn, or i has an inverse in Zn.
    or i is cancelable in Zn, or i has an inverse in Zn.

  • 07:32

    All of these three things are equivalent.
    All of these three things are equivalent.

  • 07:34

    They give you the sense that Zn* is a kind of robust subset
    They give you the sense that Zn* is a kind of robust subset

  • 07:40

    of Zn that you'd want to be thinking about.
    of Zn that you'd want to be thinking about.

  • 07:43

    And in fact, it's very valuable to be paying attention to.
    And in fact, it's very valuable to be paying attention to.

  • 07:46

    What else do we know about Zn*?
    What else do we know about Zn*?

  • 07:48

    Well, the definition of phi of n was the number
    Well, the definition of phi of n was the number

  • 07:52

    of integers in the interval from 0
    of integers in the interval from 0

  • 07:54

    to n that are relatively prime to n.
    to n that are relatively prime to n.

  • 07:56

    Of course, that's exactly the size of Zn*.
    Of course, that's exactly the size of Zn*.

  • 08:00

    So phi of n is simply the size of that collection of elements.
    So phi of n is simply the size of that collection of elements.

  • 08:04

    Not surprising.
    Not surprising.

  • 08:05

    They were defined that way.
    They were defined that way.

  • 08:07

    So now I can restate Euler's Theorem
    So now I can restate Euler's Theorem

  • 08:09

    in a slightly convenient way.
    in a slightly convenient way.

  • 08:10

    Instead of mentioning congruence,
    Instead of mentioning congruence,

  • 08:11

    we can just talk about equality.
    we can just talk about equality.

  • 08:12

    Euler's Theorem says that if you raise a number k to the power
    Euler's Theorem says that if you raise a number k to the power

  • 08:16

    phi of n, it's literally equal to 1 in Zn,
    phi of n, it's literally equal to 1 in Zn,

  • 08:20

    at least for those k's that are relatively prime to n.
    at least for those k's that are relatively prime to n.

  • 08:23

    That is, those k's that are in Zn*.
    That is, those k's that are in Zn*.

  • 08:27

    And it's going to turn out that the proof of Euler's Theorem
    And it's going to turn out that the proof of Euler's Theorem

  • 08:30

    is actually pretty easy.
    is actually pretty easy.

  • 08:31

    It just follows in a couple of steps
    It just follows in a couple of steps

  • 08:33

    from a couple of simple observations.
    from a couple of simple observations.

  • 08:34

    So let's start on those.
    So let's start on those.

  • 08:36

    So the first remark is that if I have any subset, S, of elements
    So the first remark is that if I have any subset, S, of elements

  • 08:40

    in Zn-- I don't care whether they are relatively prime to n
    in Zn-- I don't care whether they are relatively prime to n

  • 08:43

    or not-- if I multiply each of them by k,
    or not-- if I multiply each of them by k,

  • 08:47

    this notation for k times S means
    this notation for k times S means

  • 08:50

    that I'm taking the set of elements that are of the form
    that I'm taking the set of elements that are of the form

  • 08:54

    k times an element of S over all the elements of S.
    k times an element of S over all the elements of S.

  • 08:57

    So kS, which is this set of multiples
    So kS, which is this set of multiples

  • 09:01

    of k-- multiples of elements of S by k,
    of k-- multiples of elements of S by k,

  • 09:04

    has exactly the same size as S.
    has exactly the same size as S.

  • 09:07

    Now, why is that?
    Now, why is that?

  • 09:08

    Well, this of course is only true for k that are cancelable.
    Well, this of course is only true for k that are cancelable.

  • 09:11

    But the Lemma is, no matter what subset you take of Zn,
    But the Lemma is, no matter what subset you take of Zn,

  • 09:15

    if you multiplied every one of them by an element
    if you multiplied every one of them by an element

  • 09:19

    that's cancelable in Zn*, you get a set of the same size.
    that's cancelable in Zn*, you get a set of the same size.

  • 09:23

    And that's clear because how could ks1 and ks2 be equal?
    And that's clear because how could ks1 and ks2 be equal?

  • 09:28

    Well, only if s1 and s2 were equal.
    Well, only if s1 and s2 were equal.

  • 09:30

    Or another way to say it is that if you
    Or another way to say it is that if you

  • 09:32

    had different elements in S, s1 not equal to s2,
    had different elements in S, s1 not equal to s2,

  • 09:35

    when you multiply them by k, you have
    when you multiply them by k, you have

  • 09:37

    to get different elements of ks, because k is cancelable.
    to get different elements of ks, because k is cancelable.

  • 09:42

    OK.
    OK.

  • 09:43

    So that's an easy remark.
    So that's an easy remark.

  • 09:44

    Holds in general.
    Holds in general.

  • 09:46

    Multiply any subset by a cancelable element,
    Multiply any subset by a cancelable element,

  • 09:50

    and you get a new set that's the same size.
    and you get a new set that's the same size.

  • 09:53

    The second remark is that if you look at numbers i and j that
    The second remark is that if you look at numbers i and j that

  • 09:57

    are in the interval from 0 to n in Zn,
    are in the interval from 0 to n in Zn,

  • 10:01

    then if you multiply the two of them,
    then if you multiply the two of them,

  • 10:06

    then you're going to get an element in Zn* if and only
    then you're going to get an element in Zn* if and only

  • 10:11

    if the original two elements were in Zn*.
    if the original two elements were in Zn*.

  • 10:14

    Well, let's just look at it in the left to right direction,
    Well, let's just look at it in the left to right direction,

  • 10:16

    which is the only one we need.
    which is the only one we need.

  • 10:17

    If i and j are relatively prime to Zn*,
    If i and j are relatively prime to Zn*,

  • 10:22

    then so is their product, because if neither i nor j has
    then so is their product, because if neither i nor j has

  • 10:26

    a prime factor in common with n, then their product obviously
    a prime factor in common with n, then their product obviously

  • 10:30

    doesn't have a factor in common with n.
    doesn't have a factor in common with n.

  • 10:34

    And then when you take remainders,
    And then when you take remainders,

  • 10:35

    it's still going to be a number whose GCD is the same.
    it's still going to be a number whose GCD is the same.

  • 10:39

    And so we have this remark that if you
    And so we have this remark that if you

  • 10:41

    multiply two cancelable elements,
    multiply two cancelable elements,

  • 10:44

    you get a cancelable element.
    you get a cancelable element.

  • 10:45

    If you multiply two elements relatively prime to Zn*,
    If you multiply two elements relatively prime to Zn*,

  • 10:48

    you get an element of Zn*.
    you get an element of Zn*.

  • 10:49

    There's about-- every one of these formulations of Zn*
    There's about-- every one of these formulations of Zn*

  • 10:52

    in terms of GCDs are cancelable or inverse,
    in terms of GCDs are cancelable or inverse,

  • 10:56

    and each of them gives a separate and straightforward
    and each of them gives a separate and straightforward

  • 10:58

    proof of the fact that if i and j are in Zn*,
    proof of the fact that if i and j are in Zn*,

  • 11:01

    then so is their product.
    then so is their product.

  • 11:02

    Now it's worth mentioning, by the way,
    Now it's worth mentioning, by the way,

  • 11:04

    that, in general, their sum is not.
    that, in general, their sum is not.

  • 11:06

    If you add two elements that are relatively prime to Zn*,
    If you add two elements that are relatively prime to Zn*,

  • 11:12

    even if their sum is non-zero, you will typically get
    even if their sum is non-zero, you will typically get

  • 11:14

    an element that is no longer relatively prime to n.
    an element that is no longer relatively prime to n.

  • 11:21

    But for multiplication, it works great,
    But for multiplication, it works great,

  • 11:22

    and that's what matters to us.
    and that's what matters to us.

  • 11:25

    OK.
    OK.

  • 11:26

    So as a corollary of this is that I can actually conclude
    So as a corollary of this is that I can actually conclude

  • 11:29

    that, if I choose an element that's cancelable,
    that, if I choose an element that's cancelable,

  • 11:32

    an element in Zn*, if I take the whole set Zn*,
    an element in Zn*, if I take the whole set Zn*,

  • 11:36

    all those elements that are relatively prime to n,
    all those elements that are relatively prime to n,

  • 11:38

    and I take multiples of k by each of them, then, in fact,
    and I take multiples of k by each of them, then, in fact,

  • 11:43

    I get the same set, Zn*.
    I get the same set, Zn*.

  • 11:46

    And the proof of that is really straightforward.
    And the proof of that is really straightforward.

  • 11:52

    Let's think about it for a minute.
    Let's think about it for a minute.

  • 11:53

    Because what do I know is that these two sets
    Because what do I know is that these two sets

  • 11:55

    are the same size.
    are the same size.

  • 11:57

    kZn* and Zn* are the same size.
    kZn* and Zn* are the same size.

  • 12:00

    As long as k is cancelable, I don't even care that this was
    As long as k is cancelable, I don't even care that this was

  • 12:02

    Zn*.
    Zn*.

  • 12:05

    On the other hand, if k is in Zn*,
    On the other hand, if k is in Zn*,

  • 12:08

    k times Zn* only gives you elements in Zn*.
    k times Zn* only gives you elements in Zn*.

  • 12:12

    So kZn* is a subset of the left-hand side,
    So kZn* is a subset of the left-hand side,

  • 12:17

    and it's the same size by the Lemma that says that
    and it's the same size by the Lemma that says that

  • 12:20

    multiplying by k preserves sizes.
    multiplying by k preserves sizes.

  • 12:22

    So they have to be equal.
    So they have to be equal.

  • 12:24

    So basically what that means is that if you take all
    So basically what that means is that if you take all

  • 12:27

    the elements in Z*, all the elements relatively prime to n,
    the elements in Z*, all the elements relatively prime to n,

  • 12:31

    and you take another one of them, pick one out of that set,
    and you take another one of them, pick one out of that set,

  • 12:34

    and multiply every element in the set by that element k,
    and multiply every element in the set by that element k,

  • 12:39

    if you had them lined up in one order beforehand,
    if you had them lined up in one order beforehand,

  • 12:42

    when you multiplied by k you get exactly the same elements
    when you multiplied by k you get exactly the same elements

  • 12:45

    but just reordered.
    but just reordered.

  • 12:47

    That is, multiplying by k has the effect of permuting
    That is, multiplying by k has the effect of permuting

  • 12:50

    the elements of Zn*.
    the elements of Zn*.

  • 12:54

    Let's look at an example.
    Let's look at an example.

  • 12:55

    So let's look at Z9.
    So let's look at Z9.

  • 12:57

    And we know that phi of 9, by the previous formula,
    And we know that phi of 9, by the previous formula,

  • 13:00

    is 3 squared minus 3, or 6.
    is 3 squared minus 3, or 6.

  • 13:02

    There are going to be 6 elements from 0 to n that are relatively
    There are going to be 6 elements from 0 to n that are relatively

  • 13:05

    prime to 9, and that comprise Zn*.
    prime to 9, and that comprise Zn*.

  • 13:10

    So let's look at what they are.
    So let's look at what they are.

  • 13:11

    So you can do-- check the calculation.
    So you can do-- check the calculation.

  • 13:13

    But Zn* is exactly the elements 1, 2, 4, 5, 7, 8.
    But Zn* is exactly the elements 1, 2, 4, 5, 7, 8.

  • 13:18

    We know we got them all because there's only
    We know we got them all because there's only

  • 13:20

    supposed to be six of them, and we
    supposed to be six of them, and we

  • 13:21

    can check that those are all relatively prime to 9.
    can check that those are all relatively prime to 9.

  • 13:24

    None of them has 3 as a divisor.
    None of them has 3 as a divisor.

  • 13:26

    Now what happens, for example, if I multiply them all by 2?
    Now what happens, for example, if I multiply them all by 2?

  • 13:29

    Two is another good number-- it's right here--
    Two is another good number-- it's right here--

  • 13:32

    that's in Zn*.
    that's in Zn*.

  • 13:33

    And multiplying them by 2, well, let's check.
    And multiplying them by 2, well, let's check.

  • 13:35

    2 times 1 is 2, 2 times 2 is 4, 2 times 4 is 8,
    2 times 1 is 2, 2 times 2 is 4, 2 times 4 is 8,

  • 13:39

    2 times 5 is 1-- because it's 10 with a remainder of 1-- 2 times
    2 times 5 is 1-- because it's 10 with a remainder of 1-- 2 times

  • 13:45

    7 is 14-- translates into 5-- 2 times 8
    7 is 14-- translates into 5-- 2 times 8

  • 13:47

    is 16-- [INAUDIBLE] translates into 7.
    is 16-- [INAUDIBLE] translates into 7.

  • 13:51

    And, as claimed, look at this.
    And, as claimed, look at this.

  • 13:52

    Here's 2, 4, 8, 1, 5, 7.
    Here's 2, 4, 8, 1, 5, 7.

  • 13:55

    It's the same numbers as 1, 2, 4, 5, 7, 8,
    It's the same numbers as 1, 2, 4, 5, 7, 8,

  • 13:58

    just in a different order.
    just in a different order.

  • 14:00

    Let's do one more example.
    Let's do one more example.

  • 14:02

    Let's try multiplying by 7.
    Let's try multiplying by 7.

  • 14:03

    That's another respectable element over here.
    That's another respectable element over here.

  • 14:06

    7 times 1 is 7, 7 times 2 is 14, which means it's 5 in Z9.
    7 times 1 is 7, 7 times 2 is 14, which means it's 5 in Z9.

  • 14:14

    4 times 7 is 28.
    4 times 7 is 28.

  • 14:15

    Well, 3 times 7 is 27, so that leaves a remainder of 1.
    Well, 3 times 7 is 27, so that leaves a remainder of 1.

  • 14:20

    And 4 times 7 is 1 in Z9.
    And 4 times 7 is 1 in Z9.

  • 14:22

    Likewise, 5 times 7 is 8, 7 times 7 is 4, and 7 times 8
    Likewise, 5 times 7 is 8, 7 times 7 is 4, and 7 times 8

  • 14:27

    is 56, which translates to 2.
    is 56, which translates to 2.

  • 14:30

    And sure enough, as claimed, I see the same numbers, 7, 5, 1,
    And sure enough, as claimed, I see the same numbers, 7, 5, 1,

  • 14:34

    8, 4, 2, just these numbers scrambled in order.
    8, 4, 2, just these numbers scrambled in order.

  • 14:38

    They're permuted, which is the outcome of multiplying by 7.
    They're permuted, which is the outcome of multiplying by 7.

  • 14:43

    OK.
    OK.

  • 14:44

    So let's go back.
    So let's go back.

  • 14:46

    What we've just illustrated is this fact that we've already
    What we've just illustrated is this fact that we've already

  • 14:48

    concluded that, if you take Zn* and you multiply it
    concluded that, if you take Zn* and you multiply it

  • 14:53

    by an element k in Zn*, you get the same set in a different
    by an element k in Zn*, you get the same set in a different

  • 14:57

    order.
    order.

  • 14:57

    So Zn* is equal to k times Zn*.
    So Zn* is equal to k times Zn*.

  • 15:02

    And now we're on the brink of proving Euler's Theorem.
    And now we're on the brink of proving Euler's Theorem.

  • 15:05

    Because what I want to do is say, look,
    Because what I want to do is say, look,

  • 15:07

    these two sets are the same.
    these two sets are the same.

  • 15:09

    Let's multiply all the elements on the left
    Let's multiply all the elements on the left

  • 15:12

    together, and multiply all the elements on the right together.
    together, and multiply all the elements on the right together.

  • 15:15

    Let's take the product of those elements.
    Let's take the product of those elements.

  • 15:17

    So let's take the product of Zn* and compare it to the product
    So let's take the product of Zn* and compare it to the product

  • 15:22

    of kZn*.
    of kZn*.

  • 15:24

    So big pi here is indicating the product
    So big pi here is indicating the product

  • 15:26

    of all of the elements in this set, the product of all
    of all of the elements in this set, the product of all

  • 15:29

    of the elements in this set.
    of the elements in this set.

  • 15:31

    Well, let's look at the set on the right.
    Well, let's look at the set on the right.

  • 15:35

    This is the product of k times all the elements in Z*.
    This is the product of k times all the elements in Z*.

  • 15:39

    Well how many elements are there?
    Well how many elements are there?

  • 15:41

    Phi of n elements in Z*, by definition.
    Phi of n elements in Z*, by definition.

  • 15:44

    And let's factor out all the k's.
    And let's factor out all the k's.

  • 15:47

    So this expression here, the product of k times each element
    So this expression here, the product of k times each element

  • 15:51

    in Zn*, is the same as the product of the elements in Zn*
    in Zn*, is the same as the product of the elements in Zn*

  • 15:56

    times k to as many elements as there were,
    times k to as many elements as there were,

  • 15:59

    namely k to the phi of n.
    namely k to the phi of n.

  • 16:00

    I'm just factoring k out of this product.
    I'm just factoring k out of this product.

  • 16:03

    And there's my k to the phi of n.
    And there's my k to the phi of n.

  • 16:05

    And now look what I got here.
    And now look what I got here.

  • 16:06

    That's pi Zn*, and that's pi Zn*.
    That's pi Zn*, and that's pi Zn*.

  • 16:10

    What do I know about multiplying elements in Zn*?
    What do I know about multiplying elements in Zn*?

  • 16:13

    They're in Zn*.
    They're in Zn*.

  • 16:15

    This product will be some other element is Zn*.
    This product will be some other element is Zn*.

  • 16:18

    So will this product.
    So will this product.

  • 16:19

    But what do I know about Zn*?
    But what do I know about Zn*?

  • 16:21

    They're cancelable.
    They're cancelable.

  • 16:23

    So just looking-- ignoring the middle term now,
    So just looking-- ignoring the middle term now,

  • 16:26

    what I'm concluding is that the product of Zn* is k to the phi
    what I'm concluding is that the product of Zn* is k to the phi

  • 16:29

    of n times the product of Zn*.
    of n times the product of Zn*.

  • 16:31

    Let's cancel those cancelable terms.
    Let's cancel those cancelable terms.

  • 16:33

    And I'm done.
    And I'm done.

  • 16:34

    I've just figured out that 1, which
    I've just figured out that 1, which

  • 16:36

    is the result of canceling the term on the left,
    is the result of canceling the term on the left,

  • 16:39

    is equal to k to the phi of n.
    is equal to k to the phi of n.

  • 16:41

    And we have successfully proved Euler's Theorem,
    And we have successfully proved Euler's Theorem,

  • 16:45

    which is what we were aiming for in this segment.
    which is what we were aiming for in this segment.

All

2.3.3 The Ring Z: Video

4,658 views

Video Language:

  • english

Caption Language:

  • English (en)

Accent:

Speech Time:

NaN%
  • 16:42 / Invalid date

Speech Rate:

  • 172 wpm - Fast

Category:

  • Unkown

Tags :

Intro:

PROFESSOR: Another way to talk about congruence and remainder
arithmetic is to work strictly with remainders,. which makes things a little simpler because you don't have
to worry about the fact that the product of two remainders
may, for example, be too big to be a remainder.. To knock it back in range, you have. to take the remainder again.. And that's what this abstract idea. of the ring of integers modulo n, the ring Z sub n,
captures in a quite elegant way.. So it's going to allow us to talk strictly about equality
instead of congruence.. And let's remind ourselves that the basic idea behind working
with a remainder arithmetic was that every time we. got a number that was too big to be a remainder,. we just hit it with the remainder operation. again to bring it back in range.. And so the operations in Zn work exactly that way.. The elements of Zn are the remainders.. That is, the numbers from 0, including 0, up to n,.

Video Vocabulary