Proof of Euler s φ (Phi) Function Formula



Similar documents
MATH 289 PROBLEM SET 4: NUMBER THEORY

An Introduction to the RSA Encryption Method

Math 319 Problem Set #3 Solution 21 February 2002

MATH 537 (Number Theory) FALL 2016 TENTATIVE SYLLABUS

8 Divisibility and prime numbers

MATH10040 Chapter 2: Prime and relatively prime numbers

MATH 13150: Freshman Seminar Unit 10

CHAPTER 5. Number Theory. 1. Integers and Division. Discussion

Section 4.2: The Division Algorithm and Greatest Common Divisors

GREATEST COMMON DIVISOR

8 Primes and Modular Arithmetic

Today s Topics. Primes & Greatest Common Divisors

Some practice problems for midterm 2

Kevin James. MTHSC 412 Section 2.4 Prime Factors and Greatest Comm

Lecture 13 - Basic Number Theory.

mod 10 = mod 10 = 49 mod 10 = 9.

SUM OF TWO SQUARES JAHNAVI BHASKAR

I. GROUPS: BASIC DEFINITIONS AND EXAMPLES

The last three chapters introduced three major proof techniques: direct,

The application of prime numbers to RSA encryption

On Generalized Fermat Numbers 3 2n +1

Settling a Question about Pythagorean Triples

Homework until Test #2

The Fundamental Theorem of Arithmetic

Number Theory. Proof. Suppose otherwise. Then there would be a finite number n of primes, which we may

The Prime Numbers. Definition. A prime number is a positive integer with exactly two positive divisors.

SYSTEMS OF PYTHAGOREAN TRIPLES. Acknowledgements. I would like to thank Professor Laura Schueller for advising and guiding me

Continued Fractions and the Euclidean Algorithm

Applications of Fermat s Little Theorem and Congruences

1. The RSA algorithm In this chapter, we ll learn how the RSA algorithm works.

MATH10212 Linear Algebra. Systems of Linear Equations. Definition. An n-dimensional vector is a row or a column of n numbers (or letters): a 1.

Public Key Cryptography: RSA and Lots of Number Theory

ALGEBRAIC APPROACH TO COMPOSITE INTEGER FACTORIZATION

HOMEWORK 5 SOLUTIONS. n!f n (1) lim. ln x n! + xn x. 1 = G n 1 (x). (2) k + 1 n. (n 1)!

Public Key Cryptography and RSA. Review: Number Theory Basics

FACTORING POLYNOMIALS IN THE RING OF FORMAL POWER SERIES OVER Z

Discrete Mathematics, Chapter 4: Number Theory and Cryptography

CONTINUED FRACTIONS AND PELL S EQUATION. Contents 1. Continued Fractions 1 2. Solution to Pell s Equation 9 References 12

We can express this in decimal notation (in contrast to the underline notation we have been using) as follows: b + 90c = c + 10b

PYTHAGOREAN TRIPLES KEITH CONRAD

3 Some Integer Functions

Stupid Divisibility Tricks

k, then n = p2α 1 1 pα k

Student Outcomes. Lesson Notes. Classwork. Discussion (10 minutes)

DIVISIBILITY AND GREATEST COMMON DIVISORS

Quotient Rings and Field Extensions

Lectures on Number Theory. Lars-Åke Lindahl

Computing exponents modulo a number: Repeated squaring

Note on some explicit formulae for twin prime counting function

Winter Camp 2011 Polynomials Alexander Remorov. Polynomials. Alexander Remorov

U.C. Berkeley CS276: Cryptography Handout 0.1 Luca Trevisan January, Notes on Algebra

Theorem3.1.1 Thedivisionalgorithm;theorem2.2.1insection2.2 If m, n Z and n is a positive

MATH 22. THE FUNDAMENTAL THEOREM of ARITHMETIC. Lecture R: 10/30/2003

Breaking The Code. Ryan Lowe. Ryan Lowe is currently a Ball State senior with a double major in Computer Science and Mathematics and

CONTINUED FRACTIONS AND FACTORING. Niels Lauritzen

Every Positive Integer is the Sum of Four Squares! (and other exciting problems)

Sample Induction Proofs

Mathematical Induction

Handout #1: Mathematical Reasoning

3. Mathematical Induction

Carmichael numbers and pseudoprimes

4.2 Euclid s Classification of Pythagorean Triples

So let us begin our quest to find the holy grail of real analysis.

Elementary Number Theory and Methods of Proof. CSE 215, Foundations of Computer Science Stony Brook University

15 Prime and Composite Numbers

CS 103X: Discrete Structures Homework Assignment 3 Solutions

The Euclidean Algorithm

Handout NUMBER THEORY

GCDs and Relatively Prime Numbers! CSCI 2824, Fall 2014!

RECURSIVE ENUMERATION OF PYTHAGOREAN TRIPLES

of Nebraska - Lincoln

Overview of Number Theory Basics. Divisibility

A Little Set Theory (Never Hurt Anybody)

Primes in Sequences. Lee 1. By: Jae Young Lee. Project for MA 341 (Number Theory) Boston University Summer Term I 2009 Instructor: Kalin Kostadinov

CHAPTER 3. Methods of Proofs. 1. Logical Arguments and Formal Proofs

Linear Equations and Inequalities

Factoring Algorithms

Integer roots of quadratic and cubic polynomials with integer coefficients

Continued Fractions. Darren C. Collins

SECTION 10-2 Mathematical Induction

ON FIBONACCI NUMBERS WITH FEW PRIME DIVISORS

A Study on the Necessary Conditions for Odd Perfect Numbers

Integer Factorization using the Quadratic Sieve

Cartesian Products and Relations

Page 331, 38.4 Suppose a is a positive integer and p is a prime. Prove that p a if and only if the prime factorization of a contains p.

Tangent circles in the hyperbolic disk

minimal polyonomial Example

Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products

The Mathematical Cryptography of the RSA Cryptosystem

Chapter 4, Arithmetic in F [x] Polynomial arithmetic and the division algorithm.

Practice with Proofs

Grade 6 Math Circles March 10/11, 2015 Prime Time Solutions

CONTENTS 1. Peter Kahn. Spring 2007

26 Integers: Multiplication, Division, and Order

Math Workshop October 2010 Fractions and Repeating Decimals

Pigeonhole Principle Solutions

The Chinese Remainder Theorem

Counting Primes whose Sum of Digits is Prime

z 0 and y even had the form

Transcription:

Rose- Hulman Undergraduate Mathematics Journal Proof of Euler s φ (Phi Function Formula Shashank Chorge a Juan Vargas b Volume 14, no. 2, Fall 2013 Sponsored by Rose-Hulman Institute of Technology Department of Mathematics Terre Haute, IN 47803 Email: mathjournal@rose-hulman.edu http://www.rose-hulman.edu/mathjournal a Mumbai University b UNC Charlotte

Rose-Hulman Undergraduate Mathematics Journal Volume 14, no. 2, Fall 2013 Proof of Euler s φ (Phi Function Formula Shashank Chorge Juan Vargas Abstract. Euler s φ (phi Function counts the number of positive integers not exceeding n and relatively prime to n. Traditionally, the proof involves proving the φ function is multiplicative and then proceeding to show how the formula arises from this fact. We ignore this fact, at least directly, and show a practical and sound method to calculate φ. We offer a proof of the closed form formula for this function relying on similar, but subtly different counting techniques. Acknowledgements: This collaboration would not have been possible without Dr. Harold Reiter. His encouragement for this collaborative effort, despite the great distance between the authors, is greatly appreciated. We would like to thank Dr. David Rader and the referees who reviewed the paper for the abundance of useful suggestions and comments. Thank you.

Page 92 RHIT Undergrad. Math. J., Vol. 14, no. 2 Introduction If a 100-floor building needed repairs in every floor whose number had a prime factor in common with 100, how many floors would need repairs? Questions of this nature most clearly exemplify Euler s φ Function. In essence φ(100 is the number of floors that need no repairs. We say two numbers are relatively prime if they have no prime factors in common. The floors needing no repair are relatively prime to 100. Hence, the following definition. Definition 1. For n 1, φ(n denotes the number of positive integers not exceeding n and relatively prime to n. For the purpose of self-containment and clarity the gcd is defined as follows. Definition 2 (Greatest Common Divisor. The greatest common divisor of two nonzero integers a and b is the largest of all common divisors of a and b. We denote this integer by gcd(a,b. When gcd(a,b=1, we say a and b are relatively prime. In view of this manner of thinking about φ(n and the definition of the greatest common divisor we can restate definition 1 as Definition 3. For n 1, φ(n denotes the number of positive integers r such that r n and gcd(n, r = 1. At first it may seem as if learning how to calculate φ(n would serve no purpose beyond satisfying our curiosity in answering the posed question. In Number Theory and Computer Science, however, calculating φ(n plays a crucial rule in determining properties of theoretically defined functions and perfoming calculations with large numbers (for example, RSA and exponentiation under a modulus. At this point we might be curious about the motivation for φ(n. A little history may be in order. In a paper titled Theoremata arithmetica nova methodo demonstrata (Demonstration of a new method in the Theory of Arithmetic presented to the St. Petersburg Academy on October 15, 1759, Euler introduces this function [1]. This paper contained the formal proof of the generalized version of Fermat Little s Theorem, also known as The Fermat-Euler Theorem, ( a φ(n 1 mod n when gcd(n, a = 1. Originally, Fermat had made an observation for a special case restricted to prime numbers instead of n. After verifying it for several primes Fermat concluded it held true for all prime numbers; this was his version of induction, which Euler criticized in the introduction of his paper proving the very same formula (presented on August 2, 1736 to St. Petersburg Academy before discovering the general version years later [2]. Euler proved it using induction as we know it today. The standard proof, given by Euler himself in his 1759 paper, first shows φ(n is multiplicative and then establishes the formula; that is, for every m, l N we have φ(ml = φ(mφ(l and the closed form fomula follows from here.

RHIT Undergrad. Math. J., Vol. 14, no. 2 Page 93 Theorem 1.1. If the integer n 1 has the prime factorization n = p k 1 φ(n = n (1 (1 1p1 1p2 (1 1pr. 1 p k 2 2 p kr r, then The formula for Euler s φ Function has been proved using its multiplicative property and separately using group theory. Any textbook designed as an introduction to number theory will contain the former method [3]. The following proof makes use of two observations; one quite simple and the other quite subtle. We shall ignore, at least directly, the multiplicative property altogether and approach the statement from a different point of view. Counting Consecutive Intervals First let s agree on notation use. The notation G is used in group theory to denote the order, or number of elements, of the group G. Similarly, this notation shall be used here to denote the number of elements in a set. Unless otherwise noted, all variables and constants are natural numbers. We shall begin with the following lemma: Lemma 2.1. Define G k = {r N 0 < r kn and gcd(n, r = 1}. Then G k =kφ(n. Proof. Let H be the set of numbers relatively prime to n and not exceeding n. That is, H = {h N 0 < h n and gcd(n, h = 1}. By Definition 3, H = φ(n. Any multiple of n plus h, a number of the form kn + h, will contain no prime factor p of n because if p kn + h, then p kn and p h. But, we know that p kn and p h since p is a factor of n and gcd(n, h = 1. Thus, we get gcd(kn + h, n = 1. Since this last result holds for all k N and all h H, for any given k there are exactly H = φ(n relatively prime numbers to n in G = {r N (k 1n < r kn and gcd(r, n = 1}. That is, in any interval between two consecutive multiples of n there are exactly φ(n relatively prime numbers to n. Hence, G k is equal to the number of intervals of length n times φ(n, or G k = kφ(n. An argument in the proof is key to a result to come so we express it as a corollary: Corollary. Define G = {r N (k 1n < r kn and gcd(r, n = 1}, then G = φ(n. Consider n = 10, then gcd(r, 10 = gcd(r+10, 10. Whichever the value of r, the left hand side will tell what the right hand side will be. Using this approach counting the number of relatively prime numbers between any consecutive multiples of 10 will be reduced to counting the number of relatively prime numbers to 10, namely φ(10. For example, for 10 the numbers 1, 3, 7, 9 share no factors with 10 and are less than 10. So we have φ(10 = 4. Looking at the next interval, between 10 and 20, we can see that adding ten to the previously relatively prime numbers yield {11, 13, 17, 19}. These are exactly the numbers relatively prime to ten in that interval. The same holds true for the following interval, {21, 23, 27, 29}, and so on.

Page 94 RHIT Undergrad. Math. J., Vol. 14, no. 2 Counting the Special Cases Two cases will be considered for φ(pn, where p could be any prime: when gcd(p, n = 1 and when gcd(p, n = p. To this end the intervals of our example have been colored. The red lines end with multiples k of 10 where gcd(k, 10 = 1 and the blue ones end where gcd(k, 10 > 1. The lines that end in 30 and 70 are multiple 3 and multiple 7 of 10 respectively, hence red. Number line 0 10 20 30 40 50 60 70 80 Lemma 3.1. Let p be a prime and p n, then φ(pn = pφ(n. Proof. Notice that all the numbers that are relatively prime to pn are also relatively prime to n. Since gcd(pn, n = n and p n the following result follows: gcd(n, r = 1 if and only if gcd(pn, r = 1 for any natural number r. There are p intervals, each with φ(n numbers relatively prime to pn, hence by Lemma 2.1 the set G p = {r N 0 < r < pn and gcd(n, r = 1} has G p = pφ(n elements. For our example we choose 10, so let s consider 2 10; φ(2 10 = 2φ(10 = 2(4 = 8. Putting together the two sets mentioned in our previous example we have {1, 3, 7, 9, 11, 13, 17, 19}, exactly all 8 numbers relatively prime to 20. For 80 it holds, but care must be taken; we begin with φ(2 40 = 2 φ(40. Now we can apply the same argument again since 40 has a factor of 2, so 2 φ(2 20 = 2 2 φ(20. Repeating the same argument again 2 2 φ(2 10 = 2 2 2 φ(10 = 2 2 2 4 = 32. This can be checked by adding 10 to the set of four numbers relatively prime to 10 mentioned in the previous section. This will give the entire set relatively prime to 80, which has 32 elements in it. Let s now examine φ(pn when p is not a factor of n. Lemma 3.2. Let p be a prime and p n, then φ(pn = (p 1φ(n. Proof. By Lemma 2.1 we know that pφ(n is the number of numbers relatively prime to n and less than pn. Notice that all the multiples of p whose factors are relatively prime to n are counted, since gcd(p, n = 1. Notice the conditions imply gcd(pn, r = 1 if and only if gcd(n, r = 1 and gcd(p, r = 1. Suppose the list of multiples is {r 1 p, r 2 p, r 3 p,..., r φ(n p}, where all the r s are relatively prime to n. The set has φ(n numbers relatively prime to n and 0 relatively prime to p, because they are all multiples of p. We substract this many from our orignal count and we have φ(pn = pφ(n φ(n = (p 1φ(n.

RHIT Undergrad. Math. J., Vol. 14, no. 2 Page 95 Pick 10, for example, and consider 3 10; φ(3 10 = (3 1φ(10 = 2(4 = 8. The set relatively prime to 10 is {1, 3, 7, 9} and extending it three times we have {1, 3, 7, 9, 11, 13, 17, 19, 21, 23, 27, 29}. Notice the subset {3,9,21,27}; these numbers are all relatively prime to 10 and not relatively prime to 3. Excluding this subset we are left with {1, 7, 11, 13, 17, 19, 23, 29}, exactly all the 8 numbers relatively prime to 30. The General Case We now have everything we need to prove the formula in the general case. Theorem. If the integer n 1 has the prime factorization n = p k 1 1 p k 2 2 p kr r, then φ(n = n (1 (1 1p1 1p2 (1 1pr. Proof. Applying Lemma 3.1 to all prime factors allows us to have the following formula: φ(p k1 pr kr = p k 1 1 1 p k 2 1 2 p kr 1 r φ(p 1 p 2 p r. Applying Lemma 3.2 we obtain φ(p 1 p 2 p r = (p 1 1(p 2 1...(p r 1. Therefore we have: φ(n = p k 1 1 1 p k 2 1 2 p kr 1 r (p 1 1(p 2 1 (p r 1 Now we clean up by multiplying by 1 in the form of ps p s for all 1 s r. ( p1 ( ( p2 pr φ(n =... p k1 1 p k 2 1 p kr 1 (p 1 1(p 2 1 (p r 1 p 1 p 2 p ( r ( ( = p k p1 1 1 p2 1 pr 1 p k2 p kr p 1 p 2 p ( r = p k 1 p k2 p kr 1 1 ( 1 1 (1 1pr p 1 p 2 = n (1 (1 1p1 1p2 (1 1pr. References [1] The Euler Archive, E271 Theoremata Arithmetica Nova Methodo Demonstrata. http://eulerarchive.maa.org/pages/e271.html, April, 2013. [2] The Euler Archive, E54 Theorematum Quorundam ad Numeros Primos Spectantium Demonstratio. http://eulerarchive.maa.org/pages/e054.htmll, April, 2013. [3] Elementary Number Theory, David M. Burton, 7 th Edition, pg. 133-134.