How many integers a with 1 ≤ a ≤ 2 0 1 5 are there such that 2015 divides a 3 0 − 1 ?
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.
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?
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 2 0 1 5 = 5 × 1 3 × 3 1 .
If a 3 0 ≡ 1 ( m o d 2 0 1 5 ) Then it must also satisfy the three equations:
⎩ ⎪ ⎨ ⎪ ⎧ a 3 0 ≡ 1 ( m o d 5 ) a 3 0 ≡ 1 ( m o d 1 3 ) a 3 0 ≡ 1 ( m o d 3 1 )
From Fermat's little theorem we know n 4 ≡ 1 ( m o d 5 ) for n = 5 k .
Raising both sides to the power of 1 5 we get n 6 0 ≡ 1 ( m o d 5 ) for n = 5 k .
Using the same argument we can get n 6 0 ≡ 1 ( m o d 1 3 ) for n = 1 3 k .
This implies that n 6 0 ≡ 1 ( m o d 6 5 ) for n = 5 k and n = 1 3 k .
Therefore a 3 0 ≡ 1 ( m o d 6 5 ) is satisfied when n 2 ≡ a ( m o d 6 5 ) for n = 5 k and n = 1 3 k .
We then consider the Quadratic Residues ( m o d 6 5 ) discounting all the ones which are multiples of 5 and 1 3 . After some hard calculation we are left with a set of 1 2 values of a between 0 and 6 5 , a = 1 , 4 , 9 , 1 4 , 1 6 , 2 9 , 3 6 , 4 9 , 5 1 , 5 6 , 6 1 , 6 4
We know that a must satisfy a = a i + 6 5 m where a i denotes a number in the set above and 0 ≤ m ≤ 3 0 since 1 ≤ a ≤ 2 0 1 5 . The number of a that satisfy this is 3 1 × 1 2 = 3 7 2 . This only satisfies the first two equations though.
So now lets consider a 3 0 ≡ 1 ( m o d 3 1 ) . Using Fermat's little theorem again we can see this holds for all a such that a = 3 1 k . All we need to do now is to find out how many multiples of 3 1 are in a = a i + 6 5 m for 0 ≤ m ≤ 3 0 and subtract them from 3 7 2 .
You can see there is only 1 value of m per a i .
Therefore the answer is 3 7 2 − 1 2 = 3 6 0
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 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 |
|
It prints 360.
I solved this using NT, but since there are many NT solutions, I'll post a one-line CS solution.
1 |
|
Which correctly outputs the answer of 3 6 0
Problem Loading...
Note Loading...
Set Loading...
Here is a rather abstract group-theoretical SOLUTION I: The multiplicative group Z 2 0 1 5 ∗ is isomorphic to Z 5 ∗ × Z 1 3 ∗ × Z 3 1 ∗ , by the Chinese Remainder Theorem, which in turn is isomorphic to the additive group Z 4 × Z 1 2 × Z 3 0 . We seek the solutions of 3 0 ( a , b , c ) ≡ ( 0 , 0 , 0 ) . This congruency holds if a and b are even, so that there are 2 × 6 × 3 0 = 3 6 0 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 3 0 ≡ 1 ( m o d 2 0 1 5 ) holds if and only if the same congruency holds modulo the prime factors of 2 0 1 5 , namely, 5 , 1 3 and 3 1 . In fact, by the Chinese Remainder Theorem, the number of solutions modulo 2015 is the product of the numbers of solutions modulo 5 , 1 3 and 3 1 .
Now a 3 0 ≡ 1 ( m o d 3 1 ) has 3 0 solutions, by Fermat's Little Theorem.
a 3 0 ≡ 1 ( m o d 5 ) is equivalent to a 2 ≡ 1 ( m o d 5 ) , by Fermat, and that congruency has 2 solutions, 1 and 4 , by inspection.
a 3 0 ≡ 1 ( m o d 1 3 ) is equivalent to a 6 ≡ 1 ( m o d 1 3 ) , by Fermat, and that congruency has 6 solutions, 1 , 3 , 4 , 9 , 1 0 , 1 2 by inspection (we get the last three by symmetry).
Thus our answer is, once again, 2 × 6 × 3 0 = 3 6 0
SOLUTION III: We can use the following result, which we leave as an exercise to the reader: If p is a prime and n is a positive integer , then the congruency a n ≡ 1 ( m o d p ) has g cd ( p − 1 , n ) solutions. This gives us the number of solutions of a 3 0 ≡ 1 modulo 5, 13, and 31 right away.