Total ways =(250)=1225.
ab is divisible by 3 iff at least one of a,b is divisible by 3.
Multiples of 3 in {1,…,50}: 3,6,…,48⇒16 numbers. Non-multiples of 3: 34.
P(neither divisible by 3)=(250)(234)=1225561.
P(ab divisible by 3)=1−1225561=1225664.