2 0 1 7 , 2 0 1 8 , 2 0 1 9 , 2 0 2 0 , … If a i is a term in the above arithmetic progression , then every non-negative integer from 0 to 2 0 1 7 (inclusive) is a possible remainder of a i when divided by 2 0 1 8 .
Now, let b i be any term in the following arithmetic progression: 2 0 1 7 , 2 0 1 7 + n , 2 0 1 7 + 2 n , 2 0 1 7 + 3 n , … . Find the number of positive integers n ≤ 2 0 1 8 such that every non-negative integer from 0 to 2 0 1 7 (inclusive) is a possible remainder of b i when divided by 2 0 1 8 .
Bonus :
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.
Relevant wiki: Euler's Totient Function
The possible remainders of b i are each respectively congruent to k ∗ g c d ( n , 2 0 1 8 ) + 2 0 1 7 ( m o d 2 0 1 8 ) , for some k ∈ Z .
From this, it can be seen that g c d ( n , 2 0 1 8 ) = 1 if the conditions are to be met.
So the number of different values for n is φ ( 2 0 1 8 ) , where φ ( n ) is Euler's Totient (phi) Function.
As φ ( m n ) = φ ( m ) φ ( n ) where g c d ( m , n ) = 1 ;
And g c d ( 2 , 1 0 0 9 ) = 1 ;
And φ ( p ) = p − 1 when p is prime;
φ ( 2 0 1 8 ) = φ ( 2 ) φ ( 1 0 0 9 ) = 1 ∗ 1 0 0 8 = 1 0 0 8
Generalisation: For an initial term a and a divisor b , the number of different values for n is always φ ( b ) , irrespective of a .
Small typo. k belongs to I and not R.
Problem Loading...
Note Loading...
Set Loading...
Let's consider the generalized version of the problem, replacing 2 0 1 7 , the first term of AP, with b 1 and 2 0 1 8 , the divisor, with M ; and let me show that─
Proof :
So, to solve the problem, we have to find number of positive integers n ≤ 2 0 1 8 such that n and 2 0 1 8 are coprime. Yes, we need ϕ ( 2 0 1 8 ) , when ϕ ( ) is the Euler's Totient Function .
Hence the answer is ϕ ( 2 0 1 8 ) = ϕ ( 2 × 1 0 0 9 ) = ϕ ( 2 ) × ϕ ( 1 0 0 9 ) = 1 × 1 0 0 8 = 1 0 0 8 .