5,0,5,0,5, what is the general formula of this series? What is the general term formula of 5,0,5,0,5,0?

5,0,5,0,5, what is the general formula of this series? What is the general term formula of 5,0,5,0,5,0?

a[n]=5*[1+(-1)^(n+1)]/2