5:
a: Số đoạn thẳng tạo thành là: 100*99/2=4950(đoạn)
b: \(B=\left(1-\dfrac{1}{2}\right)\left(1-\dfrac{1}{3}\right)\cdot...\cdot\left(1-\dfrac{1}{2022}\right)\left(1+\dfrac{1}{2}\right)\cdot\left(1+\dfrac{1}{3}\right)\cdot...\cdot\left(1+\dfrac{1}{2022}\right)\)
\(=\dfrac{1}{2}\cdot\dfrac{2}{3}\cdot...\cdot\dfrac{2021}{2022}\cdot\dfrac{3}{2}\cdot\dfrac{4}{3}\cdot...\cdot\dfrac{2023}{2022}\)
=1/2022*2023/2
=2023/4044