Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Euclidean algorithm

  1. May 5, 2008 #1
    I am currently studying Information Theory. Could I please have anyone's ideas on the following question:

    Using the Euclidean algorithm, show that coprime numbers always have multiplicative inverses modulo each other.

    I tried the following proof, using Fermat's little theorem, let me know what you think.

    {a,2a,...,(n-1)a}={1,2,...,(n-1)}(mod n)
    (n-1)! a^(n-1)=(n-1)! (mod n)
    a^(n-1)=1 (mod n)

    any improvements/suggestions are very welcome! Thank you!
  2. jcsd
  3. May 5, 2008 #2


    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    Well, I see these problems:

    First, you introduce new variables without explanation: a and n. If they are supposed to be an arbitrary pair of coprime numbers, then you should say something like that.

    How do you know that? The most obvious proof requires you to already know that a is invertible mod n.

    You cannot divide by (n-1)! unless you already know it's invertible. And you cannot prove it's invertible -- for most n it's actually equivalent to zero mod n

    And finally, you've made no remark about why this should have anything to do with the theorem you were trying to prove.

    But the most serious problem is that you aren't even doing the problem you were asked to do.
    Last edited: May 5, 2008
  4. May 5, 2008 #3
    ok then, that proves that I am completely lost! how would you prove this theorem?
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook