i = 1 ∑ k g cd ( i , k ) = ? Let's represent k ∈ N with its prime factorization, i.e., k = i = 1 ∏ n p i a i , where n is the number of distinct primes that divide k . Find the value of the above sum.
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.
Let f ( k ) = i = 1 ∑ k g cd ( i , k ) for any k positive integer.
We are going to prove the two statements below, from which the answer clearly follows:
Claim 1.: If p is a positive prime and a is an arbitrary positive integer, f ( p a ) = p a − 1 ( 1 + ( a + 1 ) ( p − 1 ) ) .
Claim 2.: f ( k ) is a multiplicative arithmetic function, which means that if g cd ( a , b ) = 1 for a , b positive integers, then f ( a b ) = f ( a ) f ( b ) .
Proof of Claim 1.:
We are using induction on a . The base case a = 1 is clear, since f ( p ) = ( i = 1 ∑ p − 1 g cd ( i , p ) ) + g cd ( p , p ) = p − 1 + p = 2 p − 1 and p a − 1 ( 1 + ( a + 1 ) ( p − 1 ) ) = 2 p − 1 .
Assume that the claim is proven for a − 1 . In order to verify it for a , recall the following well known facts:
g cd ( a + k b , b ) = g cd ( a , b ) for any a , b , k integers.
If 0 < i < p a , g cd ( i , p a ) = g cd ( i , p a − 1 ) for a p prime and an a positive integer.
Using this we can now establish the induction step for a :
f ( p a ) = i = 1 ∑ p a g cd ( i , p a ) = i = 1 ∑ p a − 1 − 1 g cd ( i , p a ) + g cd ( p a − 1 , p a ) + i = 1 ∑ p a − 1 − 1 g cd ( i + p a − 1 , p a ) + g cd ( 2 p a − 1 , p a ) + … + i = 1 ∑ p a − 1 − 1 g cd ( i + ( p − 1 ) p a − 1 , p a ) + g cd ( p a , p a ) = i = 1 ∑ p a − 1 − 1 ( j = 0 ∑ p − 1 g cd ( i + j p a − 1 , p a ) ) + l = 1 ∑ p g cd ( l p a − 1 , p a ) = i = 1 ∑ p a − 1 − 1 ( j = 0 ∑ p − 1 g cd ( i + j p a − 1 , p a − 1 ) ) + ( p − 1 ) p a − 1 + p a = i = 1 ∑ p a − 1 − 1 ( j = 0 ∑ p − 1 g cd ( i , p a − 1 ) ) + ( 2 p − 1 ) p a − 1 = i = 1 ∑ p a − 1 − 1 p ⋅ g cd ( i , p a − 1 ) + ( 2 p − 1 ) p a − 1 = p ⋅ ( f ( p a − 1 ) − p a − 1 ) + ( 2 p − 1 ) p a − 1 = p a − 1 ( 1 + a ( p − 1 ) ) − p a + ( 2 p − 1 ) p a − 1 = p a − 1 ( 1 + a p − a − p + 2 p − 1 ) = p a − 1 ( 1 + ( a + 1 ) ( p − 1 ) ) ,
so our induction is complete.
Proof of Claim 2.:
The greatest common divisor function is known to be multiplicative, so for every a , b , i integers we have g cd ( i , a b ) = ( g cd ( i , a ) ) ( g cd ( i , b ) ) .
Furthermore, according to the Chinese Remainder theorem for every 0 ≤ i ≤ a − 1 and 0 ≤ j ≤ b − 1 pair of integers there is exactly one number u ( i , j ) in the interval ( 1 , a b ) which has a remainder of i and j when divided by a and b respectively.
Using the former observations we obtain the following:
f ( a b ) = i = 1 ∑ a b g cd ( i , a b ) = i = 0 ∑ a − 1 j = 0 ∑ b − 1 g cd ( u ( i , j ) , a b ) = i = 0 ∑ a − 1 j = 0 ∑ b − 1 ( g cd ( u ( i , j ) , a ) ) ( g cd ( u ( i , j ) , b ) ) = i = 0 ∑ a − 1 j = 0 ∑ b − 1 ( g cd ( i , a ) ) ( g cd ( j , b ) ) = i = 1 ∑ a j = 1 ∑ b ( g cd ( i , a ) ) ( g cd ( j , b ) ) = ( i = 1 ∑ a g cd ( i , a ) ) ( j = 1 ∑ b g cd ( j , b ) ) = f ( a ) f ( b )
Q.E.D.
Problem Loading...
Note Loading...
Set Loading...
We know that if d ∣ k and g cd ( q , d k ) = 1 where 1 ≤ q ≤ d k , then g cd ( d q , k ) = d . From the restriction we clearly see that 1 ≤ d q ≤ k .
For example, if k = 3 0 and d = 3 , all the possible values for q are 1 , 3 , 7 , 9 , so g cd ( 3 , 3 0 ) = g cd ( 9 , 3 0 ) = g cd ( 2 1 , 3 0 ) = g cd ( 2 7 , 3 0 ) = 3 . What does it tell us? That there will be exactly four values of i for which g cd ( i , 3 0 ) = 3 and 1 ≤ i ≤ 3 0 .
Note that we need q to be coprime with d k , and since q ≤ d k , the number of values of q will be φ ( d k ) . So, there will be exactly φ ( d k ) values of i for which g cd ( i , k ) = d and 1 ≤ i ≤ k .
And since g cd ( i , k ) is always a divisor of k , the sum we want is f ( k ) = d ∣ k ∑ φ ( d k ) d , i.e., we run over all positive divisors d of k to find how many times d will be the result of g cd ( i , k ) ; and we sum this for all d .
So, f ( k ) = φ ∗ I . Since I and φ are multiplicative functions, f ( k ) is also multiplicative. That means that we only need to find what is f evaluated at some prime power, i.e., f ( p a ) . We have: f ( p a ) = d ∣ p a ∑ φ ( d ) d p a = j = 0 ∑ a φ ( p j ) p j p a = p a j = 0 ∑ a p j φ ( p j ) = p a ( 1 + j = 1 ∑ a p j φ ( p j ) ) = p a ( 1 + j = 1 ∑ a ( 1 − p 1 ) ) = p a ( 1 + a ( 1 − p 1 ) ) = p a − 1 ( p + a ( p − 1 ) ) = p a − 1 ( 1 + p − 1 + a ( p − 1 ) ) = p a − 1 ( 1 + ( a + 1 ) ( p − 1 ) ) Finally, f ( k ) = f ( i = 1 ∏ n p i a i ) = i = 1 ∏ n f ( p i a i ) = i = 1 ∏ n p i a i − 1 ( 1 + ( a i + 1 ) ( p i − 1 ) ) .