Trigonometry on a finite cyclic group