Question
Question: two numbers p and q are randomly selected from a set of natural numbers. then probability that a^2+b...
two numbers p and q are randomly selected from a set of natural numbers. then probability that a^2+b^2 is divisible by 5 is
1/5
9/25
4/25
1/25
9/25
Solution
The problem requires finding the probability that a2+b2≡0(mod5) for randomly selected natural numbers a and b.
-
Analyze Remainders of Squares Modulo 5: The possible remainders when a natural number is divided by 5 are 0, 1, 2, 3, and 4. The squares of these remainders modulo 5 are:
- 02≡0(mod5)
- 12≡1(mod5)
- 22≡4(mod5)
- 32≡9≡4(mod5)
- 42≡16≡1(mod5) So, the possible remainders for n2(mod5) are {0, 1, 4}.
-
Determine Probabilities of Square Remainders: Assuming natural numbers are uniformly distributed across remainders modulo 5, the probability of a number having any specific remainder is 1/5.
- P(n2≡0(mod5))=P(n≡0(mod5))=1/5.
- P(n2≡1(mod5))=P(n≡1(mod5) or n≡4(mod5))=1/5+1/5=2/5.
- P(n2≡4(mod5))=P(n≡2(mod5) or n≡3(mod5))=1/5+1/5=2/5. These probabilities apply independently to both a and b.
-
Identify Favorable Combinations: We need a2+b2≡0(mod5). Let Ra=a2(mod5) and Rb=b2(mod5). The pairs (Ra,Rb) that sum to 0(mod5) are:
- (0,0): 0+0=0
- (1,4): 1+4=5≡0(mod5)
- (4,1): 4+1=5≡0(mod5)
-
Calculate Total Probability: The probability of each case is calculated using independence:
- P(Ra=0 and Rb=0)=P(Ra=0)×P(Rb=0)=(1/5)×(1/5)=1/25.
- P(Ra=1 and Rb=4)=P(Ra=1)×P(Rb=4)=(2/5)×(2/5)=4/25.
- P(Ra=4 and Rb=1)=P(Ra=4)×P(Rb=1)=(2/5)×(2/5)=4/25. The total probability is the sum of these mutually exclusive probabilities: P(a2+b2≡0(mod5))=1/25+4/25+4/25=9/25.