Do determine the probability of two events occurring in sequence, multiply the probability of each event against the other.
There's a 1 in 6 chance of rolling a 3 on a 6-sided number cube; there's a 5 in 6 chance of rolling not-a-3 on a 6-sided number cube; thus, the chance of rolling a 3 that is immediately followed by a not-3 is:
(1/6) times (5/6) = (5/36)
Assuming n is a decimal number.
Divide n by 2 repeatedly, and summing the remainders will give the number of one's in binary representation.
pseudocode of algorithm:
Enter value of n:
sum=0;
while n>0 {
sum=mod(n,2);
n=n/2 [integer division]
}
Display n, sum
Answer:
22.9 m
Step-by-step explanation:
Use cosine law
AB² = 56² + 49² - 2(56)(49)cos(24)
AB² = 523.4625285
AB = 22.9 m
Answer : y= -3x-2 Hope this helped!