
\[a_{1}+\dots+a_{q+1}+k=b_{1}+\dots+b_{q}.\]