Compute probability of random arithmetic progression triple | Mavensecurities