More fun in 2015, Part 27

a 2014 1 ( m o d 2015 ) a^{2014}\equiv 1 \pmod{2015}

How many positive integer solutions a a less than 2015 2015 does this congruency have?


The answer is 8.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Otto Bretscher
Nov 2, 2015

We first observe that a 2014 1 ( m o d 2015 ) a^{2014}\equiv 1 \pmod{2015} iff a 2 1 ( m o d 2015 ) a^2\equiv {1} \pmod {2015} since ϕ ( 2015 ) = 1440 \phi(2015)=1440 and gcd ( 1440 , 2014 ) = 2 \gcd(1440, 2014)=2 .

Next, a 2 1 ( m o d 2015 ) a^2\equiv {1} \pmod {2015} iff a 2 1 a^2\equiv {1} modulo 5, 13, and 31 since 2015 = 5 13 31 2015=5*13*31 . Now each of those congruences has the solutions a = ± 1 a=\pm 1 , so that the congruence a 2 1 ( m o d 2015 ) a^2\equiv {1} \pmod {2015} has 2 3 = 8 2^3=8 solutions.

Moderator note:

Indeed. If a m a n 1 ( m o d k ) a^m \equiv a^n \equiv 1 \pmod{k } , then a gcd ( m , n ) 1 ( m o d k ) a ^ { \gcd (m,n) } \equiv 1 \pmod{k} .

Dylan Pentland
Nov 2, 2015

This is equivalent to a 2014 1 ( m o d k ) a^{2014}\equiv 1 \pmod{k} for k = 5 , 13 , 31 k=5,13,31 . This is necessary since 2015 = 5 × 13 × 31 2015=5\times13\times31 . We can further reduce this to a 10 1 ( m o d 13 ) a^{10} \equiv 1 \pmod{13} , a 2 1 ( m o d 5 ) a^{2}\equiv 1 \pmod {5} , a 4 1 ( m o d 31 ) a^4 \equiv 1 \pmod{31} .

Let a = g i a=g^i for some generator g g . We get 12 10 i , 4 2 i , 30 4 i 12|10i, 4|2i, 30|4i since the generator can only give one when raised to some power divisible by p 1 p-1 . ('|' means divides). For each case, we get two values of i i less than p 1 p-1 : 0, and p 1 2 \frac{p-1}{2} . Hence, we get two solutions for a a for each case.

Combining these solutions, we get 2 3 = 8 2^3=8 total.

Yes, that works! (+1)

Otto Bretscher - 5 years, 7 months ago

There is a slight gap from " 12 10 i 12 \mid 10 i " to "we get two values of i i less than 13 1 13-1 ". This can be dealt with in a general manner: In a cyclic group of order d d , the number of solutions to a k 1 a ^ k \equiv 1 is gcd ( d , k ) \gcd (d, k ) .

Hence, we have gcd ( 10 , 12 ) = 2 , gcd ( 2 , 4 ) = 2 , gcd ( 4 , 30 ) = 2 \gcd(10, 12) = 2, \gcd (2, 4 ) = 2 , \gcd (4, 30 ) = 2 solutions to each of these modular equations, for a total of 2 × 2 × 2 = 8 2 \times 2 \times 2 = 8 solutions by Chinese Remainder Theorem .

Calvin Lin Staff - 5 years, 7 months ago

Log in to reply

My reasoning there was that 12 10 i 6 5 i 12 | 10i \Rightarrow 6 | 5i so i 0 ( m o d 6 ) i \equiv 0 \pmod{6} . Thus, if 0 i < p 0\le i < p we get i = 0 i=0 or i = 6 i=6 , which is pretty much why there are gcd ( p 1 , k ) \gcd(p-1,k) solutions for a k 1 ( m o d p ) a^k\equiv 1 \pmod{p} .

Dylan Pentland - 5 years, 7 months ago

Log in to reply

Right. That step was not clearly explained in the solution, hence the "slight gap".

Calvin Lin Staff - 5 years, 7 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...