
\displaystyle
\prod_{k=1}^0a_k=1,
\prod_{k=1}^{m+1}a_k=(\prod_{k=1}^ma_k)a_{m+1},
