Probability that the product of 5 numbers will be divisible by 9.

AI Thread Summary
The discussion centers on calculating the probability that the product of five randomly generated non-negative integers is divisible by 9. Key points include the conditions for divisibility: at least one number must be divisible by 9, or at least two numbers must be divisible by 3 but not by 9. Initial calculations suggest probabilities of 36.59% for getting at least two numbers divisible by 3 and 55.49% for at least one number divisible by 9, leading to a combined probability of 71.78%. However, the independence of events A and B is questioned, indicating a need for a more complex approach to accurately compute the probability. An alternative method is proposed, focusing on calculating the probability of the product not being divisible by 9.
pony1983
Messages
5
Reaction score
0

Homework Statement


If 5 numbers are randomly generated (excluding zero) what are the odds that the product of the 5 numbers will be divisible by 9?

I realize that if at least one number is divisible by 9 then the product will also be divisible by 9 or if there's at least 2 numbers divisible by 3(that aren't divisible by 9) the product will be divisible by 9.

Homework Equations


I don't know the relevant equations.

The Attempt at a Solution


My best attempt at a solution is 1-(7/9)^4 - I feel like this would be the odds of getting at least 2 numbers that are divisible by 3 that aren't divisible by 9 and 1-(8/9)^5 I feel are the odds of getting at least 1 number divisible by 9. I don't know how to combine the 2 though.

P.S. This is not a homework problem but I felt this would be the proper forum as I believe it is a "homework style" question. Thanks for your help.
 
Physics news on Phys.org
You need to define how you intend to randomly generate the numbers. I assume you mean non-negative integers. Any limit on their size? Generating a random non-negative integer that can be arbitrarily large is an interesting task.
 
Oh yeah sorry I meant non-negative integers, and no there's no limit on the size of the integer.As for how it is randomly generated , I don't know , just assume that it is random.
 
probability of ( A or B) = probability of A + probabiity of B - probability of (A and B)

A = you get at least two numbers divisible by 3 , each of which is a number that is not divisible by 9

B = you get at least one number divisible by 9

So you need to work on computing the probability of (A and B) both happening. You might have to break the way it happens into several cases.
 
Ok based on that info here is my work:
1-(7/9)^4= .3659 (probability of getting at least 2 numbers divisible by 3 but not by 9)
1-(8/9)^5= .5549 (probability of getting at least 1 number divisible by 9)
.3659 + .5549= .9208
.3659 x .5549= .2030 (probability of getting at least 2 numbers divisible by 3 but not by 9; and at least 1 number divisible by 9)

.9208 - .2030 = 71.78%

Have I done this problem correctly?
 
probability of (A and B) = ( probability of (A given B) ) (probability of B)

If A and B are "independent events", probability of (A given B) = probability of A so you can multiply the probabilities of A and B.

In your problem, A and B are not independent events. If you get at least one number divisible by 9, then then you only have 4 or fewer chances to also get at least two numbers divisible by 3 and not by 9.
 
I have to admit I'm completely lost on what to do now.I guess I'll sleep on it and see if i can figure it out.
 
As proposed the calculation will become rather complex.

I suggest an alternative approach:

P(product divisible by 9) = 1 - P(product not divisible by 9)

P(product not divisible by 9) = P(none of the 5 numbers is divisible by 3) + P(exactly 1 of the 5 numbers is divisible by 3, but not by 9)

[edit]Can you calculate those?[/edit]
 
Last edited:
Back
Top