Solution (source code)

= Solution

Apply the <Gaussian quadrature> rule to the constant <polynomial> $1$. Exactness gives \b[$\sum_{j=1}^n A_j=2$].