(n+(n+1/2)(1-cos(πn)))/2