MATH 470 Lecture 4
« previous | Thursday, January 24, 2013 | next »
Motivation and Math History
How to calculate ?
- 4th grade . . .
- 8th grade: k = [0..]; remainders = repeat [1, 2, 4]; by the pattern (when does it repeat?)
- College:
- Even faster! (secret: )
- How to find in general for mod ?
Order
Definition: For any prime , and , the order of in is the minimum positive integer such that .
For example,
- the order of 2 in is 3:
- the order of 1 in is 1:
- the order of 5 in is 6:
Fermat's Little Theorem
(See Fermat's Little Theorem→)
Given any prime and any integer ,
This is often written as , then
Proof
Why is when ?
Define modulo classes .
Multiply by : .
- none are 0
- No two are the same. (suppose not, then — contradiction)
- therefore, each will map uniquely to modulo classes
Take prouct of each group:
We can divide by since it is not a multiple of .
Corollary 1
For any such that , the order of is a factor of . Why?
Proof. If and , then — contradiction.
We know:
- is order in
Corollary 2
If and are integers such that and , then .
Proof. Rewrite as .
By Fermat's little theorem,
Corollary 3
If , then the function defined by has inverse .
Application Example
Written on board at beginning of class:
plaintext: ITWASABOUTELEVENOCLOCKINTHEMORNING ciphertext: MISGXGZFDILULOLGFEUFEPMJICLQFNJMJR
The code was build by with function .
Correspondence
A B C D . . . Z 2 3 4 5 27
We omit 0 and 1 since . That's not very secure.
For example, we take the first letter 'I' with correspondence 10:
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle I \to 10 \to 1000 \equiv 14 \pmod{29} \to M}
How to break coding scheme (), we need to find "cubic root" mod 29.
Corollary 2 and 3 tell us that for Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle d = 3} and , we need to find : Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle e = 19}
Generalization
What about when we replace by any integer Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle n} ?
- For example, "What is the last digit of ?" is another way of asking "3^{17} \equiv \Box \pmod{10}"
Can we find a number such that Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle 3^k \equiv 1 \pmod{10}} ? YES
For any integer , we define to be the set of all integers Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle k} in Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \{1, 2, \ldots, n-1 \}} with .
Examples:
- : Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left( \mathbb{Z} / 5 \mathbb{Z} \right)^* = \{ 1,2,3,4 \}}
- :
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle n = 9} :
- :
Euler's Totient Function
Let
From previous examples,
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \phi(6) = 2}
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \phi(9) = 6}
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \phi(12) = 4}
In particular,
Computation
How to compute ?
Basic fact:
since there are Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle p^{n-1}} multiples of between 0 and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle p^n} .
Properties:
Take the product of the totients of the prime factorization of the number
Example
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle 100 = 2^2 \cdot 5^2}
Euler's Theorem
For any integers , such thta ,
Example
What are the last two digits of ? (Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle 3^{4081} \equiv \Box \pmod{100}} )
Let , then Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \phi(100) = 40} .
Therefore Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle 3^{4081} = (3^{40})^\Box \cdot 3^1 \equiv 3 \pmod{100}}
And the last two digits are "03"