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

Click For Summary

Homework Help Overview

The problem involves determining the probability that the product of five randomly generated non-negative integers is divisible by 9. The original poster attempts to analyze the conditions under which this divisibility occurs, specifically focusing on numbers divisible by 9 and those divisible by 3 but not by 9.

Discussion Character

  • Exploratory, Assumption checking, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss the conditions for divisibility by 9, including the need for at least one number divisible by 9 or at least two numbers divisible by 3 that are not divisible by 9. There are attempts to calculate probabilities using complementary counting and independence assumptions.

Discussion Status

Some participants have provided calculations for the probabilities involved, while others question the assumptions about independence between events A and B. There is acknowledgment of the complexity of the problem, with suggestions for alternative approaches to calculating the required probabilities.

Contextual Notes

There is a lack of clarity regarding the method of generating the random integers, with participants noting the absence of limits on their size. This uncertainty may affect the calculations and assumptions made in the discussion.

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:

Similar threads

Replies
9
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
14
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
17
Views
3K