Pair me up

How many ordered pairs of positive integers ( a , b ) (a, b) , with a 30 a \leq 30 and b 30 b \leq 30 , are there such that gcd ( a , b , 30 ) = 1 \gcd (a, b, 30) = 1 ?


The answer is 576.

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.

1 solution

Calvin Lin Staff
May 13, 2014

Solution 1: Consider the 900 pairs of ( a , b ) (a,b) with both less than or equal to 30. Since 1 2 \frac {1}{2} of them have a a even, 1 2 \frac {1}{2} of them have b b even, so 1 ( 1 1 2 ) 2 = 3 4 1 - (1-\frac {1}{2})^2 = \frac {3}{4} of them will have a b ab not even. Similarily, 1 ( 1 1 3 ) 2 = 8 9 1 - (1-\frac {1}{3})^2 = \frac {8}{9} of them will have a b ab not a multiple of 3, 1 ( 1 1 5 ) 2 = 24 25 1- (1-\frac {1}{5})^2 = \frac {24}{25} of them will have a b ab not a multiple of 5. These events are independent of each other, so 3 4 × 8 9 × 24 25 \frac {3}{4} \times \frac {8}{9} \times \frac {24}{25} of these pairs will satisfy our conditions. Thus, there are 900 × 3 4 × 8 9 × 24 25 = 576 900 \times \frac {3}{4} \times \frac {8}{9} \times \frac {24}{25} = 576 ordered pairs satisfying the condition.

Solution 2: This is similar to Euler's Totient Function, and we can proceed similarly, to show that the general form is N 2 ( 1 1 p k 2 ) N^2 \prod \left(1-\frac {1}{p_k^2}\right) .

Note: This is known as Jordan's Totient Function, of which Euler's function is a special case.

Using Sieve of Eratosthenes I got that only 8 integers are coprime to 30 that are 1,7,11,13,17,19,23,29 So the number of pairs would be the number of pairing of two of them which means 48 and another would be (1,1), So a total of 49 pairs would by there, Where am I wrong? Please list any other pair than mine.

Ishan Tarunesh - 6 years, 11 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...