已知数{An}满足An+1=3An+3ˆ(n+1)-1(n∈N+),且A4=365,求数列{An}通项An