Lời giải:
a) \(A=\left(\frac{1}{2}-1\right)\left(\frac{1}{3}-1\right)...\left(\frac{1}{n-1}-1\right)\left(\frac{1}{n}-1\right)\)
\(=\frac{1-2}{2}.\frac{1-3}{3}.\frac{1-4}{4}...\frac{-(n-2)}{n-1}.\frac{-(n-1)}{n}\)
\(=\frac{(-1)(-2)(-3)...[-(n-2)][-(n-1)]}{2.3.4...(n-1)n}\)
\(=\frac{(-1)^{n-1}(1.2.3....(n-2)(n-1))}{2.3.4...(n-1)n}=(-1)^{n-1}.\frac{1}{n}\)
b) \(B=\left(\frac{1}{2^2}-1\right)\left(\frac{1}{3^2}-1\right)...\left(\frac{1}{n^2}-1\right)\)
\(=\frac{1-2^2}{2^2}.\frac{1-3^2}{3^2}.....\frac{1-n^2}{n^2}\)
\(=\frac{(-1)(2^2-1)}{2^2}.\frac{(-1)(3^2-1)}{3^2}....\frac{(-1)(n^2-1)}{n^2}\)
\(=(-1)^{n-1}.\frac{(2^2-1)(3^2-1)...(n^2-1)}{2^2.3^2....n^2}\)
\(=(-1)^{n-1}.\frac{(2-1)(2+1)(3-1)(3+1)...(n-1)(n+1)}{2^2.3^2....n^2}\)
\(=(-1)^{n-1}.\frac{(2-1)(3-1)...(n-1)}{2.3...n}.\frac{(2+1)(3+1)...(n+1)}{2.3...n}\)
\(=(-1)^{n-1}.\frac{1.2.3...(n-1)}{2.3...n}.\frac{3.4...(n+1)}{2.3.4...n}\)
\(=(-1)^{n-1}.\frac{1}{n}.\frac{n+1}{2}=(-1)^{n-1}.\frac{n+1}{2n}\)