Two positive integers x and y are chosen at random from the first 100 positive integers with replacement. The probability that x y is divisible by 6 is η .
Calculate ⌊ 1 0 0 0 η ⌋ .
Bonus: You might like to calculate the probability without replacement for fun.
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.
Thanks for posting it as another solution
Please why did u multiply the 1st 2 terms in the 3rd line by 100?
Log in to reply
x must be a multiple of 6 whereas y can be any number from 1 to 100 as product of them can be divided by 6
Let x = 6 k 1 + r 1 and y = 6 k 2 + r 2 where k 1 , k 2 are non-negative integers and r 1 , r 2 ∈ { 0 , 1 , 2 , 3 , 4 , 5 } .
∙ Case 1: r 1 = 0 , In this case, r 2 can be {0,1,2,3,4,5} . Number of such values of x = 1 6 and number of such values of y = 1 0 0 . * 1600 favourable pairs! *
∙ Case 2: r 1 = 1 , In this case, r 2 can be {0} . Number of such values of x = 1 7 and number of such values of y = 1 6 . 272 favourable pairs!
∙ Case 3: r 1 = 2 , In this case, r 2 can be {0,3} . Number of such values of x = 1 7 and number of such values of y = 3 3 . 561 favourable pairs!
∙ Case 4: r 1 = 3 , In this case, r 2 can be {0,2,4} . Number of such values of x = 1 7 and number of such values of y = 5 0 . 850 favourable pairs!
∙ Case 5: r 1 = 4 , In this case, r 2 can be {0,3} . Number of such values of x = 1 7 and number of such values of y = 3 3 . 561 favourable pairs!
∙ Case 6: r 1 = 5 , In this case, r 2 can be {0} . Number of such values of x = 1 6 and number of such values of y = 1 6 . 256 favourable pairs!
Total favourable cases = 1 6 0 0 + 2 7 2 + 5 6 1 + 8 5 0 + 5 6 1 + 2 5 6 = 4 1 0 0
Probability = 1 0 0 × 1 0 0 4 1 0 0 = 0 . 4 1
η = ⌊ 1 0 0 0 × 0 . 4 1 ⌋ = 4 1 0
My approach was more like Pratik's, (although I made a silly calculation error and didn't get the right answer. :( ) We first divide the first 1 0 0 natural numbers into four groups:
(i) 3 3 numbers that are divisible by neither 2 nor 3 ,
(ii) 3 4 divisible by 2 and not 3 ,
(iii) 1 7 divisible by 3 and not 2 , and
(iv) 1 6 divisible by both 2 and 3 , i.e., by 6 .
Choosing x and then y , we will have x y divisible by 6 in the following sequences: (iv) then any number; (i),(ii) or (iii) followed by (iv); (ii) then (iii); (iii) then (ii). This yields a probability of
( 1 0 0 ) ( 1 0 0 ) ( 1 6 ) ( 1 0 0 ) + ( 8 4 ) ( 1 6 ) + ( 3 4 ) ( 1 7 ) + ( 1 7 ) ( 3 4 ) = 1 0 0 0 0 4 1 0 0 .
Log in to reply
Use calculator! =P
Can you suggest a good resource for functional equations?
Log in to reply
Haha. Yeah, well ..... My mistake was that I originally had 3 4 values in category (i) and 1 6 in (iii), so no matter what approach I took after that I kept getting an incorrect value. :( As for functional equations, I don't have any thoughts beyond what you can find with a quick search on the web. I suppose something like this is as good as anything.
Hi, may I ask why you can't choose (iv) followed by (iv)? Could you not choose, for example 24, then 96? I'm really confused. :P
Log in to reply
Yes, that is an option, and it is covered by "(iv) then any number". If I had then written "(i), (ii), (iii) or (iv) followed by (iv)" as the next option I would have double-counted the (iv) followed by (iv) cases, which is why I just had "(i), (ii) or (iii) followed by (iv)" as the second option.
Log in to reply
@Brian Charlesworth – Oh! I realize my mistake now! Thank you!
Nice solution! Did it the same way.
We could also get away with making the following 5 cases -
1) x ∣ 3 , x ∤ 2 and y ∣ 2 , y ∤ 3
2) x ∣ 2 , x ∤ 3 and y ∣ 3 , y ∤ 2
3) x ∣ 6 and y ∤ 6
4) x ∤ 6 and y ∣ 6
5) x ∣ 6 and y ∣ 6
I'm not sure if someone covered it this way but one very easy way to look at it is this - If I choose just one multiple of 2 and one multiple of 3 (without worrying whether it is a multiple of 6 or not) I will end up covering almost all cases apart from the ones where one is a multiple of 6 and the other isn't a multiple of 2 and 3 .
Going by that, we get ( 5 0 × 3 3 ) × 2 (where × 2 is for arrangement) as the first case, but the important thing to note here is that some cases will duplicate, namely the ones where both are multiples of 6 . So in totality, the first case becomes ( 5 0 × 3 3 ) × 2 − 2 5 6 .
The next case is pretty straightforward - ( 1 6 × 3 3 ) × 2 .
This brings the total to 4 1 0 0 . The rest is simple.
Great! That is another way to do the counting.
The numbers can be classified as
Let ξ = gcd ( x , 6 ) and η = gcd ( y , 6 ) . The distribution of ξ is as follows: f ( ξ = 6 ) = 1 6 ; f ( ξ = 3 ) = 1 7 ; f ( ξ = 2 ) = 3 4 ; f ( ξ = 1 ) = 3 3 , and similar for η .
Now 6 ∣ x y iff 6 ∣ ξ η . Its distribution is as follows:
η = 6 η = 3 η = 2 η = 1 ξ = 6 Y Y Y Y ξ = 3 Y N Y N ξ = 2 Y Y N N ξ = 1 Y N N N
We must add the frequencies for all "Y" entries in the table. This is 2 ⋅ 1 0 0 ⋅ 1 6 − 1 6 2 + 2 ⋅ 1 7 ⋅ 3 4 = 4 1 0 0 . Therefore the desired probability is 0 . 4 1 0 and we submit 4 1 0 for an answer.
{x y total} indicates no of values of x ,y and total possible outcomes xy. {16 100 1600 } ( x being multiple of 6 and y any from 1 to 100) {84 16 1344 }(y being multiple of 6 and x be any from 1 to 100 except multiples of 16) {34 17 578} (x being multiples of 2 which are not multiples of 6 and y being multiple of 3 which are not multiples of 2) {17 34 578}(interchanging x and y in above ) total 4100 probability :- 4100/10000 1000 *probability =410
It seems correct but is there a typo? Question was 6 and not 1 6
Log in to reply
yeah done i was obsessed with 1 6 multiples of 6 so they got mixed
Problem Loading...
Note Loading...
Set Loading...
case-1
x or y divisible by 6,
Possibilities =
⌊ 6 1 0 0 ⌋ ( 1 0 0 ) + ⌊ 6 1 0 0 ⌋ ( 1 0 0 ) − ⌊ 6 1 0 0 ⌋ 2 = 2 9 4 4
(using inclusion exclusion principle)
case -2
x divisible by 2 but not by 6 and y divisible by 3 but not by 6 and vice versa
2 ( ⌊ 2 1 0 0 ⌋ − ⌊ 6 1 0 0 ⌋ ) ( ⌊ 3 1 0 0 ⌋ − ⌊ 6 1 0 0 ⌋ ) = 1 1 5 6
( it is not possible for something to be divisible by 2 and 3 simultaneously unless it is also divisible by 6, so we dont need to worry about any overlaps)
total = 4100
and total number of ways = 100*100 = 10000
so probability is 0.41
hence 1000 times it is 410 (answer)