[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Euler's totient/phi function

Posted on 2006-06-27
5
Medium Priority
?
910 Views
Last Modified: 2012-05-05
If gcd(a,n) = 1 and gcd(a-1,n) = 1 then prove that

1 + a + a^2 + a^3 + ... + a^(phi-1) = 0 (mod n)

Where phi = phi(n) is the Euler phi/totient function.

= means "is congruent to"

I can prove this if n is a prime number, but I need the proof for any n > 1.

a and n are integers, of course.
0
Comment
Question by:acerola
  • 2
4 Comments
 
LVL 5

Expert Comment

by:bastibartel
ID: 17044565
Hi there ?

I don't exactly undertand your notation:
1 + a + a^2 + a^3 + ... + a^(phi-1) = 0 (mod n)

the part w/o (mod n) does not depend on n

Secondly, can you prove it for n=1 ?

Cheers,
Sebastian
0
 
LVL 1

Author Comment

by:acerola
ID: 17046672
phi = phi(n) (phi is a function of n)

For n=1 it is trivial, since all numbers are congruent to zero modulus 1.

I have already solved it. The sum is a geometric series. The first element is 1 and the scale facor is a, so:

a^0 + a^1 + a^2 + a^3 + ... + a^(phi-1) = (a^(phi) - 1)/(a - 1)

We know that:

a^(phi(n)) = 1 (mod n)

So:

a^(phi) - 1 = 0 (mod n)
since gcd(a-1,n) = 1, we can divide both sides by (a-1)
(a^(phi) - 1)/(a-1) = 0 (mod n)

That's it. I didn't realize that it was a geometric series. I was trying to solve it using Newton's binomial...
0
 
LVL 5

Expert Comment

by:bastibartel
ID: 17046716
*closed* :-)
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 17076348
Closed, 250 points refunded.
Netminder
Site Admin
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Foreword (May 2015) This web page has appeared at Google.  It's definitely worth considering! https://www.google.com/about/careers/students/guide-to-technical-development.html How to Know You are Making a Difference at EE In August, 2013, one …
Aerodynamic noise is the cause of the majority of the noise produced by helicopters. The inordinate amount of noise helicopters produce is a major problem in the both a military and civilian setting. To remedy this problem the use of an aerogel coat…
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Suggested Courses

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question