According to a version of Einstein summation convention, an expression with a repeated dummy index that appears as both a prefix and a suffix is understood to be a summation over that index. Under this convention, the prefix is not an exponent. To distinguish a prefix from an exponent, a bracket has to be used. For example, the traditional expression $\sum_i a_ix_i{}^2$ has to be written as $a_i(x^i)^2$ under the convention.
Now I have a question. How do we wite an expression with an exponent being summed under the convention? For example, how do we write the traditional expression
$\sum_{i = 1}^n a_ix^i = a_1x^1 + \ldots + a_nx^n$
under the convention? Can we write it in the following way?
$a_i(x)^i$