Pattern with $\sec(x)$ partial sums

134 Views Asked by At

I calculated with Wolfram|Alpha the partial sums of $S(x) = \sum^{x}_{n=0} \sec(n)$ and when I plot them I get a repeating pattern:

Sum[Sec[x],{x,0,n}]

Which I thought would not happen given the fact that $\sec(x)$'s period is an irrational number ($\tau$). Any explanation for this wave's existance in this equation?