已知数列{An}是等差数列,前四项和为21,末四项和为67,且前n项和为286则n=_____.