∴P(A)={n(n+2)−k}/{n^2(n+1)−n(k−1)}

∴P(B)={(n+1)^2−k}/{n(n+1)^2−(n+1)(k−1)}