For example, if n is [3], the algorithm should calculate a sum of [36], from [1^3 ,2^3,3^3 ].
a) [6, 12, 18, 24, 30]
b) [1, 9, 36, 81, 144]
c) [0, 1, 8, 27, 64]
d) [36, 81, 144, 225, 324]