Solution (source code)

= Solution

Orthonormality gives $\langle\mathcal B_1|\mathcal B_i\rangle=\delta_{1i}$.