The correct option is A 4787
The total number of ways of choosing two numbers out of 1,2,3,...,30 is 30C2=435
So, exhaustive number of cases is 435.
a2−b2=(a+b)(a−b)
If a and b both are divisible by 3, then a+b is divisible by 3. Consequently, a2−b2 is divisible by 3.
If neither of a and b are divisible by 3:
Case 1. If a and b leave the same remainder, then a−b is divisible by 3.
Case 2. If one leaves remainder 1 and the other leaves remainder 2, then a+b is divisible by 3.
Consequently, a2−b2 is divisible by 3 in both cases.
Thus, favourable number of cases is 10C2+20C2=235
Hence, the required probability is 235435=4787