I'm working on difference equations and got stuck on the algebra with this one:
$$ u_n = \prod_{i=1}^n 3^{2^i} + \sum_{i=1}^n 3^{2^{i+1}-1} \prod_{j=i+1}^n 3^{2^j}$$
I need to simplify this to just a function of n. Any help would be much appreciated.