More fun in 2015, Part 17

How many integers a a with 1 a 2015 1\leq{a}\leq2015 are there such that 2015 divides a 30 1 a^{30}-1 ?


The answer is 360.

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.

4 solutions

Otto Bretscher
May 31, 2015

Here is a rather abstract group-theoretical SOLUTION I: The multiplicative group Z 2015 \mathbb{Z_{2015}^*} is isomorphic to Z 5 × Z 13 × Z 31 \mathbb{Z_{5}^*}\times\mathbb{Z_{13}^*}\times\mathbb{Z_{31}^*} , by the Chinese Remainder Theorem, which in turn is isomorphic to the additive group Z 4 × Z 12 × Z 30 \mathbb{Z_{4}}\times\mathbb{Z_{12}}\times\mathbb{Z_{30}} . We seek the solutions of 30 ( a , b , c ) ( 0 , 0 , 0 ) . 30(a,b,c)\equiv(0,0,0). This congruency holds if a a and b b are even, so that there are 2 × 6 × 30 = 360 2\times6\times30=\boxed{360} solutions.

Here is an elementary SOLUTION II that does not use any theory beyond Fermat's Little Theorem and the Chinese Remainder Theorem. As Isaac observed, the congruency a 30 1 ( m o d 2015 ) a^{30}\equiv1\pmod{2015} holds if and only if the same congruency holds modulo the prime factors of 2015 2015 , namely, 5 , 13 5, 13 and 31 31 . In fact, by the Chinese Remainder Theorem, the number of solutions modulo 2015 is the product of the numbers of solutions modulo 5 , 13 5, 13 and 31 31 .

Now a 30 1 ( m o d 31 ) a^{30}\equiv1\pmod{31} has 30 30 solutions, by Fermat's Little Theorem.

a 30 1 ( m o d 5 ) a^{30}\equiv1\pmod{5} is equivalent to a 2 1 ( m o d 5 ) a^{2}\equiv1\pmod{5} , by Fermat, and that congruency has 2 solutions, 1 1 and 4 4 , by inspection.

a 30 1 ( m o d 13 ) a^{30}\equiv1\pmod{13} is equivalent to a 6 1 ( m o d 13 ) a^{6}\equiv1\pmod{13} , by Fermat, and that congruency has 6 solutions, 1 , 3 , 4 , 9 , 10 , 12 1,3,4,9,10,12 by inspection (we get the last three by symmetry).

Thus our answer is, once again, 2 × 6 × 30 = 360 2\times6\times30=\boxed{360}

SOLUTION III: We can use the following result, which we leave as an exercise to the reader: If p p is a prime and n n is a positive integer , then the congruency a n 1 ( m o d p ) a^n\equiv{1} \pmod{p} has gcd ( p 1 , n ) \gcd(p-1,n) solutions. This gives us the number of solutions of a 30 1 a^{30}\equiv{1} modulo 5, 13, and 31 right away.

I'm teaching myself abstract algebra at the moment and I really liked your first solution especially. I have never heard of the chinese remainder theorem though, what is that exactly?

Theo Keeping - 6 years ago
Isaac Buckley
May 31, 2015

I'm just going to give a sketch of my proof since i feel it is not the most optimal way to solve this type of problem.

First we note that 2015 = 5 × 13 × 31 2015=5\times13\times31 .

If a 30 1 ( m o d 2015 ) a^{ 30 }\equiv1 \pmod {2015} Then it must also satisfy the three equations:

{ a 30 1 ( m o d 5 ) a 30 1 ( m o d 13 ) a 30 1 ( m o d 31 ) \begin{cases} a^{ 30 }\equiv1 \pmod {5}\\ a^{ 30 }\equiv1 \pmod {13}\\ a^{ 30 }\equiv1 \pmod {31} \end{cases}

From Fermat's little theorem we know n 4 1 ( m o d 5 ) n^{ 4 }\equiv1 \pmod {5} for n 5 k n\neq 5k .

Raising both sides to the power of 15 15 we get n 60 1 ( m o d 5 ) n^{ 60}\equiv1 \pmod {5} for n 5 k n\neq 5k .

Using the same argument we can get n 60 1 ( m o d 13 ) n^{ 60 }\equiv1^ \pmod {13} for n 13 k n\neq 13k .

This implies that n 60 1 ( m o d 65 ) n^{ 60 }\equiv1^ \pmod {65} for n 5 k n\neq 5k and n 13 k n\neq 13k .

Therefore a 30 1 ( m o d 65 ) a^{ 30 }\equiv1 \pmod {65} is satisfied when n 2 a ( m o d 65 ) n^{ 2}\equiv{a} \pmod {65} for n 5 k n\neq 5k and n 13 k n\neq 13k .

We then consider the Quadratic Residues ( m o d 65 ) \pmod {65} discounting all the ones which are multiples of 5 5 and 13 13 . After some hard calculation we are left with a set of 12 12 values of a a between 0 0 and 65 65 , a = 1 , 4 , 9 , 14 , 16 , 29 , 36 , 49 , 51 , 56 , 61 , 64 a={1,4,9,14,16,29,36,49,51,56,61,64}

We know that a a must satisfy a = a i + 65 m a=a_i+65m where a i a_i denotes a number in the set above and 0 m 30 0\le m \le 30 since 1 a 2015 1\leq{a}\leq2015 . The number of a a that satisfy this is 31 × 12 = 372 31\times 12=372 . This only satisfies the first two equations though.

So now lets consider a 30 1 ( m o d 31 ) a^{ 30 }\equiv1 \pmod {31} . Using Fermat's little theorem again we can see this holds for all a a such that a 31 k a\neq 31k . All we need to do now is to find out how many multiples of 31 31 are in a = a i + 65 m a=a_i+65m for 0 m 30 0\le m \le 30 and subtract them from 372 372 .

You can see there is only 1 1 value of m m per a i a_i .

Therefore the answer is 372 12 = 360 372-12=\boxed{360}

Please note this is my first proof and i've only recently been doing these types of problems. If i've made any mistakes please say. I have a feeling there is a five line solution i am unaware of. I can't tell if i've been creative or stupid.

Thank you for a careful and clear solution! (+1)

There are many ways to think about this problem, depending on how much group theory or number theory we are prepared to use (using quadratic residues is helpful, as you point out). As time allows, I will outline a few of them.

Otto Bretscher - 6 years ago

Otto sir's solution is very good.

But just for sake of variety, lemme post a CS solution(in python language).

1
2
3
4
5
6
7
8
9
li = []
for i in range(1,2016):
    a = i**30
    b = 1
    c = a-b
    if c%2015==0:
        li.append(c)

print(len(li))

It prints 360.

Jesse Nieminen
Oct 24, 2016

I solved this using NT, but since there are many NT solutions, I'll post a one-line CS solution.

1
print(len([a for a in range(1, 2016) if (a**30 - 1) % 2015 == 0]))

Which correctly outputs the answer of 360 \boxed{360}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...