GATE 2005
203 questions
MCQ 2031-mark 203
Questions 26–30 of 203
Let , where p and q are distinct prime numbers. How many numbers m satisfy and gcd(m,n)=1?
Note that gcd(m,n) is the greatest common divisor of m and n.
Note that gcd(m,n) is the greatest common divisor of m and n.
Answer: (D)
Here with distinct primes. exactly when is divisible by neither nor . So count all numbers and remove the ones divisible by or (inclusion-exclusion).
Multiples of from 1 to :
Multiples of :
Multiples of both, that is of :
Count .
Check with : , the numbers 1, 5, 7, 11 qualify, and .
Answer: (D)
Multiples of from 1 to :
Multiples of :
Multiples of both, that is of :
Count .
Check with : , the numbers 1, 5, 7, 11 qualify, and .
Answer: (D)
In a communication network, a packet of length L bits takes link with a probability of or link with a probability of . Link and have bit error probability of and respectively. The probability that the packet will be received without error via either or is
Answer: (A)
Assume bit errors are independent. A bit is received correctly on with probability . All bits are correct with probability , because of independence. In the same way, on it is .
The packet takes (probability ) or (probability ). These are mutually exclusive events, so add their probabilities:
Why option (D) is not right: is the chance that all bits are in error, so (D) gives the chance that not all the bits are in error (at least one bit is correct). That is not the same as no bit being in error. Option (C) multiplies , which would mean the packet uses both links.
Answer: (A)
The packet takes (probability ) or (probability ). These are mutually exclusive events, so add their probabilities:
Why option (D) is not right: is the chance that all bits are in error, so (D) gives the chance that not all the bits are in error (at least one bit is correct). That is not the same as no bit being in error. Option (C) multiplies , which would mean the packet uses both links.
Answer: (A)
An unbiased coin is tossed repeatedly until the outcome of two successive tosses is the same. Assuming that the trials are independent, the expected number of tosses is
Answer: (A)
The tosses stop at toss when toss equals toss . Before that the tosses must alternate (HTHT... or THTH...), so the first toss fixes the first tosses (2 choices), and toss is then fixed too. So exactly 2 of the equally likely sequences stop at toss , for :
Note on the figure: in its lower half, the T reached by T, H, T, H, T is double-circled by mistake, because it differs from the toss before it, so the tosses go on. The stop at that level is the H reached by T, H, T, H, H, which is not circled. All the other double circles are correct.
Put :
Related case, expected tosses to get HT. The figure below marks the stops with double circles.
A sequence first shows HT at toss when it is some T's, then some H's (at least one), then one T. If there are T's and H's, then , which gives sequences. So , and with :
Related case, expected tosses to get HH. The figure below marks the stops with bold circles.
For HH first at toss , toss must be T (for ), and the first tosses can be any sequence with no HH. This gives the Fibonacci counts 1, 1, 2, 3, 5, 8, ... for , so . Using :
Answer: (A)
Note on the figure: in its lower half, the T reached by T, H, T, H, T is double-circled by mistake, because it differs from the toss before it, so the tosses go on. The stop at that level is the H reached by T, H, T, H, H, which is not circled. All the other double circles are correct.
Put :
Related case, expected tosses to get HT. The figure below marks the stops with double circles.
A sequence first shows HT at toss when it is some T's, then some H's (at least one), then one T. If there are T's and H's, then , which gives sequences. So , and with :
Related case, expected tosses to get HH. The figure below marks the stops with bold circles.
For HH first at toss , toss must be T (for ), and the first tosses can be any sequence with no HH. This gives the Fibonacci counts 1, 1, 2, 3, 5, 8, ... for , so . Using :
Answer: (A)
A bag contains 10 blue marbles, 20 green marbles and 30 red marbles. A marble is drawn from the bag, its colour recorded and it is put back in the bag. This process is repeated 3 times. The probability that no two of the marbles drawn have the same colour is
Answer: (B)
For no two marbles to share a colour, the three draws must come out as some order of
Blue, Green, Red
The number of such orders is
Next, the chance of Blue on the first draw, Green on the second and Red on the third:
So the required probability
Correct Answer:
Blue, Green, Red
The number of such orders is
Next, the chance of Blue on the first draw, Green on the second and Red on the third:
So the required probability
Correct Answer:
A random bit string of length n is constructed by tossing a fair coin n times and setting a bit to 0 or 1 depending on outcomes head and tail, respectively. The probability that two such randomly generated strings are not identical is:
Answer: (D)
Two random strings of bits: at any one position they match with probability (whatever the first bit is, the second equals it with probability ), and positions are independent.
The strings are identical only if all positions match: .
So the probability that they are not identical is .
Check by counting: the strings differ in exactly places with probability . Adding for to gives , since the binomial coefficients for to add up to .
Answer: (D)
The strings are identical only if all positions match: .
So the probability that they are not identical is .
Check by counting: the strings differ in exactly places with probability . Adding for to gives , since the binomial coefficients for to add up to .
Answer: (D)