CTK Exchange
Front Page
Movie shortcuts
Personal info
Awards
Reciprocal links
Terms of use
Privacy Policy

Interactive Activities

Cut The Knot!
MSET99 Talk
Games & Puzzles
Arithmetic/Algebra
Geometry
Probability
Eye Opener
Analog Gadgets
Inventor's Paradox
Did you know?...
Proofs
Math as Language
Things Impossible
My Logo
Math Poll
Other Math sit's
Guest book
News sit's

Recommend this site

Manifesto: what CTK is about Search CTK Buying a book is a commitment to learning Table of content Products to download and subscription Things you can find on CTK Chronology of updates Email to Cut The Knot Recommend this page

CTK Exchange

Subject: "Modular arithmetic"     Previous Topic | Next Topic
Printer-friendly copy     Email this topic to a friend    
Conferences The CTK Exchange This and that Topic #766
Reading Topic #766
Monty
Member since Jul-27-04
May-12-07, 10:25 PM (EST)
Click to EMail Monty Click to send private message to Monty Click to view user profileClick to add this user to your buddy list  
"Modular arithmetic"
 
   The definition of mod is, I understand,
if a = b mod n, then (a-b) is divisible by n, or a-b=kn, with k an integer
I'm applying this to Fermat's little theorem:
so if a^(p-1) = 1 mod p, then a^(p-1)-1 = kp
multiplying both sides by a, we get
a^p - a = kap = cp
So a^p - a = cp and a^(p-1)-1 = kp would seem to be equivalent.
HOWEVER, they seem NOT equivalent if a=p
a=p=2, 2^2-2=2=1*2, but 2^1-1=1 not a product of 2
a=p=3, 3^3-3=27-3=24=8*3, but 3^2-1=9-1=8 not a product of 3
Why is this?
It would seem that I'm somehow dividing by a-p, which is of course NG if a=p. But I don't see where.... ???
Monty


  Alert | IP Printer-friendly page | Reply | Reply With Quote | Top
alexbadmin
Charter Member
2009 posts
May-13-07, 08:04 AM (EST)
Click to EMail alexb Click to send private message to alexb Click to view user profileClick to add this user to your buddy list  
1. "RE: Modular arithmetic"
In response to message #0
 
   If a is divisible by p then a = 0 (mod p). So, in this case, multipliying by a is multiplying by 0.


  Alert | IP Printer-friendly page | Reply | Reply With Quote | Top
Monty
guest
May-15-07, 12:29 PM (EST)
 
2. "RE: Modular arithmetic"
In response to message #1
 
   I see what you're saying, but still don't understand. From the definition of mod I got an equation which said a^(p-1)-1=kp, that is it equals a product of p. I then multiplied by a and got a^p-a=cp, so it's also a product of p. If a=0 (mod p), then a=fp -- a is a product of p. So my second equation is fp^p-fp=cp. Let's see, I can factor out p, so I get fp^(p-1)-f=c. Now the function y=x^(x-1)+k is a little irregular (when x is negative....), but otherwise it's an ok function.

So I'm still missing the point.


  Alert | IP Printer-friendly page | Reply | Reply With Quote | Top
alexbadmin
Charter Member
2009 posts
May-15-07, 12:39 PM (EST)
Click to EMail alexb Click to send private message to alexb Click to view user profileClick to add this user to your buddy list  
3. "RE: Modular arithmetic"
In response to message #2
 
   >I see what you're saying, but still don't understand. From
>the definition of mod I got an equation which said
>a^(p-1)-1=kp,

This is only true if a is coprime with p.

>I then
>multiplied by a and got a^p-a=cp,

This is true for any a, for if p|a the fact is trivial.

>so it's also a product of p. If a=0 (mod p), then a=fp -- a is a product of p. So my
>second equation is fp^p-fp=cp.

This is trivially true, yes.

>Let's see, I can factor out
>p, so I get fp^(p-1)-f=c. Now the function y=x^(x-1)+k is a
>little irregular (when x is negative....), but otherwise
>it's an ok function.
>
>So I'm still missing the point.

I am not sure what point it is, so I am going to check your original message.



  Alert | IP Printer-friendly page | Reply | Reply With Quote | Top
alexbadmin
Charter Member
2009 posts
May-15-07, 12:42 PM (EST)
Click to EMail alexb Click to send private message to alexb Click to view user profileClick to add this user to your buddy list  
4. "RE: Modular arithmetic"
In response to message #0
 
   >The definition of mod is, I understand,
> if a = b mod n, then (a-b) is divisible by n, or a-b=kn,
>with k an integer
> I'm applying this to Fermat's little theorem:
> so if a^(p-1) = 1 mod p, then a^(p-1)-1 = kp
> multiplying both sides by a, we get
> a^p - a = kap = cp
>So a^p - a = cp and a^(p-1)-1 = kp would seem to be
>equivalent.

In a sense, yes, but you must be cautious as to the meaning of equivalence.

a^(p-1)-1 = kp holds only for a coprime with p, whereas
a^p - a = cp holds for any a,


  Alert | IP Printer-friendly page | Reply | Reply With Quote | Top

Conferences | Forums | Topics | Previous Topic | Next Topic

You may be curious to have a look at the old CTK Exchange archive.
Please do not post there.

Copyright © 1996-2018 Alexander Bogomolny

Search:
Keywords:

Google
Web CTK