A useful property for sine integrals over \([0, \pi]\) is \(\int_0^\pi \sin(nx) dx\).
If `n` is an even integer, the integral is 0. If `n` is an odd integer, the integral is \(2/n\).
Using this: \(\int_0^\pi \sin(3x)dx = 2/3\), \(\int_0^\pi \sin(2x)dx = 0\), \(\int_0^\pi \sin(x)dx = 2\).
The sum is \(2/3 + 0 + 2 = 8/3\). Multiplying by 6 gives 16. This shortcut is much faster.