(本题满分12分) 已知数列{a n }的前项和为S n ,且满足a 1 =1,2S n =na n+1 (1)求a n