I'm struggling to find nonobtrusive notation for the nested sum of many sums. One way to express the sum of $K$ nested sums is: $$A = \sum_{i_1=1}^{m_1} \sum_{i_2=1}^{m_2^{(i_1)}}\dots \sum_{i_K=1}^{m_K^{(i_1, i_2, \dots, i_{K-1)}}} a_{i_1,i_2, \dots, i_K}x_{i_1,i_2, \dots, i_K}.$$
I've written the above in the most general form, where the number of elements being summed in the $k$th sum — $m_k^{(i_1, i_2, \dots, i_{k-1})}$ — is a function of the previous indices: $i_1, i_2, \dots, i_{k-1}$. However, the above is clearly kind of messy and really not ideal. I was wondering if there is some simpler way to express the above that I'm not thinking of. Thank you!