设Sn为等差数列{an}的前n项和,若a1=1,a3=5,Sk+2-Sk=36,则k的值为(  )