Find the rule: 1, 4, 13, 40, 121? I want to write an algebraic expression

Find the rule: 1, 4, 13, 40, 121? I want to write an algebraic expression

N = the first power of 1 + 3 + the second power of 3 + all the way up to the (n-1) power of 3