数列{an}满足a1+2a2+2^2a3+```````+2^(n-1)an=n^2(n属于整数)(1)求{an}的通项